#include <Sdp.h>
Sdp provides simpler interfaces to constructing, putting and fetching data from simple the SDP parameter system.
Note that there is no actual object, just static members which provide access to the parameters.
Note that if the macro DRAMA_ALLOW_CPP_STDLIB is defined, then it is presume that the C++ standard library is available and relevant methods (such as those which use std::string types) are compiled. Otherwise they are not defined.
Static Public Methods | |
| void | CreateItem (const SdsId &parsys, SdsId &item, StatusType *status) |
| Create a new parameter by inserting an SDS item. | |
| void | Put (const char *name, bool value, StatusType *status) |
| Put a boolean value into a named parameter. | |
| void | Put (const char *name, char value, StatusType *status) |
| Put a char value into a named parameter. | |
| void | Put (const char *name, unsigned short value, StatusType *status) |
| Put an unsigned short value into a named parameter. | |
| void | Put (const char *name, short value, StatusType *status) |
| Put a short value into a named parameter. | |
| void | Put (const char *name, INT32 value, StatusType *status) |
| Put a 32 bit integer value into a named parameter. | |
| void | Put (const char *name, UINT32 value, StatusType *status) |
| Put a unsigned 32 bit integer value into a named parameter. | |
| void | Put (const char *name, INT64 value, StatusType *status) |
| Put a INT64 value into a named parameter. | |
| void | Put (const char *name, UINT64 value, StatusType *status) |
| Put a UINT64 bit value into a named parameter. | |
| void | Put (const char *name, float value, StatusType *status) |
| Put a floating point value into a named parameter. | |
| void | Put (const char *name, double value, StatusType *status) |
| Put a double length floating point value into a named parameter. | |
| void | Put (const char *name, const char *value, StatusType *status) |
| Put a character string value into a named parameter. | |
| void | PutSds (const char *name, SdsIdType value, StatusType *status) |
| Put a SDS item a named parameter. | |
| void | Update (SdsIdType id, StatusType *status) |
| Indicate a parameter value has been updated by SDS. | |
| void | Get (const char *name, bool *value, StatusType *status) |
| Fetch a boolean value from a named parameter. | |
| void | Get (const char *name, char *value, StatusType *status) |
| Fetch a char value from a named parameter. | |
| void | Get (const char *name, short *value, StatusType *status) |
| Fetch a short integer value from a named parameter. | |
| void | Get (const char *name, unsigned short *value, StatusType *status) |
| Fetch an unsigned short integer value from a named parameter. | |
| void | Get (const char *name, INT32 *value, StatusType *status) |
| Fetch a 32 bit integer value from a named parameter. | |
| void | Get (const char *name, UINT32 *value, StatusType *status) |
| Fetch an unsigned 32 bit integer value from a named parameter. | |
| void | Get (const char *name, INT64 *value, StatusType *status) |
| Fetch a 64 bit integer value from a named parameter. | |
| void | Get (const char *name, UINT64 *value, StatusType *status) |
| Fetch a unsigned 64 bit integer value from a named parameter. | |
| void | Get (const char *name, float *value, StatusType *status) |
| Fetch a float size real value from a named parameter. | |
| void | Get (const char *name, double *value, StatusType *status) |
| Fetch a double size real value from a named parameter. | |
| void | Get (const char *name, int len, char *value, StatusType *status) |
| Fetch a char * value from a named parameter. | |
| void | GetSds (const char *name, SdsIdType *value, StatusType *status) |
| Access an parameter using an SDS id. | |
| void | Get (const char *name, SdsId *value, StatusType *status) |
| Access an parameter using an SDS id. | |
| void | Put (const char *name, const SdsId &value, StatusType *status) |
| Put a SDS item a named parameter. | |
| void | PutStruct (const char *name, const SdsId &value, StatusType *status, const bool create=true) |
| Put a SDS item a named parameter - replacing the existing value. | |
| void | PutStruct (const char *name, SdsId *value, StatusType *status, const bool create=true) |
| Put a SDS item a named parameter - replacing the existing value. | |
| void | Put (const std::string &name, bool value, StatusType *const status) |
| Put a boolean value into a named parameter. | |
| void | Put (const std::string &name, char value, StatusType *const status) |
| Put a char value into a named parameter. | |
| void | Put (const std::string &name, short value, StatusType *const status) |
| Put a short value into a named parameter. | |
| void | Put (const std::string &name, unsigned short value, StatusType *const status) |
| Put a unsigned short value into a named parameter. | |
| void | Put (const std::string &name, INT32 value, StatusType *const status) |
| Put a 32 bit integer value into a named parameter. | |
| void | Put (const std::string &name, UINT32 value, StatusType *const status) |
| Put a unsigned 32 bit value into a named parameter. | |
| void | Put (const std::string &name, INT64 value, StatusType *const status) |
| Put a INT64 value into a named parameter. | |
| void | Put (const std::string &name, UINT64 value, StatusType *const status) |
| Put a UINT64 bit value into a named parameter. | |
| void | Put (const std::string &name, float value, StatusType *const status) |
| Put a floating point value into a named parameter. | |
| void | Put (const std::string &name, double value, StatusType *const status) |
| Put a double length floating point value into a named parameter. | |
| void | Put (const char *name, const std::string &value, StatusType *status) |
| Put a character string value into a named parameter. | |
| void | Put (const std::string &name, const std::string &value, StatusType *status) |
| Put a char string value into a named parameter. | |
| void | Get (const std::string &name, bool *value, StatusType *const status) |
| Fetch a boolean value from a named parameter. | |
| void | Get (const std::string &name, char *value, StatusType *const status) |
| Fetch a char value from a named parameter. | |
| void | Get (const std::string &name, short *value, StatusType *const status) |
| Fetch a short integer value from a named parameter. | |
| void | Get (const std::string &name, unsigned short *value, StatusType *const status) |
| Fetch an unsigned short integer value from a named parameters. | |
| void | Get (const std::string &name, INT32 *value, StatusType *const status) |
| Fetch a 32 bit integer value from a named parameter. | |
| void | Get (const std::string &name, UINT32 *value, StatusType *const status) |
| Fetch a 32 bit unsigned integer value from a named parameter. | |
| void | Get (const std::string &name, INT64 *value, StatusType *const status) |
| Fetch a 64 bit integer value from a named parameter. | |
| void | Get (const std::string &name, UINT64 *value, StatusType *const status) |
| Fetch A Unsigned 64 Bit Integer Value From A Named Parameter. | |
| void | Get (const std::string &name, float *value, StatusType *const status) |
| Fetch a float size real value from a named parameter. | |
| void | Get (const std::string &name, double *value, StatusType *const status) |
| Fetch a double size real value from a named parameter. | |
| void | Get (const char *name, std::string *value, StatusType *status, int buflen=100) |
| Fetch a string value as a std::string from a named parameter. | |
| void | Get (const std::string &name, std::string *value, StatusType *status, int buflen=100) |
| Fetch a string value as a std::string from a named parameter. | |
| void | GetSds (const std::string &name, SdsIdType *value, StatusType *status) |
| Access an parameter using an SDS id. | |
| void | Get (const std::string &name, SdsId *value, StatusType *status) |
| Access an parameter using an SDS id. | |
| void | Put (const std::string &name, const SdsId &value, StatusType *status) |
| Put a SDS item a named parameter. | |
| void | PutStruct (const std::string &name, const SdsId &value, StatusType *status, const bool create=true) |
| Put a SDS item a named parameter - replacing the existing value. | |
| void | PutStruct (const std::string &name, SdsId *value, StatusType *status, const bool create=true) |
| Put a SDS item a named parameter - replacing the existing value. | |
|
||||||||||||||||
|
Create a new parameter by inserting an SDS item. The supplied SDS item is inserted into the specified parameter system. Any existing item of the same name is deleted.
|
|
||||||||||||||||
|
Access an parameter using an SDS id. An SDS id refering to the named parameter is generated and returned as an SdsId.
|
|
||||||||||||||||||||
|
Fetch a string value as a std::string from a named parameter. If the named parameter exists, then fetch its value and convert it to a std::string, if possible. Note that this does not work for non-char items array items which require more then buflen bytes - since it is not possible to ensure we resize the string appropiately.
|
|
||||||||||||||||||||
|
Fetch a string value as a std::string from a named parameter. If the named parameter exists, then fetch its value and convert it to a std::string, if possible. Note that this does not work for non-char array items which require more then buflen bytes - since it is not possible to ensure we resize the string appropiately - a ARG__CNVERR code will be returned.
|
|
||||||||||||||||
|
Fetch a double size real value from a named parameter. If the named parameter exists, then fetch its value and convert it to a double, if possible.
|
|
||||||||||||||||
|
Fetch a float size real value from a named parameter. If the named parameter exists, then fetch its value and convert it to a float, if possible.
|
|
||||||||||||||||
|
Fetch A Unsigned 64 Bit Integer Value From A Named Parameter. If The Named Parameter Exists, Then Fetch Its Value And Convert It To A Uint64, If Possible.
|
|
||||||||||||||||
|
Fetch a 64 bit integer value from a named parameter. If the named parameter exists, then fetch its value and convert it to a INT64, if possible.
|
|
||||||||||||||||
|
Fetch a 32 bit unsigned integer value from a named parameter. If the named parameter exists, then fetch its value and convert it to a unsigned long integer, if possible.
|
|
||||||||||||||||
|
Fetch a 32 bit integer value from a named parameter. If the named parameter exists, then fetch its value and convert it to a long integer, if possible.
|
|
||||||||||||||||
|
Fetch an unsigned short integer value from a named parameters. If the named parameter exists, then fetch its value and convert it to a unsigned short, if possible.
|
|
||||||||||||||||
|
Fetch a short integer value from a named parameter. If the named parameter exists, then fetch its value and convert it to short, if possible.
|
|
||||||||||||||||
|
Fetch a char value from a named parameter. If the named parameter exists, then fetch its value and convert it to a char, if possible.
|
|
||||||||||||||||
|
Fetch a boolean value from a named parameter. If the named parameter exists, then fetch its value and convert it to a boolean, if possible. Note that SDS does not directly support boolean values, so an integer representation is used internally and converted to bool.
|
|
||||||||||||||||
|
Access an parameter using an SDS id. An SDS id refering to the named parameter is generated and returned as an SdsId.
|
|
||||||||||||||||||||
|
Fetch a char * value from a named parameter. ( If the named parameter exists, then fetch its value and convert it to a char *, if possible.
|
|
||||||||||||||||
|
Fetch a double size real value from a named parameter. If the named parameter exists, then fetch its value and convert it to a double, if possible.
|
|
||||||||||||||||
|
Fetch a float size real value from a named parameter. If the named parameter exists, then fetch its value and convert it to a float, if possible.
|
|
||||||||||||||||
|
Fetch a unsigned 64 bit integer value from a named parameter. If the named parameter exists, then fetch its value and convert it to a UINT64, if possible.
|
|
||||||||||||||||
|
Fetch a 64 bit integer value from a named parameter. If the named parameter exists, then fetch its value and convert it to a INT64, if possible.
|
|
||||||||||||||||
|
Fetch an unsigned 32 bit integer value from a named parameter. If the named parameter exists, then fetch its value and convert it to a unsigned long integer, if possible.
|
|
||||||||||||||||
|
Fetch a 32 bit integer value from a named parameter. If the named parameter exists, then fetch its value and convert it to a long integer, if possible.
|
|
||||||||||||||||
|
Fetch an unsigned short integer value from a named parameter. If the named parameter exists, then fetch its value and convert it to a unsigned short, if possible.
|
|
||||||||||||||||
|
Fetch a short integer value from a named parameter. If the named parameter exists, then fetch its value and convert it to short, if possible.
|
|
||||||||||||||||
|
Fetch a char value from a named parameter. If the named parameter exists, then fetch its value and convert it to a char, if possible.
|
|
||||||||||||||||
|
Fetch a boolean value from a named parameter. If the named parameter exists, then fetch its value and convert it to a boolean, if possible. Note that SDS does not directly support boolean values, so an integer representation is used internally and converted to bool.
|
|
||||||||||||||||
|
Access an parameter using an SDS id. An SDS id refering to the named parameter is generated and returned.
|
|
||||||||||||||||
|
Access an parameter using an SDS id. An SDS id refering to the named parameter is generated and returned.
|
|
||||||||||||||||
|
Put a SDS item a named parameter. An SDS item is written into a named parameter. Conversion is carried out using ArgCvt. This means that if both input and output items are scaler or strings, they will be converted if possible. Otherwise, a conversion error will occur. To put the value of a structured SDS item, use SdpGetSds() to get an id for it and then write the value using that id. Follow your update by a call to SdpUpdate. Alternatively, use SdsPutStruct() which replaces the old structure with a new one.
|
|
||||||||||||||||
|
Put a char string value into a named parameter. The the value is converted to the type of the parameter and (if possible) and inserted.
|
|
||||||||||||||||
|
Put a character string value into a named parameter. The the value is converted to the type of the parameter and (if possible) and inserted.
|
|
||||||||||||||||
|
Put a double length floating point value into a named parameter. The the value is converted to the type of the parameter and (if possible) and inserted.
|
|
||||||||||||||||
|
Put a floating point value into a named parameter. The the value is converted to the type of the parameter and (if possible) and inserted.
|
|
||||||||||||||||
|
Put a UINT64 bit value into a named parameter. The the value is converted to the type of the parameter and (if possible) and inserted.
|
|
||||||||||||||||
|
Put a INT64 value into a named parameter. The the value is converted to the type of the parameter and (if possible) and inserted.
|
|
||||||||||||||||
|
Put a unsigned 32 bit value into a named parameter. The the value is converted to the type of the parameter and (if possible) and inserted.
|
|
||||||||||||||||
|
Put a 32 bit integer value into a named parameter. The the value is converted to the type of the parameter and (if possible) and inserted.
|
|
||||||||||||||||
|
Put a unsigned short value into a named parameter. The the value is converted to the type of the parameter and (if possible) and inserted.
|
|
||||||||||||||||
|
Put a short value into a named parameter. The the value is converted to the type of the parameter and (if possible) and inserted.
|
|
||||||||||||||||
|
Put a char value into a named parameter. The the value is converted to the type of the parameter and (if possible) and inserted.
|
|
||||||||||||||||
|
Put a boolean value into a named parameter. The the value is converted to the type of the parameter and (if possible) and inserted. Note that SDS does not directly support boolean values, so an integer representation is used.
|
|
||||||||||||||||
|
Put a SDS item a named parameter. An SDS item is written into a named parameter. Conversion is carried out using ArgCvt. This means that if both input and output items are scaler or strings, they will be converted if possible. Otherwise, a conversion error will occur. To put the value of a structured SDS item, use SdpGetSds() to get an id for it and then write the value using that id. Follow your update by a call to SdpUpdate. Alternatively, use SdsPutStruct() which replaces the old structure with a new one.
|
|
||||||||||||||||
|
Put a character string value into a named parameter. The the value is converted to the type of the parameter and (if possible) and inserted.
|
|
||||||||||||||||
|
Put a double length floating point value into a named parameter. The the value is converted to the type of the parameter and (if possible) and inserted.
|
|
||||||||||||||||
|
Put a floating point value into a named parameter. The the value is converted to the type of the parameter and (if possible) and inserted.
|
|
||||||||||||||||
|
Put a UINT64 bit value into a named parameter. The the value is converted to the type of the parameter and (if possible) and inserted.
|
|
||||||||||||||||
|
Put a INT64 value into a named parameter. The the value is converted to the type of the parameter and (if possible) and inserted.
|
|
||||||||||||||||
|
Put a unsigned 32 bit integer value into a named parameter. The the value is converted to the type of the parameter and (if possible) and inserted.
|
|
||||||||||||||||
|
Put a 32 bit integer value into a named parameter. The the value is converted to the type of the parameter and (if possible) and inserted.
|
|
||||||||||||||||
|
Put a short value into a named parameter. The the value is converted to the type of the parameter and (if possible) and inserted.
|
|
||||||||||||||||
|
Put an unsigned short value into a named parameter. The the value is converted to the type of the parameter and (if possible) and inserted.
|
|
||||||||||||||||
|
Put a char value into a named parameter. The the value is converted to the type of the parameter and (if possible) and inserted.
|
|
||||||||||||||||
|
Put a boolean value into a named parameter. The the value is converted to the type of the parameter and (if possible) and inserted. Note that SDS does not directly support boolean values, so an integer representation is used.
|
|
||||||||||||||||
|
Put a SDS item a named parameter. An SDS item is written into a named parameter. Conversion is carried out using ArgCvt. This means that if both input and output items are scaler or strings, they will be converted if possible. Otherwise, a conversion error will occur. To put the value of a structured SDS item, use SdpGetSds() to get an id for it and then write the value using that id. Follow your update by a call to SdpUpdate. Alternatively, use SdsPutStruct() which replaces the old structure with a new one.
|
|
||||||||||||||||||||
|
Put a SDS item a named parameter - replacing the existing value. An SDS item is written into a named parameter. Rather then convering the value with ArgCvt(), the supplied value will replace the exiting parameter entirely. In this version (SdsId *value) the value SDS item passed in is inserted directly, after being renamed to the specified name. It must not be an external item.
|
|
||||||||||||||||||||
|
Put a SDS item a named parameter - replacing the existing value. An SDS item is written into a named parameter. Rather then convering the value with ArgCvt(), the supplied value will replace the exiting parameter entirely. In this version (const SdsId & value) the value is copied using SdsCopy() and then the copy is inserted into SDS.
|
|
||||||||||||||||||||
|
Put a SDS item a named parameter - replacing the existing value. An SDS item is written into a named parameter. Rather then convering the value with ArgCvt(), the supplied value will replace the exiting parameter entirely. In this version (SdsId *value) the value SDS item passed in is inserted directly, after being renamed to the specified name. It must not be an external item.
|
|
||||||||||||||||||||
|
Put a SDS item a named parameter - replacing the existing value. An SDS item is written into a named parameter. Rather then convering the value with ArgCvt(), the supplied value will replace the exiting parameter entirely. In this version (const SdsId & value) the value is copied using SdsCopy() and then the copy is inserted into SDS.
|
|
||||||||||||
|
Indicate a parameter value has been updated by SDS. This method should be invoked if a parameter value has been updated using SDS directory. It tells the DRAMA Parameter monitoring system that the parameter has been updated and sends appropiate messages to all tasks which are monitoring the parameter
|
Click here for the DRAMA home page and here for the AAO home page.
For more information, contact tjf@aaoepp.aao.gov.au Generated on Tue Nov 3 09:09:56 2009 for AAO DRAMA C++ Interfaces by
1.2.18