ICP  1
Public Member Functions | Static Public Member Functions | Private Types | Private Attributes | List of all members
Qxtrm_driver Class Reference

#include <Qxtrm_driver.h>

Inheritance diagram for Qxtrm_driver:
Inheritance graph

Public Member Functions

void loadConfigData (const std::string &config_file, int ethernet_id, bool do_remote_config, std::string &config_data)
 
std::ostream & channelStatus (std::ostream &os) const
 
std::ostream & channelTransferStats (std::ostream &os) const
 
Poco::SharedPtr< Qxtrm_channelcreateChannel (const std::string &chan_name)
 
 Qxtrm_driver (const std::string &config_file, const std::string &node_name, int ethernet_id, int process_number, bool do_remote_config)
 
virtual ~Qxtrm_driver ()
 

Static Public Member Functions

static void getNetworkDetails (const std::string &ip_prefix, std::string &ip_addr, std::string &mac_addr)
 
static std::string qxtrmStatusMessage (int qxtrm_status, Quixtream *qx=NULL, int chan=INVALID_QXTRM_CHANNEL)
 
static std::string qxtrmChannelStatusMessage (int qxtrm_channel_status)
 
static std::string qxtrmChannelStatusMessage (Quixtream *qx, int chan)
 

Private Types

typedef std::map< std::string,
Poco::SharedPtr< Qxtrm_channel > > 
chan_map_t
 

Private Attributes

Poco::SharedPtr< Quixtream > m_qx
 
chan_map_t m_chans
 

Additional Inherited Members

- Protected Member Functions inherited from ISIS::Base
 Base (const std::string &logger_name="UNKNOWN")
 
void setLoggerName (const std::string &logger_name)
 
virtual ~Base ()
 
virtual std::string loggingPrefix () const
 
void setThisLoggerLevel (int level)
 
- Static Protected Member Functions inherited from ISIS::Base
static void setAllLoggerLevel (int level)
 
- Protected Attributes inherited from ISIS::Base
Poco::Logger * m_logger
 
Poco::LogStream * m_logstr
 
Poco::Mutex m_logger_lock
 

Detailed Description

Definition at line 54 of file Qxtrm_driver.h.

Member Typedef Documentation

typedef std::map< std::string, Poco::SharedPtr<Qxtrm_channel> > Qxtrm_driver::chan_map_t
private

Definition at line 58 of file Qxtrm_driver.h.

Constructor & Destructor Documentation

Qxtrm_driver::Qxtrm_driver ( const std::string &  config_file,
const std::string &  node_name,
int  ethernet_id,
int  process_number,
bool  do_remote_config 
)
Qxtrm_driver::~Qxtrm_driver ( )
virtual

Definition at line 615 of file Qxtrm_driver.cpp.

Member Function Documentation

std::ostream & Qxtrm_driver::channelStatus ( std::ostream &  os) const

Definition at line 291 of file Qxtrm_driver.cpp.

References m_chans.

Referenced by MyServerApp::main(), and QxtrmInterface::reinit().

std::ostream & Qxtrm_driver::channelTransferStats ( std::ostream &  os) const

Definition at line 300 of file Qxtrm_driver.cpp.

References m_chans.

Referenced by MyServerApp::main(), and QxtrmInterface::reinit().

Poco::SharedPtr< Qxtrm_channel > Qxtrm_driver::createChannel ( const std::string &  chan_name)

Definition at line 449 of file Qxtrm_driver.cpp.

References m_chans, and m_qx.

Referenced by MyServerApp::main(), and QxtrmInterface::reinit().

void Qxtrm_driver::getNetworkDetails ( const std::string &  ip_prefix,
std::string &  ip_addr,
std::string &  mac_addr 
)
static

Definition at line 309 of file Qxtrm_driver.cpp.

Referenced by loadConfigData().

void Qxtrm_driver::loadConfigData ( const std::string &  config_file,
int  ethernet_id,
bool  do_remote_config,
std::string &  config_data 
)

Definition at line 359 of file Qxtrm_driver.cpp.

References closesocket, getNetworkDetails(), LOGSTR_INFORMATION, and SOCKET.

Referenced by Qxtrm_driver().

std::string Qxtrm_driver::qxtrmChannelStatusMessage ( int  qxtrm_channel_status)
static
Parameters
[in]qxtrm_channel_statusQuixtream qxtrmChannelStatus error code

Definition at line 551 of file Qxtrm_driver.cpp.

Referenced by Qxtrm_channel::channelStatus(), qxtrmChannelStatusMessage(), and qxtrmStatusMessage().

std::string Qxtrm_driver::qxtrmChannelStatusMessage ( Quixtream *  qx,
int  chan 
)
static

Definition at line 536 of file Qxtrm_driver.cpp.

References qxtrmChannelStatusMessage(), and qxtrmStatusMessage().

std::string Qxtrm_driver::qxtrmStatusMessage ( int  qxtrm_status,
Quixtream *  qx = NULL,
int  chan = INVALID_QXTRM_CHANNEL 
)
static
Parameters
[in]qxtrm_statusQuixtream qxtrmStatus error code
[in]qxpointer to Quixstream object Quixtream qxtrmStatus error code
[in]chanQuixtream channel

Definition at line 460 of file Qxtrm_driver.cpp.

References INVALID_QXTRM_CHANNEL, and qxtrmChannelStatusMessage().

Referenced by Qxtrm_channel::channelStatsHelper(), Qxtrm_channel::channelStatus(), and qxtrmChannelStatusMessage().

Member Data Documentation

chan_map_t Qxtrm_driver::m_chans
private

Definition at line 59 of file Qxtrm_driver.h.

Referenced by channelStatus(), channelTransferStats(), and createChannel().

Poco::SharedPtr<Quixtream> Qxtrm_driver::m_qx
private

Definition at line 57 of file Qxtrm_driver.h.

Referenced by createChannel(), and Qxtrm_driver().


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