ContRap-Core
Public Member Functions

crp::Selector Class Reference

Class Selector represents nested scope or class selection commands. More...

#include <command.h>

Inheritance diagram for crp::Selector:
crp::ArgCommand crp::Command crp::Object

Public Member Functions

 Selector (const DPtr &base=DPtr::bottom, const DPtr &first=DPtr::bottom)
 Creates a selector.
virtual ~Selector ()
 Virtual destructor.
virtual CommandType get_command_type () const
 Returns the enumerated type of the command.
virtual std::string to_string () const
 Converts the object to a non-formatted string.

Detailed Description

Class Selector represents nested scope or class selection commands.


Constructor & Destructor Documentation

crp::Selector::Selector ( const DPtr base = DPtr::bottom,
const DPtr first = DPtr::bottom 
)

Creates a selector.

Parameters:
baseBase selector argument
firstFirst selected argument
virtual crp::Selector::~Selector ( ) [inline, virtual]

Virtual destructor.


Member Function Documentation

virtual CommandType crp::Selector::get_command_type ( ) const [inline, virtual]

Returns the enumerated type of the command.

Returns:
Type of the object

Implements crp::Command.

virtual std::string crp::Selector::to_string ( ) const [virtual]

Converts the object to a non-formatted string.

This method is thought to be used for debugging purposes only.

Returns:
String representation of the object

Reimplemented from crp::Command.


The documentation for this class was generated from the following file: