rtop
Public Member Functions | Private Member Functions | Private Attributes | List of all members
rtop::XMLTree Class Reference

parses config file More...

#include <fileio.h>

Public Member Functions

 XMLTree (std::string)
 
ScreenManagerinstantiate ()
 

Private Member Functions

void createTreeFirstPass (pugi::xml_node node)
 
void createPanel (int, int, std::string)
 
pugi::xml_attribute getAttribute (pugi::xml_node, std::string)
 
pugi::xml_node findNode (pugi::xml_node, int uuid)
 
pugi::xml_node findNode (pugi::xml_node, std::string)
 
void parseKeyDictionaries (pugi::xml_node)
 
void parseCallbacks (pugi::xml_node)
 
void parseColors (pugi::xml_node)
 
void parseDatabase (pugi::xml_node)
 
void parseProcInfo (pugi::xml_node)
 
void parseColumn (pugi::xml_node)
 
void updatePolymorphicPanel (BrowsePanelData< InfoProc< int >> *)
 
void updatePolymorphicPanel (BrowsePanelData< InfoProc< float >> *)
 
void updatePolymorphicPanel (BrowsePanelData< InfoProc< std::string >> *)
 
void updatePolymorphicPanel (ProcViewPanel *)
 
void updatePolymorphicPanel (BrowsePanelData< Info > *)
 
void updateObjFromAttrib (int, std::string, View *&)
 
void updateObjFromAttrib (int, std::string, StateMachine &)
 
void updateObjFromAttrib (int, std::string, SimplePanelData *&)
 
void updateObjFromAttrib (int, std::string, int &, std::string, int &)
 
void updateObjFromNodeVal (int, std::string, std::vector< InfoProc< std::string > * > &)
 
void updateObjFromNodeVal (int, std::string, std::vector< InfoProc< int > * > &)
 
void updateObjFromNodeVal (int, std::string, std::vector< InfoProc< float > * > &)
 
void updateObjFromNodeVal (int, std::string, std::vector< Info * > &)
 
void updateObjFromNodeVal (int, std::string, std::string, std::string, StateMachine &)
 
void updateObjFromNodeVal (int, std::string, std::map< SimplePanelData *, std::pair< SimplePanelData *, SimplePanelData * >> &)
 
void updateObjFromNodeVal (int, std::string, std::map< std::string, int > &, SimplePanelData *)
 
void updateViewPanelColors (int, std::string, View *)
 
void updateChildren (int, std::string, std::vector< View * > &)
 
void updateChildren (int, std::string, std::vector< SimplePanelData * > &)
 
void updateChildren (int, std::string, std::string, std::string, std::vector< std::pair< int, int >> &)
 

Private Attributes

pugi::xml_document doc
 

Detailed Description

parses config file

<Screen>
<View></View>
</Screen>

Definition at line 28 of file fileio.h.

Constructor & Destructor Documentation

◆ XMLTree()

rtop::XMLTree::XMLTree ( std::string  xmlfile)

Definition at line 76 of file fileio.h.

Member Function Documentation

◆ createPanel()

void rtop::XMLTree::createPanel ( int  uuid,
int  type,
std::string  container_type 
)
private

Definition at line 336 of file fileio.h.

◆ createTreeFirstPass()

void rtop::XMLTree::createTreeFirstPass ( pugi::xml_node  node)
private

Definition at line 379 of file fileio.h.

◆ findNode() [1/2]

pugi::xml_node rtop::XMLTree::findNode ( pugi::xml_node  node,
int  uuid 
)
private

Definition at line 449 of file fileio.h.

◆ findNode() [2/2]

pugi::xml_node rtop::XMLTree::findNode ( pugi::xml_node  node,
std::string  name 
)
private

Definition at line 470 of file fileio.h.

◆ getAttribute()

pugi::xml_attribute rtop::XMLTree::getAttribute ( pugi::xml_node  node,
std::string  attr_name 
)
private

Definition at line 214 of file fileio.h.

◆ instantiate()

ScreenManager * rtop::XMLTree::instantiate ( )

Definition at line 103 of file fileio.h.

◆ parseCallbacks()

void rtop::XMLTree::parseCallbacks ( pugi::xml_node  root)
private

Definition at line 251 of file fileio.h.

◆ parseColors()

void rtop::XMLTree::parseColors ( pugi::xml_node  node)
private

Definition at line 113 of file fileio.h.

◆ parseColumn()

void rtop::XMLTree::parseColumn ( pugi::xml_node  node)
private

Definition at line 190 of file fileio.h.

◆ parseDatabase()

void rtop::XMLTree::parseDatabase ( pugi::xml_node  node)
private

Definition at line 131 of file fileio.h.

◆ parseKeyDictionaries()

void rtop::XMLTree::parseKeyDictionaries ( pugi::xml_node  root)
private

Definition at line 225 of file fileio.h.

◆ parseProcInfo()

void rtop::XMLTree::parseProcInfo ( pugi::xml_node  node)
private

Definition at line 179 of file fileio.h.

