nidas v1.2.3
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Static Private Attributes | List of all members
nidas::dynld::XMLConfigService Class Reference

#include <XMLConfigService.h>

Inheritance diagram for nidas::dynld::XMLConfigService:
Inheritance graph
[legend]

Classes

class  Worker
 Worker thread that is run when a connection comes in. More...
 

Public Member Functions

 XMLConfigService ()
 
 ~XMLConfigService ()
 
void interrupt () throw ()
 
IOChannelRequesterconnected (IOChannel *) throw ()
 
void connect (SampleInput *) throw ()
 
void disconnect (SampleInput *) throw ()
 
void schedule (bool optionalProcessing)
 schedule this service to run.
 
virtual McSocketRequest getRequestType () const
 
const std::string & getName () const
 
virtual void setDSMServer (DSMServer *val)
 
virtual DSMServergetDSMServer () const
 
virtual void addProcessor (SampleIOProcessor *proc)
 Add a processor to this RawSampleService.
 
virtual const std::list< SampleIOProcessor * > & getProcessors () const
 
const std::list< SampleInput * > & getInputs () const
 
ProcessorIterator getProcessorIterator () const
 
virtual int checkSubThreads () throw ()
 
virtual void cancel () throw ()
 
virtual int join () throw ()
 
void fromDOMElement (const xercesc::DOMElement *node)
 
nidas::util::Thread::SchedPolicy getSchedPolicy () const
 
int getSchedPriority () const
 
virtual void printClock (std::ostream &) throw ()
 
virtual void printStatus (std::ostream &, float) throw ()
 
virtual xercesc::DOMElement * toDOMParent (xercesc::DOMElement *parent, bool complete) const
 Create a DOMElement and append it to the parent.
 
virtual xercesc::DOMElement * toDOMElement (xercesc::DOMElement *node, bool complete) const
 Add my content into a DOMElement.
 

Static Public Member Functions

static const std::string getClassName (const xercesc::DOMElement *node, const Project *)
 
static const XMLChgetNamespaceURI ()
 

Protected Member Functions

 XMLConfigService (const std::string &name)
 
void addSubThread (nidas::util::Thread *) throw ()
 

Protected Attributes

std::string _name
 
DSMServer_server
 
std::set< nidas::util::Thread * > _subThreads
 
nidas::util::Mutex _subThreadMutex
 
std::list< SampleInput * > _inputs
 
std::list< SampleIOProcessor * > _processors
 
std::list< IOChannel * > _ochans
 
nidas::util::Thread::SchedPolicy _threadPolicy
 
int _threadPriority
 

Private Member Functions

 XMLConfigService (const XMLConfigService &)
 Copying not supported.
 
XMLConfigServiceoperator= (const XMLConfigService &)
 Assignment not supported.
 

Static Private Attributes

static XMLChnamespaceURI = 0
 

Constructor & Destructor Documentation

◆ XMLConfigService() [1/3]

XMLConfigService::XMLConfigService ( )

◆ ~XMLConfigService()

XMLConfigService::~XMLConfigService ( )

◆ XMLConfigService() [2/3]

nidas::dynld::XMLConfigService::XMLConfigService ( const std::string & name)
inlineprotected

◆ XMLConfigService() [3/3]

nidas::dynld::XMLConfigService::XMLConfigService ( const XMLConfigService & )
private

Copying not supported.

Member Function Documentation

◆ addProcessor()

virtual void nidas::core::DSMService::addProcessor ( SampleIOProcessor * proc)
inlinevirtualinherited

Add a processor to this RawSampleService.

This is done at configuration (XML) time.

References nidas::core::DSMService::_processors.

Referenced by nidas::core::DSMService::fromDOMElement().

◆ addSubThread()

void DSMService::addSubThread ( nidas::util::Thread * thd)
throw ( )
protectedinherited

◆ cancel()

void DSMService::cancel ( )
throw ( )
virtualinherited

◆ checkSubThreads()

int DSMService::checkSubThreads ( )
throw ( )
virtualinherited

◆ connect()

void nidas::dynld::XMLConfigService::connect ( SampleInput * )
throw ( )
inlinevirtual

◆ connected()

IOChannelRequester * XMLConfigService::connected ( IOChannel * iochan)
throw ( )
virtual

◆ disconnect()

