AAO DRAMA/DRAMA2 C++ Interface
DRAMA C++11 and later interface
|
◆ Id() [3/3]
Constructor with the initial value set from an SDS structure or file. This overload of the constructor should be used from threaded actions, it will lock access to DRAMA while it is fetching the value to ensure ERS messages from the lower level code are recorded against the action correctly. This constructor will access an SDS structure which may be specified either directly as the argument to an action or as the name of an SDS file containing the structure. If the argument id is non-zero, points to an SDS structured item and if the structure name is not "ArgStructure", then the id of this structure is returned. If the argument system id is non-zero and points to the an SDS item named "ArgStructure", the we try to find (by name or position), the requested item. If such an item is found and it is a Sds structure, the id of the item is returned. If we still don't have a value, the flag KeepErr is NOT specified and Default has a non-zero length, then it is treated as the name of a file which we read using SdsRead(). The resulting SDS id is returned. If we read the value from a file, the name of the file is returned available from ActualName(). Otherwise, the name of the structure is returned by ActualName(). Methods WasReadFromFile() and WasReadFromDefault() indicate how we got the value.
References drama::CreateRunDramaTask(), drama::Default, and Get(). |
Click here for the DRAMA home page and here for the AAO home page.
For more information, contact tony.farrell@mq.edu.au
Generated on Thu Dec 12 2024 23:07:35 for AAO DRAMA/DRAMA2 C++ Interface by 1.9.8