TwiceAsNice  2019-02-18
Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
Basda::MPIACore Class Reference

This class is the base class of the MPIA electronic implementation. More...

#include <Core.h>

Inheritance diagram for Basda::MPIACore:
Inheritance graph
Collaboration diagram for Basda::MPIACore:
Collaboration graph

Protected Member Functions

 MPIACore (std::string _name, Nice::JointPtr _config, const MPIACoreProtocolPtr _protocol)
 
 ~MPIACore ()
 
template<typename Type >
Type checkAttribute (const std::string &_node, const std::string &_attributeName, const Type &_default)
 
template<typename RT >
std::vector< RT > getVector (const std::string &_str)
 This is a generic method to convert a data string to a vector. More...
 
std::string name ()
 
 MPIACore (std::string _name, Nice::JointPtr _config, const MPIACoreProtocolPtr _protocol)
 
 ~MPIACore ()
 
template<typename Type >
Type checkAttribute (const std::string &_node, const std::string &_attributeName, const Type &_default)
 
template<typename RT >
std::vector< RT > getVector (const std::string &_str)
 This is a generic method to convert a data string to a vector. More...
 
std::string name ()
 

Static Protected Member Functions

template<typename RT >
static RT getValue (const std::string &_str)
 This is a generic method to convert a data string to a number. More...
 
template<typename RT >
static RT getValue (const std::string &_str)
 This is a generic method to convert a data string to a number. More...
 

Protected Attributes

std::string m_name
 
std::string m_address
 member of the connection address More...
 
unsigned int m_cardNo
 member of the card number More...
 
unsigned int m_moduleNo
 member of the module number More...
 
HandlerPtr m_handler
 
MPIACoreProtocolPtr m_protocol
 member of the protocol to communicate with the MPIA in-house electronic. More...
 
Nice::JointPtr m_config
 member of the root of the configuration tree More...
 
bool m_warning
 

Detailed Description

This class is the base class of the MPIA electronic implementation.

It keeps general information like address, moduleNo, cardNo.

Author
Frank Kittmann
Version
09.06.16
Date
2009.06.16

Constructor & Destructor Documentation

◆ MPIACore() [1/2]

Basda::MPIACore::MPIACore ( std::string  _name,
Nice::JointPtr  _config,
const MPIACoreProtocolPtr  _protocol 
)
protected

◆ ~MPIACore() [1/2]

Basda::MPIACore::~MPIACore ( )
inlineprotected

◆ MPIACore() [2/2]

Basda::MPIACore::MPIACore ( std::string  _name,
Nice::JointPtr  _config,
const MPIACoreProtocolPtr  _protocol 
)
protected

◆ ~MPIACore() [2/2]

Basda::MPIACore::~MPIACore ( )
inlineprotected

Member Function Documentation

◆ checkAttribute() [1/2]

template<typename Type >
Type Basda::MPIACore::checkAttribute ( const std::string &  _node,
const std::string &  _attributeName,
const Type _default 
)
protected

◆ checkAttribute() [2/2]

template<typename Type >
Type Basda::MPIACore::checkAttribute ( const std::string &  _node,
const std::string &  _attributeName,
const Type _default 
)
protected

◆ getValue() [1/2]

template<typename RT >
template float Basda::MPIACore::getValue ( const std::string &  _str)
staticprotected

This is a generic method to convert a data string to a number.

Parameters
_strthe data string

◆ getValue() [2/2]

template<typename RT >
RT Basda::MPIACore::getValue ( const std::string &  _str)
staticprotected

This is a generic method to convert a data string to a number.

Parameters
_strthe data string

◆ getVector() [1/2]

template<typename RT >
std::vector< RT > Basda::MPIACore::getVector ( const std::string &  _str)
protected

This is a generic method to convert a data string to a vector.

Parameters
_strthe data string

◆ getVector() [2/2]

template<typename RT >
template std::vector< double > Basda::MPIACore::getVector< double > ( const std::string &  _str)
protected

This is a generic method to convert a data string to a vector.

Parameters
_strthe data string

◆ name() [1/2]

std::string Basda::MPIACore::name ( )
inlineprotected

◆ name() [2/2]

std::string Basda::MPIACore::name ( )
inlineprotected

Member Data Documentation

◆ m_address

std::string Basda::MPIACore::m_address
protected

member of the connection address

◆ m_cardNo

unsigned int Basda::MPIACore::m_cardNo
protected

member of the card number

◆ m_config

Nice::JointPtr Basda::MPIACore::m_config
protected

member of the root of the configuration tree

◆ m_handler

HandlerPtr Basda::MPIACore::m_handler
protected

◆ m_moduleNo

unsigned int Basda::MPIACore::m_moduleNo
protected

member of the module number

◆ m_name

std::string Basda::MPIACore::m_name
protected

◆ m_protocol

MPIACoreProtocolPtr Basda::MPIACore::m_protocol
protected

member of the protocol to communicate with the MPIA in-house electronic.

◆ m_warning

bool Basda::MPIACore::m_warning
protected

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