atlas  0.6
Public Member Functions | Protected Types | Protected Member Functions | Private Types | Private Attributes | List of all members
atlas::commands::CommandNode Class Reference

#include <commands.h>

Inheritance diagram for atlas::commands::CommandNode:
Inheritance graph
[legend]

Public Member Functions

 CommandNode (const char *, void(*entry)()=&relax_f, void(*exit)()=&relax_f)
 
 ~CommandNode ()
 
const char * prompt () const
 
void addCommands (const CommandNode &source)
 
void add (const char *const name, action_pointer f, const char *const tag, action_pointer help_f=nohelp_h)
 
void nohelp_add (const char *const name, action_pointer f)
 
void exit () const
 

Protected Types

typedef CommandDict::const_iterator const_iterator
 

Protected Member Functions

void add (const char *const name, const Command &action)
 
const_iterator find (const char *name) const
 
const_iterator find_prefix (const char *name) const
 
void entry () const
 
const_iterator begin () const
 
const_iterator end () const
 

Private Types

typedef std::map< const char *, Command, StrCmpCommandDict
 

Private Attributes

CommandDict d_map
 
const char * d_prompt
 
action_pointer d_entry
 
action_pointer d_exit
 

Member Typedef Documentation

typedef std::map<const char*,Command,StrCmp> atlas::commands::CommandNode::CommandDict
private
typedef CommandDict::const_iterator atlas::commands::CommandNode::const_iterator
protected

Constructor & Destructor Documentation

atlas::commands::CommandNode::CommandNode ( const char *  str,
void(*)()  entry = &relax_f,
void(*)()  exit = &relax_f 
)
atlas::commands::CommandNode::~CommandNode ( )
inline

Member Function Documentation

void atlas::commands::CommandNode::add ( const char *const  name,
action_pointer  f,
const char *const  tag,
action_pointer  help_f = nohelp_h 
)
void atlas::commands::CommandNode::add ( const char *const  name,
const Command action 
)
protected
void atlas::commands::CommandNode::addCommands ( const CommandNode source)
const_iterator atlas::commands::CommandNode::begin ( ) const
inlineprotected
const_iterator atlas::commands::CommandNode::end ( ) const
inlineprotected
void atlas::commands::CommandNode::entry ( ) const
inlineprotected
void atlas::commands::CommandNode::exit ( ) const
inline
const_iterator atlas::commands::CommandNode::find ( const char *  name) const
inlineprotected
const_iterator atlas::commands::CommandNode::find_prefix ( const char *  name) const
inlineprotected
void atlas::commands::CommandNode::nohelp_add ( const char *const  name,
action_pointer  f 
)
inline
const char* atlas::commands::CommandNode::prompt ( ) const
inline

Member Data Documentation

action_pointer atlas::commands::CommandNode::d_entry
private
action_pointer atlas::commands::CommandNode::d_exit
private
CommandDict atlas::commands::CommandNode::d_map
private
const char* atlas::commands::CommandNode::d_prompt
private

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