Main Page   Hardware Class Hierarchy   Hardware API     Mapping Class Hierarchy  Mapping API 

Component_List Class Reference

Maintains a list of internal components within another active node within the subsystem. More...

#include <component_list.h>


Public Member Functions

 Component_List (Component_Item *)
OBJECT component (int, char **)
 Return component number in list and assigns the name of the object from global name list.

 Component_List (void)
Component_Item operator[] (int)
 Accessor operator.

OBJECT component (int i)
 Return component number in list.

uint8 depth (int)
 Return depth of component.

bool receive_component_list (void *)
 Once the first Report_Component_Message is received, then node manager transfers control here to finish.

int tail (void)
 Returns the last component in the list.

void tail (int t)
 Sets the tail of a list.

bool sublist (int index, Component_List &cl)
 Generates a sublist by selecting only the children of the selected object (index).

bool superlist (int index, Component_List &cl)
 Clears list by resetting tail.

void clear (void)
bool root (void)
void root (bool r)
bool terminal (void)
void terminal (bool r)
void set (int i, uint8 d, uint8 inst, OBJECT o)
 set


Private Member Functions

void dostuff (void *, short &counter)

Private Attributes

Component_Item _object [OOMRM_OBJECT_MAX]
int _tail
bool _root
bool _terminal


Detailed Description

Maintains a list of internal components within another active node within the subsystem.

Usually this will be populated from a JAUS Report_Component_Message created on the host, but technically is feasible on the target also.


Constructor & Destructor Documentation

Component_List Component_Item  ) 
 

Component_List void   ) 
 


Member Function Documentation

void clear void   ) 
 

OBJECT component int  i  ) 
 

Return component number in list.

OBJECT component int  ,
char ** 
 

Return component number in list and assigns the name of the object from global name list.

uint8 depth int   ) 
 

Return depth of component.

void dostuff void *  ,
short &  counter
[private]
 

Component_Item operator[] int   ) 
 

Accessor operator.

bool receive_component_list void *   ) 
 

Once the first Report_Component_Message is received, then node manager transfers control here to finish.

void root bool  r  ) 
 

bool root void   ) 
 

void set int  i,
uint8  d,
uint8  inst,
OBJECT  o
 

set

bool sublist int  index,
Component_List &  cl
 

Generates a sublist by selecting only the children of the selected object (index).

bool superlist int  index,
Component_List &  cl
 

Clears list by resetting tail.

void tail int  t  ) 
 

Sets the tail of a list.

int tail void   ) 
 

Returns the last component in the list.

void terminal bool  r  ) 
 

bool terminal void   ) 
 


Field Documentation

Component_Item _object[OOMRM_OBJECT_MAX] [private]
 

bool _root [private]
 

int _tail [private]
 

bool _terminal [private]
 


Generated on Mon Oct 8 19:32:24 2007 for OOMRM Mapping API by doxygen1.3