libmoost
moost::process::service< ServiceT, ConsoleLoggerPolicy >::service_wrapper Class Reference
Inheritance diagram for moost::process::service< ServiceT, ConsoleLoggerPolicy >::service_wrapper:
Collaboration diagram for moost::process::service< ServiceT, ConsoleLoggerPolicy >::service_wrapper:

List of all members.

Public Member Functions

 service_wrapper (boost::shared_ptr< ServiceT > service)
bool set_log_level (const std::string &level)
std::string get_prompt () MPS_FM303_SHELL_CONST
std::string show_help () MPS_FM303_SHELL_CONST
bool handle_command (std::string &rv, const std::string &cmd, const std::string &args)
std::string name () const
void start ()
void disable_logger ()
void enable_logger ()
void stop ()
boost::shared_ptr< ServiceT > get_service ()
void log (const std::string &msg)

Private Member Functions

boost::shared_ptr< typename
ServiceT::HandlerType > 
checked_handler ()
boost::shared_ptr< const
typename ServiceT::HandlerType > 
checked_handler () const

Private Attributes

boost::shared_ptr< ServiceT > m_service
ConsoleLoggerPolicy m_logger

Detailed Description

template<class ServiceT, class ConsoleLoggerPolicy = MoostStandardConsoleLoggerPolicy>
class moost::process::service< ServiceT, ConsoleLoggerPolicy >::service_wrapper

Definition at line 344 of file service.hpp.


Constructor & Destructor Documentation

template<class ServiceT, class ConsoleLoggerPolicy = MoostStandardConsoleLoggerPolicy>
moost::process::service< ServiceT, ConsoleLoggerPolicy >::service_wrapper::service_wrapper ( boost::shared_ptr< ServiceT >  service) [inline]

Definition at line 372 of file service.hpp.


Member Function Documentation

template<class ServiceT, class ConsoleLoggerPolicy = MoostStandardConsoleLoggerPolicy>
boost::shared_ptr<typename ServiceT::HandlerType> moost::process::service< ServiceT, ConsoleLoggerPolicy >::service_wrapper::checked_handler ( ) [inline, private]

Definition at line 347 of file service.hpp.

Here is the caller graph for this function:

template<class ServiceT, class ConsoleLoggerPolicy = MoostStandardConsoleLoggerPolicy>
boost::shared_ptr<const typename ServiceT::HandlerType> moost::process::service< ServiceT, ConsoleLoggerPolicy >::service_wrapper::checked_handler ( ) const [inline, private]

Definition at line 359 of file service.hpp.

template<class ServiceT, class ConsoleLoggerPolicy = MoostStandardConsoleLoggerPolicy>
void moost::process::service< ServiceT, ConsoleLoggerPolicy >::service_wrapper::disable_logger ( ) [inline]

Definition at line 419 of file service.hpp.

Here is the caller graph for this function:

template<class ServiceT, class ConsoleLoggerPolicy = MoostStandardConsoleLoggerPolicy>
void moost::process::service< ServiceT, ConsoleLoggerPolicy >::service_wrapper::enable_logger ( ) [inline]

Definition at line 424 of file service.hpp.

Here is the caller graph for this function:

template<class ServiceT, class ConsoleLoggerPolicy = MoostStandardConsoleLoggerPolicy>
std::string moost::process::service< ServiceT, ConsoleLoggerPolicy >::service_wrapper::get_prompt ( ) [inline]

Definition at line 382 of file service.hpp.

Here is the call graph for this function:

template<class ServiceT, class ConsoleLoggerPolicy = MoostStandardConsoleLoggerPolicy>
boost::shared_ptr<ServiceT> moost::process::service< ServiceT, ConsoleLoggerPolicy >::service_wrapper::get_service ( ) [inline]

Definition at line 434 of file service.hpp.

Here is the caller graph for this function:

template<class ServiceT, class ConsoleLoggerPolicy = MoostStandardConsoleLoggerPolicy>
bool moost::process::service< ServiceT, ConsoleLoggerPolicy >::service_wrapper::handle_command ( std::string &  rv,
const std::string &  cmd,
const std::string &  args 
) [inline]

Definition at line 397 of file service.hpp.

Here is the call graph for this function:

template<class ServiceT, class ConsoleLoggerPolicy = MoostStandardConsoleLoggerPolicy>
void moost::process::service< ServiceT, ConsoleLoggerPolicy >::service_wrapper::log ( const std::string &  msg) [inline]

Definition at line 439 of file service.hpp.

Here is the caller graph for this function:

template<class ServiceT, class ConsoleLoggerPolicy = MoostStandardConsoleLoggerPolicy>
std::string moost::process::service< ServiceT, ConsoleLoggerPolicy >::service_wrapper::name ( ) const [inline]

Definition at line 407 of file service.hpp.

Here is the caller graph for this function:

template<class ServiceT, class ConsoleLoggerPolicy = MoostStandardConsoleLoggerPolicy>
bool moost::process::service< ServiceT, ConsoleLoggerPolicy >::service_wrapper::set_log_level ( const std::string &  level) [inline]

Definition at line 377 of file service.hpp.

Here is the caller graph for this function:

template<class ServiceT, class ConsoleLoggerPolicy = MoostStandardConsoleLoggerPolicy>
std::string moost::process::service< ServiceT, ConsoleLoggerPolicy >::service_wrapper::show_help ( ) [inline]

Definition at line 387 of file service.hpp.

Here is the call graph for this function:

template<class ServiceT, class ConsoleLoggerPolicy = MoostStandardConsoleLoggerPolicy>
void moost::process::service< ServiceT, ConsoleLoggerPolicy >::service_wrapper::start ( ) [inline]

Definition at line 412 of file service.hpp.

Here is the caller graph for this function:

template<class ServiceT, class ConsoleLoggerPolicy = MoostStandardConsoleLoggerPolicy>
void moost::process::service< ServiceT, ConsoleLoggerPolicy >::service_wrapper::stop ( ) [inline]

Definition at line 429 of file service.hpp.

Here is the caller graph for this function:


Member Data Documentation

template<class ServiceT, class ConsoleLoggerPolicy = MoostStandardConsoleLoggerPolicy>
ConsoleLoggerPolicy moost::process::service< ServiceT, ConsoleLoggerPolicy >::service_wrapper::m_logger [private]

Definition at line 446 of file service.hpp.

template<class ServiceT, class ConsoleLoggerPolicy = MoostStandardConsoleLoggerPolicy>
boost::shared_ptr<ServiceT> moost::process::service< ServiceT, ConsoleLoggerPolicy >::service_wrapper::m_service [private]

Definition at line 445 of file service.hpp.


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