◆ updateChildren() [1/3]

void rtop::XMLTree::updateChildren ( int  uuid,
std::string  child_name,
std::vector< View * > &  views 
)
private

Definition at line 743 of file fileio.h.

◆ updateChildren() [2/3]

void rtop::XMLTree::updateChildren ( int  uuid,
std::string  child_name,
std::vector< SimplePanelData * > &  panels 
)
private

Definition at line 788 of file fileio.h.

◆ updateChildren() [3/3]

void rtop::XMLTree::updateChildren ( int  uuid,
std::string  main_attrib,
std::string  sub_attrib1,
std::string  sub_attrib2,
std::vector< std::pair< int, int >> &  panels_yx 
)
private

Definition at line 726 of file fileio.h.

◆ updateObjFromAttrib() [1/4]

void rtop::XMLTree::updateObjFromAttrib ( int  uuid,
std::string  attr_name,
View *&  currView 
)
private

Definition at line 487 of file fileio.h.

◆ updateObjFromAttrib() [2/4]

void rtop::XMLTree::updateObjFromAttrib ( int  ,
std::string  ,
StateMachine  
)
private

◆ updateObjFromAttrib() [3/4]

void rtop::XMLTree::updateObjFromAttrib ( int  uuid,
std::string  attr_name,
SimplePanelData *&  currPanel 
)
private

Definition at line 507 of file fileio.h.

◆ updateObjFromAttrib() [4/4]

void rtop::XMLTree::updateObjFromAttrib ( int  uuid,
std::string  attr1,
int &  attr1_val,
std::string  attr2,
int &  attr2_val 
)
private

Definition at line 527 of file fileio.h.

◆ updateObjFromNodeVal() [1/7]

void rtop::XMLTree::updateObjFromNodeVal ( int  uuid,
std::string  child_name,
std::vector< InfoProc< std::string > * > &  object_list 
)
private

Definition at line 557 of file fileio.h.

◆ updateObjFromNodeVal() [2/7]

void rtop::XMLTree::updateObjFromNodeVal ( int  uuid,
std::string  child_name,
std::vector< InfoProc< int > * > &  object_list 
)
private

Definition at line 582 of file fileio.h.

◆ updateObjFromNodeVal() [3/7]

void rtop::XMLTree::updateObjFromNodeVal ( int  uuid,
std::string  child_name,
std::vector< InfoProc< float > * > &  object_list 
)
private

Definition at line 578 of file fileio.h.

◆ updateObjFromNodeVal() [4/7]

void rtop::XMLTree::updateObjFromNodeVal ( int  uuid,
std::string  child_name,
std::vector< Info * > &  object_list 
)
private

Definition at line 586 of file fileio.h.

◆ updateObjFromNodeVal() [5/7]

void rtop::XMLTree::updateObjFromNodeVal ( int  uuid,
std::string  child_name,
std::string  child_attr,
std::string  child_attr_val,
StateMachine sm 
)
private

Definition at line 617 of file fileio.h.

◆ updateObjFromNodeVal() [6/7]

void rtop::XMLTree::updateObjFromNodeVal ( int  uuid,
std::string  child_name,
std::map< SimplePanelData *, std::pair< SimplePanelData *, SimplePanelData * >> &  nbrs 
)
private

Definition at line 666 of file fileio.h.

◆ updateObjFromNodeVal() [7/7]

void rtop::XMLTree::updateObjFromNodeVal ( int  uuid,
std::string  child_name,
std::map< std::string, int > &  dict,
SimplePanelData main_panel 
)
private

Definition at line 834 of file fileio.h.

◆ updatePolymorphicPanel() [1/5]

void rtop::XMLTree::updatePolymorphicPanel ( BrowsePanelData< InfoProc< int >> *  pPanel)
private

Definition at line 882 of file fileio.h.

◆ updatePolymorphicPanel() [2/5]

void rtop::XMLTree::updatePolymorphicPanel ( BrowsePanelData< InfoProc< float >> *  pPanel)
private

Definition at line 892 of file fileio.h.

◆ updatePolymorphicPanel() [3/5]

void rtop::XMLTree::updatePolymorphicPanel ( BrowsePanelData< InfoProc< std::string >> *  pPanel)
private

Definition at line 902 of file fileio.h.

◆ updatePolymorphicPanel() [4/5]

void rtop::XMLTree::updatePolymorphicPanel ( ProcViewPanel pPanel)
private

Definition at line 857 of file fileio.h.

◆ updatePolymorphicPanel() [5/5]

void rtop::XMLTree::updatePolymorphicPanel ( BrowsePanelData< Info > *  pPanel)
private

Definition at line 919 of file fileio.h.

◆ updateViewPanelColors()

void rtop::XMLTree::updateViewPanelColors ( int  uuid,
std::string  child_name,
View view 
)
private

Definition at line 701 of file fileio.h.

Member Data Documentation

◆ doc

pugi::xml_document rtop::XMLTree::doc
private

Definition at line 31 of file fileio.h.


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