class diagStorage : public gdsStorage Class to store a diagnostics data.
| | gdsDataObjectList list of data objects |
| | TestType Test class |
| | TestName Test name |
| | Supervisory Test supervisory |
| | TestIterator Test iterator |
| | TestTime Test time GPS |
| | TestTimeUTC Test time UTC |
| | Def defaults data object |
| | Sync synchronization data object |
| | Env environment objects |
| | Scan scan objects |
| | Find find object |
| | Test test object |
| | Channel Channel objects |
| | Index Index objects |
| | Result Result objects |
| | Plot Plot objects |
| | Calibration Calibration records |
| | ReferenceTraces Reference trace list |
| | diagStorage (const string& test = fftname) Deafult constructor. |
| | ~diagStorage () Destructor. |
| | isAuxiliaryResult (gdsDataObject& obj) Is auxiliary function. |
| | fsave (string filename, ioflags saveflags = ioStandard, filetype FileType = LigoLW_XML) File save function. |
| | frestore (string filename, ioflags restoreflags = ioExtended, filetype FileType = LigoLW_XML) File restore function. |
| | updateTest (const string& newtest) update test method. |
| | addData (gdsDataObject& dat, bool copy = true) Add a data object. |
| | eraseData (const string& objname) Remove a data object. |
| | eraseResults () erase result method. |
| | eraseReferenceTraces () erase reference traces method. |
| | erasePlotSettings () erase plot settings method. |
| | eraseCalibration () erase calibration record method. |
| | purgeChannelData (int left = 0) purge channel data method. |
| | getChannelNames (std::vector<string>& names) Channel names method. |
| | getAuxiliaryResultNames (std::vector<string>& names) Auxiliary names method. |
| | getReferenceTraceNames (std::vector<string>& names) Reference names method. |
| | analyzeName (const string& name, string& n, int& index1, int& index2) analyze name method. |
| | analyzeName (const string& name, string& nameA, int& indexA1, int& indexA2, string& nameB, int& indexB1, int& indexB2) analyze name method. |
| | set (const string& var, const string& val) set method. |
| | erase (const string& var, string* norm = 0) erase method. |
| | get (const string& var, gdsDatum& dat, string* norm = 0) const get method. |
| | get (const string& var, string& val, string* norm = 0) const get method. |
| | getMultiple (const string& var, string& info, bool brief = true, bool nameonly = false) const get method. |
| | getData (const string& name, int datatype, int len, int ofs, float*& data, int& datalength) const get data method. |
| | putData (const string& name, int datatype, int len, int ofs, const float* data, int datalength, int* newindex = 0) put data method. |
| | init (const string& test) init method. |
This class is used to store diagnostics data. A storage object contains a list of data objects which have both data and parameters associated with them. Additionally, a parameter can be stored in global context. Every data object is characterized by its name which must be unique. Every parameter is characterized by its name and an associated data object (if it isn't in global context). The paramter name has to be unique within its context.MT safe: All public methods of the storage object are multi-thread safe and can be called from independently running tasks. Direct access to its public data member should be avoided and should always guared by the mutex of the storage object.
gdsParameter* TestType
gdsParameter* TestName
gdsParameter* Supervisory
gdsParameter* TestIterator
gdsParameter* TestTime
gdsParameter* TestTimeUTC
gdsDataObject* Def
gdsDataObject* Sync
gdsDataObjectList Env
gdsDataObjectList Scan
gdsDataObject* Find
gdsDataObject* Test
gdsDataObjectList Channel
gdsDataObject* Index
gdsDataObjectList Result
gdsDataObjectList Plot
gdsDataObjectList Calibration
gdsDataObjectList ReferenceTraces
explicit diagStorage(const string& test = fftname)
virtual ~diagStorage()
bool isAuxiliaryResult(gdsDataObject& obj)
virtual bool fsave(string filename, ioflags saveflags = ioStandard, filetype FileType = LigoLW_XML)
saveflags - specifies what to save
filetype - specifies the filetype
virtual bool frestore(string filename, ioflags restoreflags = ioExtended, filetype FileType = LigoLW_XML)
restoreflags - specifies what to restore
filetype - specifies the filetype
virtual bool updateTest(const string& newtest)
virtual bool addData(gdsDataObject& dat, bool copy = true)
copy - copy object if true, otherwise transfer ownership
virtual bool eraseData(const string& objname)
virtual bool eraseResults()
virtual bool eraseReferenceTraces()
virtual bool erasePlotSettings()
virtual bool eraseCalibration()
virtual bool purgeChannelData(int left = 0)
virtual bool getChannelNames(std::vector<string>& names)
virtual bool getAuxiliaryResultNames(std::vector<string>& names)
virtual bool getReferenceTraceNames(std::vector<string>& names)
static bool analyzeName(const string& name, string& n, int& index1, int& index2)
n - short name (return)
index1 - first index (return)
index2 - second index (return)
static bool analyzeName(const string& name, string& nameA, int& indexA1, int& indexA2, string& nameB, int& indexB1, int& indexB2)
nameA - short name of data object (return)
indexA1 - first index of data object (return)
indexA2 - second index of data object (return)
nameB - short name of parameter (return)
indexB1 - first index of parameter (return)
indexB2 - second index of parameter (return)
virtual bool set(const string& var, const string& val)
val - value to be set (string encoded)
virtual bool erase(const string& var, string* norm = 0)
norm - normalized name
virtual bool get(const string& var, gdsDatum& dat, string* norm = 0) const
dat - datum (return)
norm - normalized name
virtual bool get(const string& var, string& val, string* norm = 0) const
dat - datum (string encoded) (return)
norm - normalized name
virtual bool getMultiple(const string& var, string& info, bool brief = true, bool nameonly = false) const
info - parameter and data object names with value(s)
(return)
brief - if true, each value is limited to one line
nameonly - if true, only names are returned
virtual bool getData(const string& name, int datatype, int len, int ofs, float*& data, int& datalength) const
len - Number of data points
ofs - Offset into data object
data - pointer to data array (return)
datalen - Number of float values in data array (return)
virtual bool putData(const string& name, int datatype, int len, int ofs, const float* data, int datalength, int* newindex = 0)
len - Number of data points
ofs - Offset into data object
data - pointer to data array
datalen - Number of float values in data array
newindex - new Result index if empty name was supplied
virtual void init(const string& test)
alphabetic index hierarchy of classes
Please send questions and comments to sigg_d@ligo-wa.caltech.edu
generated by doc++