A C++ Interface to the DRAMA Simple DITS Parameter System (SDP). More...
#include <Sdp.h>
Static Public Member Functions | |
static void | CreateItem (const SdsId &parsys, SdsId &item, StatusType *status) |
Create a new parameter by inserting an SDS item. More... | |
static void | Put (const char *name, bool value, StatusType *status) |
Put a boolean value into a named parameter. More... | |
static void | Put (const char *name, char value, StatusType *status) |
Put a char value into a named parameter. More... | |
static void | Put (const char *name, unsigned short value, StatusType *status) |
Put an unsigned short value into a named parameter. More... | |
static void | Put (const char *name, short value, StatusType *status) |
Put a short value into a named parameter. More... | |
static void | Put (const char *name, INT32 value, StatusType *status) |
Put a 32 bit integer value into a named parameter. More... | |
static void | Put (const char *name, UINT32 value, StatusType *status) |
Put a unsigned 32 bit integer value into a named parameter. More... | |
static void | Put (const char *name, INT64 value, StatusType *status) |
Put a INT64 value into a named parameter. More... | |
static void | Put (const char *name, UINT64 value, StatusType *status) |
Put a UINT64 bit value into a named parameter. More... | |
static void | Put (const char *name, float value, StatusType *status) |
Put a floating point value into a named parameter. More... | |
static void | Put (const char *name, double value, StatusType *status) |
Put a double length floating point value into a named parameter. More... | |
static void | Put (const char *name, const char *value, StatusType *status) |
Put a character string value into a named parameter. More... | |
static void | PutSds (const char *name, SdsIdType value, StatusType *status) |
Put a SDS item a named parameter. More... | |
static void | Update (SdsIdType id, StatusType *status) |
Indicate a parameter value has been updated by SDS. More... | |
static void | Update (const char *name, StatusType *status) |
Indicate a parameter value has been updated by other means. More... | |
static void | Get (const char *name, bool *value, StatusType *status) |
Fetch a boolean value from a named parameter. More... | |
static void | Get (const char *name, char *value, StatusType *status) |
Fetch a char value from a named parameter. More... | |
static void | Get (const char *name, short *value, StatusType *status) |
Fetch a short integer value from a named parameter. More... | |
static void | Get (const char *name, unsigned short *value, StatusType *status) |
Fetch an unsigned short integer value from a named parameter. More... | |
static void | Get (const char *name, INT32 *value, StatusType *status) |
Fetch a 32 bit integer value from a named parameter. More... | |
static void | Get (const char *name, UINT32 *value, StatusType *status) |
Fetch an unsigned 32 bit integer value from a named parameter. More... | |
static void | Get (const char *name, INT64 *value, StatusType *status) |
Fetch a 64 bit integer value from a named parameter. More... | |
static void | Get (const char *name, UINT64 *value, StatusType *status) |
Fetch a unsigned 64 bit integer value from a named parameter. More... | |
static void | Get (const char *name, float *value, StatusType *status) |
Fetch a float size real value from a named parameter. More... | |
static void | Get (const char *name, double *value, StatusType *status) |
Fetch a double size real value from a named parameter. More... | |
static void | Get (const char *name, int len, char *value, StatusType *status) |
Fetch a char * value from a named parameter. More... | |
static void | GetSds (const char *name, SdsIdType *value, StatusType *status) |
Access an parameter using an SDS id. More... | |
static void | Get (const char *name, SdsId *value, StatusType *status) |
Access an parameter using an SDS id. More... | |
static void | Put (const char *name, const SdsId &value, StatusType *status) |
Put a SDS item a named parameter. More... | |
static 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. More... | |
static void | PutStruct (const char *name, SdsId *value, StatusType *status, const bool create=true) |
Put a SDS item a named parameter - replacing the existing value. More... | |
static void | Put (const std::string &name, bool value, StatusType *const status) |
Put a boolean value into a named parameter. More... | |
static void | Put (const std::string &name, char value, StatusType *const status) |
Put a char value into a named parameter. More... | |
static void | Put (const std::string &name, short value, StatusType *const status) |
Put a short value into a named parameter. More... | |
static void | Put (const std::string &name, unsigned short value, StatusType *const status) |
Put a unsigned short value into a named parameter. More... | |
static void | Put (const std::string &name, INT32 value, StatusType *const status) |
Put a 32 bit integer value into a named parameter. More... | |
static void | Put (const std::string &name, UINT32 value, StatusType *const status) |
Put a unsigned 32 bit value into a named parameter. More... | |
static void | Put (const std::string &name, INT64 value, StatusType *const status) |
Put a INT64 value into a named parameter. More... | |
static void | Put (const std::string &name, UINT64 value, StatusType *const status) |
Put a UINT64 bit value into a named parameter. More... | |
static void | Put (const std::string &name, float value, StatusType *const status) |
Put a floating point value into a named parameter. More... | |
static void | Put (const std::string &name, double value, StatusType *const status) |
Put a double length floating point value into a named parameter. More... | |
static void | Put (const char *name, const std::string &value, StatusType *status) |
Put a character string value into a named parameter. More... | |
static void | Put (const std::string &name, const std::string &value, StatusType *status) |
Put a char string value into a named parameter. More... | |
static void | Get (const std::string &name, bool *value, StatusType *const status) |
Fetch a boolean value from a named parameter. More... | |
static void | Get (const std::string &name, char *value, StatusType *const status) |
Fetch a char value from a named parameter. More... | |
static void | Get (const std::string &name, short *value, StatusType *const status) |
Fetch a short integer value from a named parameter. More... | |
static void | Get (const std::string &name, unsigned short *value, StatusType *const status) |
Fetch an unsigned short integer value from a named parameters. More... | |
static void | Get (const std::string &name, INT32 *value, StatusType *const status) |
Fetch a 32 bit integer value from a named parameter. More... | |
static void | Get (const std::string &name, UINT32 *value, StatusType *const status) |
Fetch a 32 bit unsigned integer value from a named parameter. More... | |
static void | Get (const std::string &name, INT64 *value, StatusType *const status) |
Fetch a 64 bit integer value from a named parameter. More... | |
static void | Get (const std::string &name, UINT64 *value, StatusType *const status) |
Fetch A Unsigned 64 Bit Integer Value From A Named Parameter. More... | |
static void | Get (const std::string &name, float *value, StatusType *const status) |
Fetch a float size real value from a named parameter. More... | |
static void | Get (const std::string &name, double *value, StatusType *const status) |
Fetch a double size real value from a named parameter. More... | |
static 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. More... | |
static 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. More... | |
static void | GetSds (const std::string &name, SdsIdType *value, StatusType *status) |
Access an parameter using an SDS id. More... | |
static void | Get (const std::string &name, SdsId *value, StatusType *status) |
Access an parameter using an SDS id. More... | |
static void | Put (const std::string &name, const SdsId &value, StatusType *status) |
Put a SDS item a named parameter. More... | |
static 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. More... | |
static 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. More... | |
A C++ Interface to the DRAMA Simple DITS Parameter System (SDP).
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.
|
inlinestatic |
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.
parsys | The Id of the Sdp structure as returned by SdpInit. |
item | The Id of the SDS item to be inserted into the parameter system. This will be inserted using SdsInsert() so the name of the parameter will be the top level name and the structure must not be an external SDS structure. |
status | Inherited status. |
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value returned is written here. |
status | Inherited status. |
Referenced by Get().
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value returned is written here. |
status | Inherited status. |
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value returned is written here. |
status | Inherited status. |
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value returned is written here. |
status | Inherited status. |
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value returned is written here. |
status | Inherited status. |
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value returned is written here. |
status | Inherited status. |
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value returned is written here. |
status | Inherited status. |
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value returned is written here. |
status | Inherited status. |
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value returned is written here. |
status | Inherited status. |
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value returned is written here. |
status | Inherited status. |
|
inlinestatic |
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.
name | The name of the parameter. |
len | The of the buffer value points to. |
value | The value returned is written here as a null terminated string. |
status | Inherited status. |
|
inlinestatic |
Access an parameter using an SDS id.
An SDS id refering to the named parameter is generated and returned as an SdsId.
name | The name of the parameter. |
value | the SDS id is retuned here. |
status | Inherited status. |
References SdsId::ShallowCopy().
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value returned is written here. |
status | Inherited status. |
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value returned is written here. |
status | Inherited status. |
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value returned is written here. |
status | Inherited status. |
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value returned is written here. |
status | Inherited status. |
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value returned is written here. |
status | Inherited status. |
References Get().
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value returned is written here. |
status | Inherited status. |
References Get().
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value returned is written here. |
status | Inherited status. |
|
inlinestatic |
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.
name | The Name Of The Parameter. |
value | The Value Returned Is Written Here. |
status | Inherited Status. |
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value returned is written here. |
status | Inherited status. |
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value returned is written here. |
status | Inherited status. |
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value returned is written here. |
status | Inherited status. |
buflen | The number of bytes to allow in the string for the result. Only used if the underlying value is not an array of SDS_CHAR |
References Get(), and SdsId::Info().
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value returned is written here. |
status | Inherited status. |
buflen | The number of bytes to allow in the string for the result. Only used if the underlying value is not an array of SDS_CHAR |
References Get().
|
inlinestatic |
Access an parameter using an SDS id.
An SDS id refering to the named parameter is generated and returned as an SdsId.
name | The name of the parameter. |
value | the SDS id is retuned here. |
status | Inherited status. |
References SdsId::ShallowCopy().
|
inlinestatic |
Access an parameter using an SDS id.
An SDS id refering to the named parameter is generated and returned.
name | The name of the parameter. |
value | the SDS id is retuned here. |
status | Inherited status. |
|
inlinestatic |
Access an parameter using an SDS id.
An SDS id refering to the named parameter is generated and returned.
name | The name of the parameter. |
value | the SDS id is retuned here. |
status | Inherited status. |
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value to be inserted. |
status | Inherited status. |
Referenced by Put().
|
inlinestatic |
Put a char value into a named parameter.
The the value is converted to the type of the parameter and (if possible) and inserted.
name | The name of the item within the SDS structure. |
value | The value to be inserted. |
status | Inherited status. |
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value to be inserted. |
status | Inherited status. |
|
inlinestatic |
Put a short value into a named parameter.
The the value is converted to the type of the parameter and (if possible) and inserted.
name | The name of the parameter. |
value | The value to be inserted. |
status | Inherited status. |
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value to be inserted. |
status | Inherited status. |
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value to be inserted. |
status | Inherited status. |
|
inlinestatic |
Put a INT64 value into a named parameter.
The the value is converted to the type of the parameter and (if possible) and inserted.
name | The name of the parameter. |
value | The value to be inserted. |
status | Inherited status. |
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value to be inserted. |
status | Inherited status. |
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value to be inserted. |
status | Inherited status. |
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value to be inserted. |
status | Inherited status. |
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value to be inserted. The null terminated string extracted form this is what is inserted. |
status | Inherited status. |
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value to be inserted. T |
status | Inherited status. |
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value to be inserted. |
status | Inherited status. |
|
inlinestatic |
Put a char value into a named parameter.
The the value is converted to the type of the parameter and (if possible) and inserted.
name | The name of the item within the SDS structure. |
value | The value to be inserted. |
status | Inherited status. |
|
inlinestatic |
Put a short value into a named parameter.
The the value is converted to the type of the parameter and (if possible) and inserted.
name | The name of the parameter. |
value | The value to be inserted. |
status | Inherited status. |
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value to be inserted. |
status | Inherited status. |
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value to be inserted. |
status | Inherited status. |
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value to be inserted. |
status | Inherited status. |
|
inlinestatic |
Put a INT64 value into a named parameter.
The the value is converted to the type of the parameter and (if possible) and inserted.
name | The name of the parameter. |
value | The value to be inserted. |
status | Inherited status. |
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value to be inserted. |
status | Inherited status. |
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value to be inserted. |
status | Inherited status. |
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value to be inserted. |
status | Inherited status. |
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value to be inserted. The null terminated string extracted form this is what is inserted. |
status | Inherited status. |
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value to be inserted. The null terminated string extracted form this is what is inserted. |
status | Inherited status. |
References Put().
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value to be inserted. T |
status | Inherited status. |
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value to be inserted. T |
status | Inherited status. |
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value to be inserted. |
status | Inherited status. |
create | If true, then the parameter is created if it does not already exist. Otherwise it must exist. |
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value to be inserted. Must not be an external item. |
status | Inherited status. |
create | If true, then the parameter is created if it does not already exist. Otherwise it must exist. |
References SdsId::COut().
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value to be inserted. |
status | Inherited status. |
create | If true, then the parameter is created if it does not already exist. Otherwise it must exist. |
|
inlinestatic |
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.
name | The name of the parameter. |
value | The value to be inserted. Must not be an external item. |
status | Inherited status. |
create | If true, then the parameter is created if it does not already exist. Otherwise it must exist. |
References SdsId::COut().
|
inlinestatic |
Indicate a parameter value has been updated by SDS.
This method should be invoked if a parameter value has been updated using SDS directorly. 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
id | The parameter id - as returned by SdpGetSds(). |
status | Inherited status. |
|
inlinestatic |
Indicate a parameter value has been updated by other means.
This method should be invoked if a parameter value has been updated using SDS directorly. 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. Use this if the ID is not available.
id | The parameter id - as returned by SdpGetSds(). |
status | Inherited status. |
Click here for the DRAMA home page and here for the AAO home page.
For more information, contact tjf@aao.gov.au Generated on Mon Feb 22 2016 13:58:31 for AAO DRAMA C++ Interfaces by