mswINS_CONFIG_TABLE
Section: Devices and Network Interfaces (4)
Updated: 2012-04-23 10:09
Index
Return to man pages list
NAME
mswINS_CONFIG_TABLE - R/W access class to instruments' configuration
SYNOPSIS
#include "mswINS_CONFIG_TABLE.h"
class mswINS_CONFIG_TABLE : public mswINS_CONFIG_DATA
{
public:
mswINS_CONFIG_TABLE(const dbSYMADDRESS dbPoint = dbEMPTY);
virtual ~mswINS_CONFIG_TABLE();
ccsCOMPL_STAT SetInsId(const mswINSID &newId);
ccsCOMPL_STAT SetInsData(const mswINSID& ins, const char *msgBuffer);
};
PARENT CLASS
public mswINS_CONFIG_DATA
DESCRIPTION
This class is used by msw applications to access in read and write mode
the instrument configuration table on the database.
The read services are provided by the base class, while here are implemented
the write services.
This has been done in order to be able to put the base class in a TCS-public
library, to provide read access to TCS clients, but keeping write access
hidden and reserved for the msw module.
PROTECTED METHODS
mswINS_CONFIG_TABLE(const dbSYMADDRESS dbPoint = dbEMPTY);
The constructor provides a default value for the dbPoint
parameter to behave like two distinct constructors: one with
no parameters and one with a dbPoint parameter.
The first one defines the online database support point calling
the standard tcsDbRoot(4) function and appenting the
default relative path from the TCS database root point,
assuming a complete default TCS database structure.
This is what will be generally used.
The second one receives as parameter the symbolic address of
online database support point for the object, i.e. the point
where the object can find configuration and run time values.
This will be typically used for testing purposes.
virtual ~mswINS_CONFIG_TABLE();
ccsCOMPL_STAT SetInsId(const mswINSID &newId);
Make the given instrument the selected one, writing its id in
the database.
ccsCOMPL_STAT SetInsData(const mswINSID& ins, const char *msgBuffer);
Writes in the database a new record for the given instrument,
based on its ID.
If a record for the given instrument already exist, it is overwritten;
otherwise a new record is added.
The instrument data is passed as a string directly to an instance of
mswINS_DATA_RECORD(4), in the format dafined for the message buffer
of the command SETINSD. See the CDT for the mswControl(2) process for
details
Index
- NAME
-
- SYNOPSIS
-
- PARENT CLASS
-
- DESCRIPTION
-
- PROTECTED METHODS
-
This document was created by
man2html,
using the manual pages.
Time: 10:09:28 GMT, April 23, 2012