NodeID Class Reference

Structure for holding the information on one subnode. More...

#include <Twig.hpp>

List of all members.

Public Member Functions

void addAttribute (std::string name, std::string value)
 Adds an attribute to the NodeID.
UAPNodegetChild (UAPNode *parent, bool create=false)
 Gets the child UAPNode given the parent node and the NodeID.
std::string toString () const
 Translates the NodeID to the equivalent string.


Detailed Description

Structure for holding the information on one subnode.

Definition at line 62 of file Twig.hpp.


Member Function Documentation

void NodeID::addAttribute ( std::string  name,
std::string  value 
)

Adds an attribute to the NodeID.

Parameters:
name Attribute name.
value Attribute value.

Definition at line 38 of file Twig.cpp.

UAPNode * NodeID::getChild ( UAPNode parent,
bool  create = false 
)

Gets the child UAPNode given the parent node and the NodeID.

Parameters:
parent Pointer to the Parent node.
create Create the child if not present?
Returns:
Pointer to the child node. NULL if there is no child.

Definition at line 82 of file Twig.cpp.

string NodeID::toString (  )  const

Translates the NodeID to the equivalent string.

Returns:
Output string.

Definition at line 417 of file Twig.cpp.


Generated on Fri Feb 12 15:47:57 2010 for Universal Accelerator Parser by  doxygen 1.5.7