9 #ifndef CTypeSelector_H 10 #define CTypeSelector_H
void setType(const std::string &type)
Sets the currently selected type.
virtual ~CTypeSelector()
Destructor.
The virtual base class which provides a unified interface for all persistent objects in MRPT...
unsigned int selection
The selected one:
std::vector< std::string > possibleTypes
The possibilities.
int checkTypeIndex(const std::string &type) const
Returns the index of a given type within the list of all possible types, or -1 if the given string is...
CTypeSelector(std::string posibilitiesList="", std::string defaultType="")
Default constructor.
bool isType(const char *type) const
Fast check for a given type, returns true if the selection is exactly the specified type name...
GLsizei const GLchar ** string
std::string getType() const
Gets the currently selected type, from the set of posibilities.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
#define DEFINE_SERIALIZABLE(class_name)
This declaration must be inserted in all CSerializable classes definition, within the class declarati...
void getTypePosibilities(std::vector< std::string > &outPosibilities) const
Returns the set of posibilities in the "type" represented by this class.
This class represents a std::string derived class which is also CSerializable.
GLuint GLuint GLsizei GLenum type