24 explicit RsaServer(
int compatible,
id_type deviceNumber,
const std::string& serverName = {});
51 createImplementation(-1);
Class to manage 64-bit integer ranges.
Definition Range.h:52
EEvent
Event enumerate values used in broadcasting where global events have a negative value.
Definition ResultDataTypes.h:46
Class for creating and referencing global created data called result data. This class allows linking ...
Definition ResultData.h:20
Base class for the repetitive signal acquisition interface.
Definition RsaInterface.h:19
RSA implementation of an information server.
Definition RsaServer.h:16
void destroyImplementation()
Destroys the created implementation.
Definition RsaServer.h:49
void createInterface()
Create interface parameters at construction once.
std::string getServerName() const
Gets the name given at the constructor.
std::string _serverName
Holds the device name for creating the variable names.
Definition RsaServer.h:268
std::string getDescription(const RsaTypes::ParamInfo &info)
Gets the description prefix of the channel.
IdType _handledParamId
ID of interface parameter being processed by the param hook.
Definition RsaServer.h:276
IdType _deviceNumber
Holds the device number passed at the constructor.
Definition RsaServer.h:256
bool createImplementation(int index)
Creates the implementation of index on the registered implementations.
ExtraInfo * castExtraInfo(const Variable *var)
Easy to use function to access the extra info from a variable.
void evaluateInterfaceParams()
Evaluate parameters after the configuration has changed.
void serverResultDataHandler(ResultData::EEvent event, const ResultData &caller, ResultData &link, const Range &rng, bool same_inst)
Event handler for results.
Variable::PtrVector::size_type variableListFind(id_type id) const
Looks up a parameter which is represented by the interface id.
RsaInterface * getAcquisition()
Gets a pointer to the current acquisition implementation.
Definition RsaServer.h:57
static void paramNotifyProc(void *data, id_type id)
Parameter hook function called directly by the implementation.
ResultData::PtrVector::size_type resultListFind(id_type id) const
Looks up a result data which is represented by the interface id.
std::string getNameOffset(const RsaTypes::ResultInfo &info)
Returns the name of the channel using the device name.
void setLocked(bool)
Locks the variables by making them all read only.
std::string createSetupString(const RsaTypes::ResultInfo &info, long vid)
Creates a setup string from the passed result info structure.
RsaServer(int compatible, id_type deviceNumber, const std::string &serverName={})
Constructor.
void resultNotify(id_type id)
Hook function indirectly called from the implementation.
bool isLocked() const
Returns true whe all parameters are locked.
Definition RsaServer.h:65
bool createVariable(Variable *&var, RsaTypes::ParamInfo &info, const std::string &setup)
Creates a variable with a extra info structure attached.
void destroyVariable(Variable *var)
Destroys a variable including the attached extra info structure.
std::string createSetupString(const RsaTypes::ParamInfo &info, long vid)
Creates a setup string from the passed parameter info structure.
std::string getNameOffset(const RsaTypes::ParamInfo &info)
Gets the name of the channel using the device name.
std::string getDescription(const RsaTypes::ResultInfo &info)
Returns the description prefix of the channel.
IdType _implementationId
Holds the VID of the implementation.
Definition RsaServer.h:260
void onStateChange(EState prevState, EState nextState) override
Overloaded from TInfoServer.
static void resultNotifyProc(void *data, id_type id)
Result hook function called directly by the implementation.
bool createImplementation(const std::string &name)
Creates an attached implementation by name.
bool _lock
Variable indicating lock status.
Definition RsaServer.h:272
Variable::PtrVector _variableVector
Holds all created variables for the selected implementation.
Definition RsaServer.h:240
bool createResultData(ResultData *&res, RsaTypes::ResultInfo &info, const std::string &setup)
Creates a variable with a extra info structure attached.
void checkReadOnly()
Sets the variables to readonly based on the flags and lock status.
int _compatible
Holds the compatibility state passed at the constructor.
Definition RsaServer.h:264
void clearValidations() override
Overridden from InformationServer.
RsaInterface * _acquisition
Holds the acquisition implementation.
Definition RsaServer.h:224
TResultDataHandler< RsaServer > _serverResultDataHandler
Callback hook for result events.
Definition RsaServer.h:244
void paramNotify(id_type id)
Hook function indirectly called from the implementation.
~RsaServer() override
Destructor.
ExtraInfo * castExtraInfo(const ResultData *var)
Easy to use function to access the extra info from a result data.
ResultData::PtrVector _resultVector
Holds all created results for this instance.
Definition RsaServer.h:252
void destroyInterface()
Remove all parameters and results.
void serverVariableHandler(Variable::EEvent event, const Variable &caller, Variable &linker, bool sameInst)
Event handler for variables.
Variable _vImplementation
Variable for selecting an implementation.
Definition RsaServer.h:228
TVariableHandler< RsaServer > _serverVariableHandler
Callback hook for variable events.
Definition RsaServer.h:232
void destroyResultData(ResultData *var)
Destroys a variable including the attached extra info structure.
void evaluateInterfaceResults()
Evaluate results after the configuration has changed.
std::string getImplementationName() const
Gets the name of the current implementation.
Definition ResultDataHandler.h:33
Template for linking pointers of member function to Variable instances.
Definition VariableHandler.h:38
base_type::size_type size_type
Size type of this template.
Definition TVector.h:34
EEvent
Events send to the handler set with sf::Variable::setHandler.
Definition VariableTypes.h:130
Class for creating and referencing global or local created parameters or settings called variables....
Definition Variable.h:16
Definition Application.h:10
#define _RSA_CLASS
Definition rsa/iface/global.h:35
Structure to hold parameter information.
Definition RsaTypes.h:121
Definition RsaTypes.h:232
Type holding all types for the RsaInterface in a single namespaced structure.
Definition RsaTypes.h:22
unsigned long long IdType
Type for gathering parameter ID's.
Definition RsaTypes.h:26