0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
Hypertable::CommandShell Class Reference

#include <CommandShell.h>

Collaboration diagram for Hypertable::CommandShell:
Collaboration graph
[legend]

Public Member Functions

 CommandShell (const std::string &prompt_str, const std::string &service_name, CommandInterpreterPtr &, PropertiesPtr &)
 
 ~CommandShell ()
 
int run ()
 
bool silent ()
 
bool test_mode ()
 
void set_namespace (const String &ns)
 
void set_line_command_mode (bool val)
 

Static Public Member Functions

static void add_options (PropertiesDesc &)
 

Static Public Attributes

static String ms_history_file = ""
 

Private Member Functions

char * rl_gets ()
 

Static Private Member Functions

static const wchar_t * prompt (EditLine *el)
 

Private Attributes

CommandInterpreterPtr m_interp_ptr
 
PropertiesPtr m_props
 
NotifierPtr m_notifier_ptr
 
String m_accum
 
bool m_verbose
 
bool m_batch_mode {}
 
bool m_silent {}
 
bool m_test_mode {}
 
bool m_no_prompt {}
 
bool m_line_command_mode {}
 
bool m_cont {}
 
char * m_line_read {}
 
bool m_notify {}
 
bool m_has_cmd_file {}
 
bool m_has_cmd_exec {}
 
String m_input_str
 
std::string m_prompt
 
std::wstring m_wprompt
 
std::string m_service_name
 
String m_cmd_str
 
String m_cmd_file
 
String m_namespace
 
EditLine * m_editline
 
HistoryW * m_history
 
HistEventW m_history_event
 
TokenizerW * m_tokenizer
 

Static Private Attributes

static CommandShellms_instance
 

Detailed Description

Definition at line 38 of file CommandShell.h.

Constructor & Destructor Documentation

CommandShell::CommandShell ( const std::string &  prompt_str,
const std::string &  service_name,
CommandInterpreterPtr interp_ptr,
PropertiesPtr props 
)

Definition at line 203 of file CommandShell.cc.

CommandShell::~CommandShell ( )

Definition at line 288 of file CommandShell.cc.

Member Function Documentation

void CommandShell::add_options ( PropertiesDesc desc)
static

Definition at line 388 of file CommandShell.cc.

const wchar_t * CommandShell::prompt ( EditLine *  el)
staticprivate

Definition at line 638 of file CommandShell.cc.

char * CommandShell::rl_gets ( )
private

Definition at line 299 of file CommandShell.cc.

int CommandShell::run ( )

Add commands to queue

Definition at line 404 of file CommandShell.cc.

void Hypertable::CommandShell::set_line_command_mode ( bool  val)
inline

Definition at line 50 of file CommandShell.h.

void Hypertable::CommandShell::set_namespace ( const String ns)
inline

Definition at line 49 of file CommandShell.h.

bool Hypertable::CommandShell::silent ( )
inline

Definition at line 47 of file CommandShell.h.

bool Hypertable::CommandShell::test_mode ( )
inline

Definition at line 48 of file CommandShell.h.

Member Data Documentation

String Hypertable::CommandShell::m_accum
private

Definition at line 65 of file CommandShell.h.

bool Hypertable::CommandShell::m_batch_mode {}
private

Definition at line 67 of file CommandShell.h.

String Hypertable::CommandShell::m_cmd_file
private

Definition at line 82 of file CommandShell.h.

String Hypertable::CommandShell::m_cmd_str
private

Definition at line 81 of file CommandShell.h.

bool Hypertable::CommandShell::m_cont {}
private

Definition at line 72 of file CommandShell.h.

EditLine* Hypertable::CommandShell::m_editline
private

Definition at line 85 of file CommandShell.h.

bool Hypertable::CommandShell::m_has_cmd_exec {}
private

Definition at line 76 of file CommandShell.h.

bool Hypertable::CommandShell::m_has_cmd_file {}
private

Definition at line 75 of file CommandShell.h.

HistoryW* Hypertable::CommandShell::m_history
private

Definition at line 86 of file CommandShell.h.

HistEventW Hypertable::CommandShell::m_history_event
private

Definition at line 87 of file CommandShell.h.

String Hypertable::CommandShell::m_input_str
private

Definition at line 77 of file CommandShell.h.

CommandInterpreterPtr Hypertable::CommandShell::m_interp_ptr
private

Definition at line 61 of file CommandShell.h.

bool Hypertable::CommandShell::m_line_command_mode {}
private

Definition at line 71 of file CommandShell.h.

char* Hypertable::CommandShell::m_line_read {}
private

Definition at line 73 of file CommandShell.h.

String Hypertable::CommandShell::m_namespace
private

Definition at line 83 of file CommandShell.h.

bool Hypertable::CommandShell::m_no_prompt {}
private

Definition at line 70 of file CommandShell.h.

NotifierPtr Hypertable::CommandShell::m_notifier_ptr
private

Definition at line 63 of file CommandShell.h.

bool Hypertable::CommandShell::m_notify {}
private

Definition at line 74 of file CommandShell.h.

std::string Hypertable::CommandShell::m_prompt
private

Definition at line 78 of file CommandShell.h.

PropertiesPtr Hypertable::CommandShell::m_props
private

Definition at line 62 of file CommandShell.h.

std::string Hypertable::CommandShell::m_service_name
private

Definition at line 80 of file CommandShell.h.

bool Hypertable::CommandShell::m_silent {}
private

Definition at line 68 of file CommandShell.h.

bool Hypertable::CommandShell::m_test_mode {}
private

Definition at line 69 of file CommandShell.h.

TokenizerW* Hypertable::CommandShell::m_tokenizer
private

Definition at line 88 of file CommandShell.h.

bool Hypertable::CommandShell::m_verbose
private

Definition at line 66 of file CommandShell.h.

std::wstring Hypertable::CommandShell::m_wprompt
private

Definition at line 79 of file CommandShell.h.

String CommandShell::ms_history_file = ""
static

Definition at line 54 of file CommandShell.h.

CommandShell * CommandShell::ms_instance
staticprivate

Definition at line 58 of file CommandShell.h.


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