#include <arg.h>
Inheritance diagram for Arg:

Arg provides simpler interfaces to constructing, putting and fetching data from simple SDS scaler or string items.
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.
Public Methods | |
| Arg (const SdsIdType item=0, const bool free=false, const bool del=false, const bool readfree=false) | |
| Arg constructor to access an item created by C language SDS. | |
| Arg (bool flag, StatusType *const status, const char *const name="ArgStructure") | |
| Arg constructor which creates a new SDS structure. | |
| void | New (StatusType *const status, const char *const name="ArgStructure") |
| Create a new Arg structure within this object. | |
| Arg (const SdsId &source, const char *const name, StatusType *const status) | |
| Constructor which returns an id to a named item of another item. | |
| void | ToString (int maxlen, int *length, char *string, StatusType *const status) |
| Convert the structure to a string. | |
| void | CheckItem (SdsCodeType code, StatusType *status, long ndims=-1, long *dims=0) |
| Check an item has a required structure. | |
| void | Put (const char *name, bool value, StatusType *const status) |
| Insert a boolean value into a named component of the Arg structure. | |
| void | Put (const char *name, char value, StatusType *const status) |
| Insert a char value into a named component of the Arg structure. | |
| void | Put (const char *name, short value, StatusType *const status) |
| Insert a short value into a named component of the Arg structure. | |
| void | Put (const char *name, unsigned short value, StatusType *const status) |
| Insert an unsigned short value into a named component of the Arg structure. | |
| void | Put (const char *name, INT32 value, StatusType *const status) |
| Insert a 32 bit integer value into a named component of the Arg structure. | |
| void | Put (const char *name, UINT32 value, StatusType *const status) |
| Insert an unsigned 32 bit integer into a named component of the Arg structure. | |
| void | Put (const char *name, INT64 value, StatusType *const status) |
| Insert a 64 bit integer value into a named component of the Arg structure. | |
| void | Put (const char *name, UINT64 value, StatusType *const status) |
| Insert an unsigned 64 bit integer value into a named component of the Arg structure. | |
| void | Put (const char *name, float value, StatusType *const status) |
| Insert an float size real value into a named component of the Arg structure. | |
| void | Put (const char *name, double value, StatusType *const status) |
| Insert an double size real value into a named component of the Arg structure. | |
| void | Put (const char *name, const char *value, StatusType *const status) |
| Insert a char * string into a named component of the Arg structure. | |
| void | Get (const char *name, bool *value, StatusType *const status) const |
| Fetch a boolean value from a named component of the Arg structure. | |
| void | Get (const char *name, char *value, StatusType *const status) const |
| Fetch a char value from a named component of the Arg structure. | |
| void | Get (const char *name, short *value, StatusType *const status) const |
| Fetch a short integer value from a named component of the Arg structure. | |
| void | Get (const char *name, unsigned short *value, StatusType *const status) const |
| Fetch an unsigned short integer value from a named component of the Arg structure. | |
| void | Get (const char *name, INT32 *value, StatusType *const status) const |
| Fetch a 32 bit integer value from a named component of the Arg structure. | |
| void | Get (const char *name, UINT32 *value, StatusType *const status) const |
| Fetch an unsigned 32 bit integer value from a named component of the Arg structure. | |
| void | Get (const char *name, INT64 *value, StatusType *const status) const |
| Fetch a 64 bit integer value from a named component of the Arg structure. | |
| void | Get (const char *name, UINT64 *value, StatusType *const status) const |
| Fetch a unsigned 64 bit integer value from a named component of the Arg structure. | |
| void | Get (const char *name, float *value, StatusType *const status) const |
| Fetch a float size real value from a named component of the Arg structure. | |
| void | Get (const char *name, double *value, StatusType *const status) const |
| Fetch a double size real value from a named component of the Arg structure. | |
| void | Get (const char *name, long len, char *value, StatusType *const status) const |
| Fetch a string value as a char * from a named component of the Arg structure. | |
| void | List (StatusType *const status) const |
| List the contents of the structure to standard output. | |
| void | Get (const unsigned long length, void *const data, StatusType *const status, unsigned long *actlen=0, const unsigned long offset=0) const |
| Get data from an SDS item. | |
| void | Put (const unsigned long length, void *const data, StatusType *const status, const unsigned long offset=0) |
| Put data into an SDS item. | |
| Arg (const SdsId &source, const std::string &name, StatusType *const status) | |
| Constructor which returns an id to a named item of another item. | |
| void | Put (const std::string &name, bool value, StatusType *const status) |
| Insert a boolean value into a named component of the Arg structure. | |
| void | Put (const std::string &name, char value, StatusType *const status) |
| Insert a char value into a named component of the Arg structure. | |
| void | Put (const std::string &name, short value, StatusType *const status) |
| Insert a short value into a named component of the Arg structure. | |
| void | Put (const std::string &name, unsigned short value, StatusType *const status) |
| Insert an unsigned short value into a named component of the Arg structure. | |
| void | Put (const std::string &name, INT32 value, StatusType *const status) |
| Insert a 32 bit integer value into a named component of the Arg structure. | |
| void | Put (const std::string &name, UINT32 value, StatusType *const status) |
| Insert an unsigned 32 bit integer value into a named component of the Arg structure. | |
| void | Put (const std::string &name, INT64 value, StatusType *const status) |
| Insert a 64 bit integer value into a named component of the Arg structure. | |
| void | Put (const std::string &name, UINT64 value, StatusType *const status) |
| Insert an unsigned 64 bit integer value into a named component of the Arg structure. | |
| void | Put (const std::string &name, float value, StatusType *const status) |
| Insert an float size real value into a named component of the Arg structure. | |
| void | Put (const std::string &name, double value, StatusType *const status) |
| Insert an double size real value into a named component of the Arg structure. | |
| void | Put (const char *name, const std::string &value, StatusType *status) |
| Insert a std::string into a named component of the Arg structure. | |
| void | Put (const std::string &name, const std::string &value, StatusType *status) |
| Insert a std::string into a named component of the Arg structure. | |
| void | Get (const std::string &name, bool *value, StatusType *const status) const |
| Fetch a boolean value from a named component of the Arg structure. | |
| void | Get (const std::string &name, char *value, StatusType *const status) const |
| Fetch a char value from a named component of the Arg structure. | |
| void | Get (const std::string &name, short *value, StatusType *const status) const |
| Fetch a short integer value from a named component of the Arg structure. | |
| void | Get (const std::string &name, unsigned short *value, StatusType *const status) const |
| Fetch an unsigned short integer value from a named component of the Arg structure. | |
| void | Get (const std::string &name, INT32 *value, StatusType *const status) const |
| Fetch a 32 bit integer value from a named component of the Arg structure. | |
| void | Get (const std::string &name, UINT32 *value, StatusType *const status) const |
| Fetch a 32 bit unsigned integer value from a named component of the Arg structure. | |
| void | Get (const std::string &name, INT64 *value, StatusType *const status) const |
| Fetch a 64 bit integer value from a named component of the Arg structure. | |
| void | Get (const std::string &name, UINT64 *value, StatusType *const status) const |
| Fetch a unsigned 64 bit integer value from a named component of the Arg structure. | |
| void | Get (const std::string &name, float *value, StatusType *const status) const |
| Fetch a float size real value from a named component of the Arg structure. | |
| void | Get (const std::string &name, double *value, StatusType *const status) const |
| Fetch a double size real value from a named component of the Arg structure. | |
| void | Get (const char *name, std::string *value, StatusType *status, int buflen=100) const |
| Fetch a string value as a std::string from a named component of the Arg structure. | |
| void | Get (const std::string &name, std::string *value, StatusType *status, int buflen=100) const |
| Fetch a string value as a std::string from a named component of the Arg structure. | |
Static Public Methods | |
| void | List (const SdsId &id, unsigned buflen, char *buffer, ArgListFuncType func, void *client_data, StatusType *ARGCONST status) |
| List an SDS structure through a print function. | |
|
||||||||||||||||||||
|
Arg constructor to access an item created by C language SDS. This Arg constructor that takes an existing SDS id (C style) and creates an SdsId class object which referees to it. You must explictly specify if the item is to be freed and deleted when the object's destructor is invoked, and what you do depends on when what other code may do with item. del and readfree are mutually exclusive.
|
|
||||||||||||||||
|
Arg constructor which creates a new SDS structure. This Arg contructor creates a new top level SDS item. The first argument is just used to make this constructors argument list unique in all cases.
|
|
||||||||||||||||
|
Constructor which returns an id to a named item of another item. This constructor searches an existing SDS item for a item with a specified name and creates a reference to it.
|
|
||||||||||||||||
|
Constructor which returns an id to a named item of another item. This constructor searches an existing SDS item for a item with a specified name and creates a reference to it.
|
|
||||||||||||||||||||
|
Check an item has a required structure. A common requirement for the user of the SDS library is to check that a specified SDS item has the right format - type code, number of dimensions and dimensions. This utility function implements such a check.
|
|
||||||||||||||||||||
|
Fetch a string value as a std::string from a named component of the Arg structure. If the named item exists within the ARG structure then fetch its value and convert it a std::string value, 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 component of the Arg structure. If the named item exists within the ARG structure then fetch its value and convert it a std::string value, 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 double size real value from a named component of the Arg structure. If the named item exists within the ARG structure then fetch its value and convert it to a double, if possible.
|
|
||||||||||||||||
|
Fetch a float size real value from a named component of the Arg structure. If the named item exists within the ARG structure then fetch its value and convert it to a float, if possible.
|
|
||||||||||||||||
|
Fetch a unsigned 64 bit integer value from a named component of the Arg structure. If the named item exists within the ARG structure then fetch its value and convert it to a unsigned 64 bit integer, if possible.
|
|
||||||||||||||||
|
Fetch a 64 bit integer value from a named component of the Arg structure. If the named item exists within the ARG structure then fetch its value and convert it to a 64 bit integer, if possible.
|
|
||||||||||||||||
|
Fetch a 32 bit unsigned integer value from a named component of the Arg structure. If the named item exists within the ARG structure then fetch its value and convert it to an unsigned long integer, if possible.
|
|
||||||||||||||||
|
Fetch a 32 bit integer value from a named component of the Arg structure. If the named item exists within the ARG structure then fetch its value and convert it to a long integer, if possible.
|
|
||||||||||||||||
|
Fetch an unsigned short integer value from a named component of the Arg structure. If the named item exists within the ARG structure then fetch its value and convert it to an unsigned short integer, if possible.
|
|
||||||||||||||||
|
Fetch a short integer value from a named component of the Arg structure. If the named item exists within the ARG structure then fetch its value and convert it to a short integer, if possible.
|
|
||||||||||||||||
|
Fetch a char value from a named component of the Arg structure. If the named item exists within the ARG structure then fetch its value and convert it to a char, if possible.
|
|
||||||||||||||||
|
Fetch a boolean value from a named component of the Arg structure. If the named item exists within the ARG structure then fetch its value and convert it to a bool, if possible. Note that SDS does not directly support boolean values, so an integer representation is used internally and converted to bool.
|
|
||||||||||||||||||||||||
|
Get data from an SDS item. This method accesses the data from an SDS item. The data is copied into the specified buffer. Note that data from nested structures is also copied. Please see the SDS manual for more details on Get operations.
Reimplemented from SdsId. |
|
||||||||||||||||||||
|
Fetch a string value as a char * from a named component of the Arg structure. If the named item exists within the ARG structure then fetch its value and convert it a char * value, if possible.
|
|
||||||||||||||||
|
Fetch a double size real value from a named component of the Arg structure. If the named item exists within the ARG structure then fetch its value and convert it to a double, if possible.
|
|
||||||||||||||||
|
Fetch a float size real value from a named component of the Arg structure. If the named item exists within the ARG structure then fetch its value and convert it to a float, if possible.
|
|
||||||||||||||||
|
Fetch a unsigned 64 bit integer value from a named component of the Arg structure. If the named item exists within the ARG structure then fetch its value and convert it to a unsigned 64 bit integer, if possible.
|
|
||||||||||||||||
|
Fetch a 64 bit integer value from a named component of the Arg structure. If the named item exists within the ARG structure then fetch its value and convert it to a 64 bit integer, if possible.
|
|
||||||||||||||||
|
Fetch an unsigned 32 bit integer value from a named component of the Arg structure. If the named item exists within the ARG structure then fetch its value and convert it to an unsigned long integer, if possible.
|
|
||||||||||||||||
|
Fetch a 32 bit integer value from a named component of the Arg structure. If the named item exists within the ARG structure then fetch its value and convert it to a long integer, if possible.
|
|
||||||||||||||||
|
Fetch an unsigned short integer value from a named component of the Arg structure. If the named item exists within the ARG structure then fetch its value and convert it to an unsigned short integer, if possible.
|
|
||||||||||||||||
|
Fetch a short integer value from a named component of the Arg structure. If the named item exists within the ARG structure then fetch its value and convert it to a short integer, if possible.
|
|
||||||||||||||||
|
Fetch a char value from a named component of the Arg structure. If the named item exists within the ARG structure then fetch its value and convert it to a char, if possible.
|
|
||||||||||||||||
|
Fetch a boolean value from a named component of the Arg structure. If the named item exists within the ARG structure then fetch its value and convert it to a bool, if possible. Note that SDS does not directly support boolean values, so an integer representation is used internally and converted to bool.
|
|
|
List the contents of the structure to standard output.
Reimplemented from SdsId. |
|
||||||||||||||||||||||||||||
|
List an SDS structure through a print function. This static List function allows an SdsId/Arg structure to be listed with a printing function. It provides appropiate access to the ArgSdsList() function
|
|
||||||||||||
|
Create a new Arg structure within this object. This method destorys the existing SDS object referred to by this object and creates a new one.
|
|
||||||||||||||||
|
Insert a std::string into a named component of the Arg structure. The named item is created in the current structure if it does not already exist (array of SDS type SDS_CHAR) and the specified value inserted. If the name item already exists, then the value is converted to that type (if possible) and inserted.
|
|
||||||||||||||||
|
Insert a std::string into a named component of the Arg structure. The named item is created in the current structure if it does not already exist (array of SDS type SDS_CHAR) and the specified value inserted. If the name item already exists, then the value is converted to that type (if possible) and inserted.
|
|
||||||||||||||||
|
Insert an double size real value into a named component of the Arg structure. The named item is created in the current structure if it does not already exist (of SDS type SDS_DOUBLE) and the specified value inserted. If the name item already exists, then the value is converted to that type (if possible) and inserted.
|
|
||||||||||||||||
|
Insert an float size real value into a named component of the Arg structure. The named item is created in the current structure if it does not already exist (of SDS type SDS_FLOAT) and the specified value inserted. If the name item already exists, then the value is converted to that type (if possible) and inserted.
|
|
||||||||||||||||
|
Insert an unsigned 64 bit integer value into a named component of the Arg structure. The named item is created in the current structure if it does not already exist (of SDS type SDS_UINT64) and the specified value inserted. If the name item already exists, then the value is converted to that type (if possible) and inserted.
|
|
||||||||||||||||
|
Insert a 64 bit integer value into a named component of the Arg structure. The named item is created in the current structure if it does not already exist (of SDS type SDS_INT64) and the specified value inserted. If the name item already exists, then the value is converted to that type (if possible) and inserted.
|
|
||||||||||||||||
|
Insert an unsigned 32 bit integer value into a named component of the Arg structure. The named item is created in the current structure if it does not already exist (of SDS type SDS_UINT) and the specified value inserted. If the name item already exists, then the value is converted to that type (if possible) and inserted.
|
|
||||||||||||||||
|
Insert a 32 bit integer value into a named component of the Arg structure. The named item is created in the current structure if it does not already exist (of SDS type SDS_INT) and the specified value inserted. If the name item already exists, then the value is converted to that type (if possible) and inserted.
|
|
||||||||||||||||
|
Insert an unsigned short value into a named component of the Arg structure. The named item is created in the current structure if it does not already exist (of SDS type SDS_USHORT) and the specified value inserted. If the name item already exists, then the value is converted to that type (if possible) and inserted.
|
|
||||||||||||||||
|
Insert a short value into a named component of the Arg structure. The named item is created in the current structure if it does not already exist (of SDS type SDS_SHORT) and the specified value inserted. If the name item already exists, then the value is converted to that type (if possible) and inserted.
|
|
||||||||||||||||
|
Insert a char value into a named component of the Arg structure. The named item is created in the current structure if it does not already exist (of SDS type SDS_CHAR) and the specified value inserted. If the name item already exists, then the value is converted to that type (if possible) and inserted.
|
|
||||||||||||||||
|
Insert a boolean value into a named component of the Arg structure. The named item is created in the current structure if it does not already exist (of SDS type SDS_USHORT) and the specified value inserted (after conversion to unsigned short). If the name item already exists, then the value is converted to that type (if possible) and inserted. Note that SDS does not directly support boolean values, so an integer representation is used.
|
|
||||||||||||||||||||
|
Put data into an SDS item. This method put the data into an SDS item. The data is copied into the specified buffer. Note that data from nested structures is also copied. Please see the SDS manual for more details on Put operations.
Reimplemented from SdsId. |
|
||||||||||||||||
|
Insert a char * string into a named component of the Arg structure. The named item is created in the current structure if it does not already exist (array of SDS type SDS_CHAR) and the specified value inserted. If the name item already exists, then the value is converted to that type (if possible) and inserted.
|
|
||||||||||||||||
|
Insert an double size real value into a named component of the Arg structure. The named item is created in the current structure if it does not already exist (of SDS type SDS_DOUBLE) and the specified value inserted. If the name item already exists, then the value is converted to that type (if possible) and inserted.
|
|
||||||||||||||||
|
Insert an float size real value into a named component of the Arg structure. The named item is created in the current structure if it does not already exist (of SDS type SDS_FLOAT) and the specified value inserted. If the name item already exists, then the value is converted to that type (if possible) and inserted.
|
|
||||||||||||||||
|
Insert an unsigned 64 bit integer value into a named component of the Arg structure. The named item is created in the current structure if it does not already exist (of SDS type SDS_UINT64) and the specified value inserted. If the name item already exists, then the value is converted to that type (if possible) and inserted.
|
|
||||||||||||||||
|
Insert a 64 bit integer value into a named component of the Arg structure. The named item is created in the current structure if it does not already exist (of SDS type SDS_INT64) and the specified value inserted. If the name item already exists, then the value is converted to that type (if possible) and inserted.
|
|
||||||||||||||||
|
Insert an unsigned 32 bit integer into a named component of the Arg structure. The named item is created in the current structure if it does not already exist (of SDS type SDS_UINT) and the specified value inserted. If the name item already exists, then the value is converted to that type (if possible) and inserted.
|
|
||||||||||||||||
|
Insert a 32 bit integer value into a named component of the Arg structure. The named item is created in the current structure if it does not already exist (of SDS type SDS_INT) and the specified value inserted. If the name item already exists, then the value is converted to that type (if possible) and inserted.
|
|
||||||||||||||||
|
Insert an unsigned short value into a named component of the Arg structure. The named item is created in the current structure if it does not already exist (of SDS type SDS_USHORT) and the specified value inserted. If the name item already exists, then the value is converted to that type (if possible) and inserted.
|
|
||||||||||||||||
|
Insert a short value into a named component of the Arg structure. The named item is created in the current structure if it does not already exist (of SDS type SDS_SHORT) and the specified value inserted. If the name item already exists, then the value is converted to that type (if possible) and inserted.
|
|
||||||||||||||||
|
Insert a char value into a named component of the Arg structure. The named item is created in the current structure if it does not already exist (of SDS type SDS_CHAR) and the specified value inserted. If the name item already exists, then the value is converted to that type (if possible) and inserted.
|
|
||||||||||||||||
|
Insert a boolean value into a named component of the Arg structure. The named item is created in the current structure if it does not already exist (of SDS type SDS_USHORT) and the specified value inserted (after conversion to unsigned short). If the name item already exists, then the value is converted to that type (if possible) and inserted. Note that SDS does not directly support boolean values, so an integer representation is used.
|
|
||||||||||||||||||||
|
Convert the structure to a string. This method attempts to convert the SDS structure maintained by this Arg object into a string representation.
|
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