NASA_ODL::OBJECT Class Reference

Object consisting of name, list of objects, list of items. More...

#include <mi32/nasaodl.h>

List of all members.

Public Member Functions

 OBJECT (const char *name)
virtual ~OBJECT ()
const ITEMFindItem (const char *path) const
const OBJECTFindObject (const char *path) const
const ITEMLISTGetItemList () const
const char * GetItemString (const char *path, int index=0) const
bool GetItemValue (const char *path, double &value, int index=0) const
const char * GetName () const
const OBJECTLISTGetObjectList () const

Detailed Description

Object consisting of name, list of objects, list of items.


Constructor & Destructor Documentation

NASA_ODL::OBJECT::OBJECT ( const char *  name  )  [explicit]

Construct with specified name.

virtual NASA_ODL::OBJECT::~OBJECT (  )  [virtual]

Destructor.


Member Function Documentation

const ITEM* NASA_ODL::OBJECT::FindItem ( const char *  path  )  const

Find item given dot-separated path.

Parameters:
path Path, last name is treated as item name
const OBJECT* NASA_ODL::OBJECT::FindObject ( const char *  path  )  const

Find object by dot-separated path name.

const ITEMLIST& NASA_ODL::OBJECT::GetItemList (  )  const [inline]

Get list of items contained in this node.

const char* NASA_ODL::OBJECT::GetItemString ( const char *  path,
int  index = 0 
) const

Find item and retrieve item string.

Returns:
String pointer or NULL if could not find.
Parameters:
path Path with object names separated by '.'
index Value index starting at 0
bool NASA_ODL::OBJECT::GetItemValue ( const char *  path,
double &  value,
int  index = 0 
) const

Find item and retrieve item value.

Returns:
'true' if object was found, 'false' if not
Parameters:
path Path with object names separated by '.'
value Value returned
index Value index starting at 0
const char* NASA_ODL::OBJECT::GetName (  )  const [inline]

Get object name.

const OBJECTLIST& NASA_ODL::OBJECT::GetObjectList (  )  const [inline]

Get list of objects contained in this object.


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

Generated on Sun Oct 7 21:33:41 2012 for TNTsdk 2012 by  doxygen 1.6.1