|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NLLIGO::IPrimitive Class Reference#include <primitive.h>
Inheritance diagram for NLLIGO::IPrimitive:
List of all members.
Public Types |
enum | { NotAnArray,
AtTheEnd = 0xffffffff
} |
Public Methods |
| IPrimitive () |
| ~IPrimitive () |
| IPrimitive (const IPrimitive &node) |
IPrimitive * | copy () const |
virtual void | operator= (const IPrimitive &node) |
uint | getNumChildren () const |
| Get the children primitive count. More...
|
bool | getChild (const IPrimitive *&result, uint childId) const |
| Get a child primitive. More...
|
bool | getChild (IPrimitive *&result, uint childId) |
| Get a child primitive. More...
|
IPrimitive * | getParent () |
| Get the parent primtive. More...
|
const IPrimitive * | getParent () const |
bool | getChildId (uint &childId, const IPrimitive *child) const |
| Get the id of the child, return 0xffffffff if not found. More...
|
bool | removeChild (uint childId) |
| Remove a child primitive. More...
|
void | removeChildren () |
| Remove all children primitives. More...
|
bool | insertChild (IPrimitive *primitive, uint index=AtTheEnd) |
| Insert a child primitive before the index. More...
|
uint | getNumProperty () const |
| Get a num properties. More...
|
bool | getProperty (uint index, std::string &property_name, const IProperty *&result) const |
| Get a properties by its index This is method (iterate a list) is slower than getPropertyByName (look up in a map). More...
|
bool | getProperty (uint index, std::string &property_name, IProperty *&result) |
| Get a properties by its index This is method (iterate a list) is slower than getPropertyByName (look up in a map). More...
|
bool | addPropertyByName (const char *property_name, IProperty *result) |
| Add a property If the property already exist, the method does nothing and returns false. More...
|
bool | getPropertyByName (const char *property_name, const IProperty *&result) const |
| Get a property with its name. More...
|
bool | getPropertyByName (const char *property_name, IProperty *&result) |
| Get a property with its name. More...
|
bool | getPropertyByName (const char *property_name, std::string *&result) |
| Get a string property with its name. More...
|
bool | getPropertyByName (const char *property_name, std::vector< std::string > *&result) |
| Get a string array property with its name. More...
|
bool | getPropertyByName (const char *property_name, std::string &result) const |
| Get a string property with its name. More...
|
bool | getPropertyByName (const char *property_name, const std::vector< std::string > *&result) const |
| Get a string array property with its name. More...
|
bool | getPropertyByName (const char *property_name, NLMISC::CRGBA &result) const |
| Get a color property with its name. More...
|
bool | removeProperty (uint index) |
| Remove a property This is method (iterate a list) is slower than removePropertyByName (look up in a map). More...
|
bool | removePropertyByName (const char *property_name) |
| Remove a property by its name. More...
|
void | removeProperties () |
| Remove all the properties. More...
|
virtual bool | read (xmlNodePtr xmlNode, const char *filename, uint version) |
virtual void | write (xmlNodePtr xmlNode, const char *filename) const |
virtual uint | getNumVector () const=0 |
virtual const CPrimVector * | getPrimVector () const=0 |
virtual CPrimVector * | getPrimVector ()=0 |
Public Attributes |
std::string | Layer |
std::string | Name |
Private Attributes |
IPrimitive * | _Parent |
std::vector< IPrimitive * > | _Children |
std::map< std::string, IProperty * > | _Properties |
Member Enumeration Documentation
Constructor & Destructor Documentation
NLLIGO::IPrimitive::IPrimitive |
( |
|
) |
[inline] |
|
NLLIGO::IPrimitive::~IPrimitive |
( |
|
) |
|
|
NLLIGO::IPrimitive::IPrimitive |
( |
const IPrimitive & |
node |
) |
|
|
Member Function Documentation
bool NLLIGO::IPrimitive::addPropertyByName |
( |
const char * |
property_name, |
|
|
IProperty * |
result |
|
) |
|
|
|
Add a property If the property already exist, the method does nothing and returns false.
The pointer will be deleted by the primitive using the delete operator.
Definition at line 1393 of file primitive.cpp.
References _Properties. |
IPrimitive * NLLIGO::IPrimitive::copy |
( |
|
) |
const |
|
bool NLLIGO::IPrimitive::getChild |
( |
IPrimitive *& |
result, |
|
|
uint |
childId |
|
) |
|
|
bool NLLIGO::IPrimitive::getChild |
( |
const IPrimitive *& |
result, |
|
|
uint |
childId |
|
) |
const |
|
bool NLLIGO::IPrimitive::getChildId |
( |
uint & |
childId, |
|
|
const IPrimitive * |
child |
|
) |
const |
|
uint NLLIGO::IPrimitive::getNumChildren |
( |
|
) |
const [inline] |
|
uint NLLIGO::IPrimitive::getNumProperty |
( |
|
) |
const |
|
virtual uint NLLIGO::IPrimitive::getNumVector |
( |
|
) |
const [pure virtual] |
|
const IPrimitive* NLLIGO::IPrimitive::getParent |
( |
|
) |
const [inline] |
|
IPrimitive* NLLIGO::IPrimitive::getParent |
( |
|
) |
[inline] |
|
virtual CPrimVector* NLLIGO::IPrimitive::getPrimVector |
( |
|
) |
[pure virtual] |
|
virtual const CPrimVector* NLLIGO::IPrimitive::getPrimVector |
( |
|
) |
const [pure virtual] |
|
bool NLLIGO::IPrimitive::getProperty |
( |
uint |
index, |
|
|
std::string & |
property_name, |
|
|
IProperty *& |
result |
|
) |
|
|
bool NLLIGO::IPrimitive::getProperty |
( |
uint |
index, |
|
|
std::string & |
property_name, |
|
|
const IProperty *& |
result |
|
) |
const |
|
bool NLLIGO::IPrimitive::getPropertyByName |
( |
const char * |
property_name, |
|
|
NLMISC::CRGBA & |
result |
|
) |
const |
|
bool NLLIGO::IPrimitive::getPropertyByName |
( |
const char * |
property_name, |
|
|
const std::vector< std::string > *& |
result |
|
) |
const |
|
bool NLLIGO::IPrimitive::getPropertyByName |
( |
const char * |
property_name, |
|
|
std::string & |
result |
|
) |
const |
|
bool NLLIGO::IPrimitive::getPropertyByName |
( |
const char * |
property_name, |
|
|
std::vector< std::string > *& |
result |
|
) |
|
|
bool NLLIGO::IPrimitive::getPropertyByName |
( |
const char * |
property_name, |
|
|
std::string *& |
result |
|
) |
|
|
bool NLLIGO::IPrimitive::getPropertyByName |
( |
const char * |
property_name, |
|
|
IProperty *& |
result |
|
) |
|
|
bool NLLIGO::IPrimitive::getPropertyByName |
( |
const char * |
property_name, |
|
|
const IProperty *& |
result |
|
) |
const |
|
bool NLLIGO::IPrimitive::insertChild |
( |
IPrimitive * |
primitive, |
|
|
uint |
index = AtTheEnd |
|
) |
|
|
|
Insert a child primitive before the index.
The pointer will be deleted by the parent primitive using the delete operator. return false if the index is invalid
Definition at line 1361 of file primitive.cpp.
References _Children, AtTheEnd, and index.
Referenced by read. |
void NLLIGO::IPrimitive::operator= |
( |
const IPrimitive & |
node |
) |
[virtual] |
|
bool NLLIGO::IPrimitive::read |
( |
xmlNodePtr |
xmlNode, |
|
|
const char * |
filename, |
|
|
uint |
version |
|
) |
[virtual] |
|
bool NLLIGO::IPrimitive::removeChild |
( |
uint |
childId |
) |
|
|
void NLLIGO::IPrimitive::removeChildren |
( |
|
) |
|
|
void NLLIGO::IPrimitive::removeProperties |
( |
|
) |
|
|
bool NLLIGO::IPrimitive::removeProperty |
( |
uint |
index |
) |
|
|
bool NLLIGO::IPrimitive::removePropertyByName |
( |
const char * |
property_name |
) |
|
|
void NLLIGO::IPrimitive::write |
( |
xmlNodePtr |
xmlNode, |
|
|
const char * |
filename |
|
) |
const [virtual] |
|
Member Data Documentation
std::vector<IPrimitive*> NLLIGO::IPrimitive::_Children [private]
|
|
IPrimitive* NLLIGO::IPrimitive::_Parent [private]
|
|
std::map<std::string, IProperty*> NLLIGO::IPrimitive::_Properties [private]
|
|
|
Definition at line 294 of file primitive.h.
Referenced by addPropertyByName, copy, getNumProperty, getProperty, getPropertyByName, operator=, read, removeProperties, removeProperty, removePropertyByName, and write. |
std::string NLLIGO::IPrimitive::Layer
|
|
std::string NLLIGO::IPrimitive::Name
|
|
The documentation for this class was generated from the following files:
|
|