FSh Class Reference

#include <FSh.h>

Inherits Service< T >< FSh >.

Inheritance diagram for FSh:

Inheritance graph
[legend]
Collaboration diagram for FSh:

Collaboration graph
[legend]
List of all members.

Static Public Member Functions

static String NAME ()
static String MANUAL ()

Protected Member Functions

 FSh (const ValueList &params)
virtual ~FSh ()

Private Member Functions

int start ()
 SLOT (dataReady)
 SLOT (die)
 SLOT (setColorEnabled, const bool &yes)
 SLOT (setLogErrorsEnabled, const bool &yes=true)
 SLOT (setLogErrorsRegexp, const String &re)
 SLOT (setLogWarningsEnabled, const bool &yes=true)
 SLOT (setLogWarningsRegexp, const String &re)
 SLOT (setLogDebugEnabled, const bool &yes=true)
 SLOT (setLogDebugRegexp, const String &re)
 SLOT (logError, const String &timestamp, const String &fileName, const unsigned int lineNum, const String &functionName, const String &msg)
 SLOT (logWarning, const String &timestamp, const String &fileName, const unsigned int lineNum, const String &functionName, const String &msg)
 SLOT (logDebug, const String &timestamp, const String &fileName, const unsigned int lineNum, const String &functionName, const String &msg)
 REGISTRY (bool, colors__on, true, MAN_FSH_COLORS_ON)
 REGISTRY_PRIVATE (bool, log__errors__on, true, MAN_FSH_LOG)
 REGISTRY_PRIVATE (String, log__errors__regexp,"", MAN_FSH_LOG)
 REGISTRY_PRIVATE (bool, log__warnings__on, false, MAN_FSH_LOG)
 REGISTRY_PRIVATE (String, log__warnings__regexp,"", MAN_FSH_LOG)
 REGISTRY_PRIVATE (bool, log__debug__on, false, MAN_FSH_LOG)
 REGISTRY_PRIVATE (String, log__debug__regexp,"", MAN_FSH_LOG)

Private Attributes

TcpConnection_connection
FShGetLine_getLine
Telnet_telnet
bool _logErrors
RE _logErrorsRe
bool _logWarnings
RE _logWarningsRe
bool _logDebug
RE _logDebugRe

Friends

class Service< FSh >
class FShGetLine

Detailed Description

Definition at line 48 of file FSh.h.


Constructor & Destructor Documentation

FSh::FSh ( const ValueList params  )  [protected]

Definition at line 15 of file FSh.cpp.

References _connection, BIND, CSTRING(), ERROR, ERROR_BACKTRACE(), FAILED(), Support::failure(), Value< T >::get(), NAME(), SERVICE_MSG_INVALID_PARAM_TYPE, SERVICE_MSG_INVALID_PARAMS, and start().

FSh::~FSh (  )  [protected, virtual]

Definition at line 54 of file FSh.cpp.

References _connection, _getLine, and _telnet.


Member Function Documentation

String FSh::NAME (  )  [inline, static]

Reimplemented from Service< T >.

Definition at line 118 of file FSh.h.

References NAME_FSH.

Referenced by FSh().

String FSh::MANUAL (  )  [inline, static]

Reimplemented from Service< T >.

Definition at line 124 of file FSh.h.

References MAN_FSH.

int FSh::start (  )  [private]

Definition at line 66 of file FSh.cpp.

References _connection, _getLine, _telnet, CONNECT, ERR(), ERROR, ERROR_BACKTRACE(), FAILED(), Support::failureCode(), FShGetLine, Telnet::iac(), MSG_OBJECT_CANNOT_CREATE, OK, REGISTRY_GET, and TcpConnection::setNonBlock().

Referenced by FSh().

FSh::SLOT ( dataReady   )  [private]

FSh::SLOT ( die   )  [private]

FSh::SLOT ( setColorEnabled  ,
const bool yes 
) [private]

FSh::SLOT ( setLogErrorsEnabled  ,
const bool yes = true 
) [private]

FSh::SLOT ( setLogErrorsRegexp  ,
const String re 
) [private]

FSh::SLOT ( setLogWarningsEnabled  ,
const bool yes = true 
) [private]

FSh::SLOT ( setLogWarningsRegexp  ,
const String re 
) [private]

FSh::SLOT ( setLogDebugEnabled  ,
const bool yes = true 
) [private]

FSh::SLOT ( setLogDebugRegexp  ,
const String re 
) [private]

FSh::SLOT ( logError  ,
const String timestamp,
const String fileName,
const unsigned int  lineNum,
const String functionName,
const String msg 
) [private]

FSh::SLOT ( logWarning  ,
const String timestamp,
const String fileName,
const unsigned int  lineNum,
const String functionName,
const String msg 
) [private]

FSh::SLOT ( logDebug  ,
const String timestamp,
const String fileName,
const unsigned int  lineNum,
const String functionName,
const String msg 
) [private]

FSh::REGISTRY ( bool  ,
colors__on  ,
true  ,
MAN_FSH_COLORS_ON   
) [private]

FSh::REGISTRY_PRIVATE ( bool  ,
log__errors__on  ,
true  ,
MAN_FSH_LOG   
) [private]

FSh::REGISTRY_PRIVATE ( String  ,
log__errors__regexp  ,
""  ,
MAN_FSH_LOG   
) [private]

FSh::REGISTRY_PRIVATE ( bool  ,
log__warnings__on  ,
false  ,
MAN_FSH_LOG   
) [private]

FSh::REGISTRY_PRIVATE ( String  ,
log__warnings__regexp  ,
""  ,
MAN_FSH_LOG   
) [private]

FSh::REGISTRY_PRIVATE ( bool  ,
log__debug__on  ,
false  ,
MAN_FSH_LOG   
) [private]

FSh::REGISTRY_PRIVATE ( String  ,
log__debug__regexp  ,
""  ,
MAN_FSH_LOG   
) [private]


Friends And Related Function Documentation

friend class Service< FSh > [friend]

Definition at line 51 of file FSh.h.

friend class FShGetLine [friend]

Definition at line 52 of file FSh.h.

Referenced by start().


Member Data Documentation

TcpConnection* FSh::_connection [private]

Definition at line 103 of file FSh.h.

Referenced by FSh(), FShGetLine::FShGetLine(), start(), and ~FSh().

FShGetLine* FSh::_getLine [private]

Definition at line 104 of file FSh.h.

Referenced by start(), and ~FSh().

Telnet* FSh::_telnet [private]

Definition at line 105 of file FSh.h.

Referenced by start(), and ~FSh().

bool FSh::_logErrors [private]

Definition at line 107 of file FSh.h.

RE FSh::_logErrorsRe [private]

Definition at line 108 of file FSh.h.

bool FSh::_logWarnings [private]

Definition at line 110 of file FSh.h.

RE FSh::_logWarningsRe [private]

Definition at line 111 of file FSh.h.

bool FSh::_logDebug [private]

Definition at line 113 of file FSh.h.

RE FSh::_logDebugRe [private]

Definition at line 114 of file FSh.h.


The documentation for this class was generated from the following files:
Generated on Thu Sep 6 20:13:37 2007 for Pylon Application Platform by  doxygen 1.5.1