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

An XMLConfigService that listens for datagram requests of type XML_ALL_CONFIG. More...

#include <XMLConfigAllService.h>

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

Public Member Functions

 XMLConfigAllService ()
 
nidas::core::IOChannelRequesterconnected (IOChannel *) throw ()
 
nidas::core::McSocketRequest getRequestType () const
 
void interrupt () throw ()
 
void connect (SampleInput *) throw ()
 
void disconnect (SampleInput *) throw ()
 
void schedule (bool optionalProcessing)
 schedule this service to run.
 
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

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

 XMLConfigAllService (const XMLConfigService &)
 Copying not supported.
 
XMLConfigAllServiceoperator= (const XMLConfigService &)
 Assignment not supported.
 

Static Private Attributes

static XMLChnamespaceURI = 0
 

Detailed Description

An XMLConfigService that listens for datagram requests of type XML_ALL_CONFIG.

A search in Feb 2024, did not find that this service is used. The only place an XML configuration is requested is in DSMEngine, and it asks for the config of a specific DSM, with a request type of XML_CONFIG, not XML_ALL_CONFIG. This class could be obsoleted, but it might be unnecessarily activated in some XML configurations.

Constructor & Destructor Documentation

◆ XMLConfigAllService() [1/2]

XMLConfigAllService::XMLConfigAllService ( )

References WLOG.

◆ XMLConfigAllService() [2/2]

nidas::dynld::XMLConfigAllService::XMLConfigAllService ( 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 ( )
inlinevirtualinherited

◆ connected()

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

◆ disconnect()

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

◆ 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()

nidas::core::McSocketRequest nidas::dynld::XMLConfigAllService::getRequestType ( ) const
inlinevirtual

◆ getSchedPolicy()

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

◆ getSchedPriority()

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

◆ interrupt()

void XMLConfigService::interrupt ( )
throw ( )
virtualinherited

◆ join()

int DSMService::join ( )
throw ( )
virtualinherited

◆ operator=()

XMLConfigAllService & nidas::dynld::XMLConfigAllService::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)
virtualinherited

◆ 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: