CommandLine Class Reference

Command Line prompt. More...

#include <command_line.h>

List of all members.

Public Member Functions

 CommandLine (const char *_history_file)
 Constructor.
 CommandLine (std::string _history_file)
 Constructor.
 ~CommandLine ()
std::string GetLine (std::string prompt)
 Read a line from the command line.


Detailed Description

Command Line prompt.

Command Line prompt This class provides a command line prompt with history support (when compiled with readline support)

Definition at line 10 of file command_line.h.


Constructor & Destructor Documentation

CommandLine::CommandLine ( const char *  _history_file  )  [inline]

Constructor.

Parameters:
_history_file Path to the history file (when compiled with readline support)

Definition at line 19 of file command_line.h.

CommandLine::CommandLine ( std::string  _history_file  )  [inline]

Constructor.

Parameters:
_history_file Path to the history file (when compiled with readline support)

Definition at line 23 of file command_line.h.

CommandLine::~CommandLine (  ) 

Definition at line 20 of file command_line.cpp.


Member Function Documentation

std::string CommandLine::GetLine ( std::string  prompt  ) 

Read a line from the command line.

Parameters:
prompt The prompt to display
Returns:
the string that was read on input

Definition at line 31 of file command_line.cpp.


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

Generated on Sun Oct 10 19:10:04 2010 for libldsw by  doxygen 1.5.8