GClasses
UsageNode Class Reference

#include <usage.h>

Public Member Functions

 UsageNode (const char *templ, const char *descr)
 
 ~UsageNode ()
 
UsageNodeadd (const char *templ, const char *descr="")
 
UsageNodechoice (const char *name)
 
std::vector< UsageNode * > & choices ()
 
std::string & default_value ()
 
const char * descr ()
 
int findPart (const char *name)
 
std::vector< std::string > & parts ()
 
void print (std::ostream &stream, int depth, int tabSize, int maxWidth, int maxDepth, bool descriptions)
 
void setTok (const char *token)
 
void sig (std::string *pS)
 
const char * tok ()
 

Protected Attributes

std::vector< UsageNode * > m_choices
 
std::string m_default_value
 
std::string m_description
 
std::vector< std::string > m_parts
 

Constructor & Destructor Documentation

UsageNode::UsageNode ( const char *  templ,
const char *  descr 
)
UsageNode::~UsageNode ( )

Member Function Documentation

UsageNode* UsageNode::add ( const char *  templ,
const char *  descr = "" 
)
UsageNode* UsageNode::choice ( const char *  name)
std::vector<UsageNode*>& UsageNode::choices ( )
inline
std::string& UsageNode::default_value ( )
inline
const char* UsageNode::descr ( )
inline
int UsageNode::findPart ( const char *  name)
std::vector<std::string>& UsageNode::parts ( )
inline
void UsageNode::print ( std::ostream &  stream,
int  depth,
int  tabSize,
int  maxWidth,
int  maxDepth,
bool  descriptions 
)
void UsageNode::setTok ( const char *  token)
inline
void UsageNode::sig ( std::string *  pS)
const char* UsageNode::tok ( )
inline

Member Data Documentation

std::vector<UsageNode*> UsageNode::m_choices
protected
std::string UsageNode::m_default_value
protected
std::string UsageNode::m_description
protected
std::vector<std::string> UsageNode::m_parts
protected