LLCLPValue Class Reference

List of all members.

Public Member Functions

 LLCLPValue ()
virtual ~LLCLPValue ()
void setMinTokens (unsigned c)
void setMaxTokens (unsigned c)
void setComposing (bool c)
void setLastOption (bool c)
void setNotifyCallback (notify_callback_t f)
virtual std::string name () const
virtual unsigned min_tokens () const
virtual unsigned max_tokens () const
virtual bool is_composing () const
virtual bool apply_default (boost::any &value_store) const
virtual void notify (const boost::any &value_store) const

Protected Member Functions

void xparse (boost::any &value_store, const std::vector< std::string > &new_tokens) const

Private Types

typedef boost::function1< void,
const
LLCommandLineParser::token_vector_t & > 
notify_callback_t

Private Attributes

unsigned mMinTokens
unsigned mMaxTokens
bool mIsComposing
notify_callback_t mNotifyCallback
bool mLastOption


Detailed Description

Definition at line 97 of file llcommandlineparser.cpp.


Member Typedef Documentation

typedef boost::function1<void, const LLCommandLineParser::token_vector_t&> LLCLPValue::notify_callback_t [private]

Definition at line 102 of file llcommandlineparser.cpp.


Constructor & Destructor Documentation

LLCLPValue::LLCLPValue (  )  [inline]

Definition at line 107 of file llcommandlineparser.cpp.

virtual LLCLPValue::~LLCLPValue (  )  [inline, virtual]

Definition at line 114 of file llcommandlineparser.cpp.


Member Function Documentation

void LLCLPValue::setMinTokens ( unsigned  c  )  [inline]

Definition at line 116 of file llcommandlineparser.cpp.

References mMinTokens.

Referenced by LLCommandLineParser::addOptionDesc().

Here is the caller graph for this function:

void LLCLPValue::setMaxTokens ( unsigned  c  )  [inline]

Definition at line 121 of file llcommandlineparser.cpp.

References mMaxTokens.

Referenced by LLCommandLineParser::addOptionDesc().

Here is the caller graph for this function:

void LLCLPValue::setComposing ( bool  c  )  [inline]

Definition at line 126 of file llcommandlineparser.cpp.

References mIsComposing.

Referenced by LLCommandLineParser::addOptionDesc().

Here is the caller graph for this function:

void LLCLPValue::setLastOption ( bool  c  )  [inline]

Definition at line 131 of file llcommandlineparser.cpp.

References mLastOption.

Referenced by LLCommandLineParser::addOptionDesc().

Here is the caller graph for this function:

void LLCLPValue::setNotifyCallback ( notify_callback_t  f  )  [inline]

Definition at line 136 of file llcommandlineparser.cpp.

References mNotifyCallback.

Referenced by LLCommandLineParser::addOptionDesc().

Here is the caller graph for this function:

virtual std::string LLCLPValue::name (  )  const [inline, virtual]

Definition at line 142 of file llcommandlineparser.cpp.

References max_tokens().

Here is the call graph for this function:

virtual unsigned LLCLPValue::min_tokens (  )  const [inline, virtual]

Definition at line 149 of file llcommandlineparser.cpp.

References mMinTokens.

Referenced by xparse().

Here is the caller graph for this function:

virtual unsigned LLCLPValue::max_tokens (  )  const [inline, virtual]

Definition at line 154 of file llcommandlineparser.cpp.

References mMaxTokens.

Referenced by name(), and xparse().

Here is the caller graph for this function:

virtual bool LLCLPValue::is_composing (  )  const [inline, virtual]

Definition at line 159 of file llcommandlineparser.cpp.

References mIsComposing.

Referenced by xparse().

Here is the caller graph for this function:

virtual bool LLCLPValue::apply_default ( boost::any &  value_store  )  const [inline, virtual]

Definition at line 164 of file llcommandlineparser.cpp.

virtual void LLCLPValue::notify ( const boost::any &  value_store  )  const [inline, virtual]

Definition at line 169 of file llcommandlineparser.cpp.

References mNotifyCallback.

void LLCLPValue::xparse ( boost::any &  value_store,
const std::vector< std::string > &  new_tokens 
) const [inline, protected]

Definition at line 181 of file llcommandlineparser.cpp.

References gPastLastOption, i, is_composing(), max_tokens(), min_tokens(), mLastOption, and mMaxTokens.

Here is the call graph for this function:


Member Data Documentation

unsigned LLCLPValue::mMinTokens [private]

Definition at line 99 of file llcommandlineparser.cpp.

Referenced by min_tokens(), and setMinTokens().

unsigned LLCLPValue::mMaxTokens [private]

Definition at line 100 of file llcommandlineparser.cpp.

Referenced by max_tokens(), setMaxTokens(), and xparse().

bool LLCLPValue::mIsComposing [private]

Definition at line 101 of file llcommandlineparser.cpp.

Referenced by is_composing(), and setComposing().

Definition at line 103 of file llcommandlineparser.cpp.

Referenced by notify(), and setNotifyCallback().

bool LLCLPValue::mLastOption [private]

Definition at line 104 of file llcommandlineparser.cpp.

Referenced by setLastOption(), and xparse().


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

Generated on Fri May 16 08:42:54 2008 for SecondLife by  doxygen 1.5.5