void nidas::dynld::XMLConfigService::disconnect ( SampleInput * )
throw ( )
inline

◆ fromDOMElement()

void DSMService::fromDOMElement ( const xercesc::DOMElement * node)
virtualinherited

◆ getClassName()

const string DSMService::getClassName ( const xercesc::DOMElement * node,
const Project * project )
staticinherited

◆ getDSMServer()

virtual DSMServer * nidas::core::DSMService::getDSMServer ( ) const
inlinevirtualinherited

◆ getInputs()

const std::list< SampleInput * > & nidas::core::DSMService::getInputs ( ) const
inlineinherited

◆ getName()

const std::string & nidas::core::DSMService::getName ( ) const
inlineinherited

◆ getNamespaceURI()

static const XMLCh * nidas::core::DOMable::getNamespaceURI ( )
inlinestaticinherited

◆ getProcessorIterator()

ProcessorIterator DSMService::getProcessorIterator ( ) const
inherited

◆ getProcessors()

virtual const std::list< SampleIOProcessor * > & nidas::core::DSMService::getProcessors ( ) const
inlinevirtualinherited

◆ getRequestType()

virtual McSocketRequest nidas::dynld::XMLConfigService::getRequestType ( ) const
inlinevirtual

Reimplemented in nidas::dynld::XMLConfigAllService.

References nidas::core::XML_CONFIG.

Referenced by schedule().

◆ getSchedPolicy()

nidas::util::Thread::SchedPolicy nidas::core::DSMService::getSchedPolicy ( ) const
inlineinherited

◆ getSchedPriority()

int nidas::core::DSMService::getSchedPriority ( ) const
inlineinherited

◆ interrupt()

void XMLConfigService::interrupt ( )
throw ( )
virtual

◆ join()

int DSMService::join ( )
throw ( )
virtualinherited

◆ operator=()

XMLConfigService & nidas::dynld::XMLConfigService::operator= ( const XMLConfigService & )
private

Assignment not supported.

◆ printClock()

virtual void nidas::core::DSMService::printClock ( std::ostream & )
throw ( )
inlinevirtualinherited

Reimplemented in nidas::dynld::RawSampleService.

◆ printStatus()

virtual void nidas::core::DSMService::printStatus ( std::ostream & ,
float  )
throw ( )
inlinevirtualinherited

Reimplemented in nidas::dynld::RawSampleService.

◆ schedule()

void XMLConfigService::schedule ( bool optionalProcessing)
virtual

◆ setDSMServer()

void DSMService::setDSMServer ( DSMServer * val)
virtualinherited

◆ toDOMElement()

xercesc::DOMElement * DOMable::toDOMElement ( xercesc::DOMElement * node,
bool complete ) const
virtualinherited

◆ toDOMParent()

xercesc::DOMElement * DOMable::toDOMParent ( xercesc::DOMElement * parent,
bool complete ) const
virtualinherited

Create a DOMElement and append it to the parent.

Exceptions
xercesc::DOMException

Reimplemented in nidas::core::DSMConfig, nidas::core::DSMSensor, nidas::core::Project, nidas::core::SampleTag, nidas::core::Site, nidas::core::ServerSocket, and nidas::core::Variable.

Member Data Documentation

◆ _inputs

std::list<SampleInput*> nidas::core::DSMService::_inputs
protectedinherited

◆ _name

std::string nidas::core::DSMService::_name
protectedinherited

◆ _ochans

std::list<IOChannel*> nidas::core::DSMService::_ochans
protectedinherited

◆ _processors

std::list<SampleIOProcessor*> nidas::core::DSMService::_processors
protectedinherited

◆ _server

DSMServer* nidas::core::DSMService::_server
protectedinherited

◆ _subThreadMutex

nidas::util::Mutex nidas::core::DSMService::_subThreadMutex
protectedinherited

◆ _subThreads

std::set<nidas::util::Thread*> nidas::core::DSMService::_subThreads
protectedinherited

◆ _threadPolicy

nidas::util::Thread::SchedPolicy nidas::core::DSMService::_threadPolicy
protectedinherited

◆ _threadPriority

int nidas::core::DSMService::_threadPriority
protectedinherited

◆ namespaceURI

XMLCh * DOMable::namespaceURI = 0
staticprivateinherited

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