#include <XsilStd.hh>
Public Types | |
| enum | DataType { kTimeSeries = 0, kSpectrum = 1, kTransferFunction = 2, kCoefficients = 3, kHistogram = 4 } |
| xml data type More... | |
Static Public Member Functions | |
| static bool | GetDataType (const char *graphtype, DataType &type, int &subtype) |
| static bool | GetGraphType (DataType type, int subtype, std::string &graphtype) |
| static std::string | Typename (DataType type) |
| static DataType | Typeid (const char *type) |
| static int | DataSubtypeXY (DataType type, int subtype) |
| static bool | analyzeName (const std::string &name, std::string &n, int &index1, int &index2) |
| static std::string | makeName (const std::string &Name, int index1=-1, int index2=-1) |
| static bool | GetDataInfo (const char *xml, datainfo &info) |
| static bool | GetDataInfo (const BasicDataDescriptor *desc, int &dim1, int &dim2, bool &complex, bool &XYdata) |
| static bool | GetDataInfo (const BasicDataDescriptor *desc, int &dim1, int &dim2, bool &complex, bool &XYdata, const float **dataptr, bool &cpy, bool compress=false, bool forceXY=false) |
| static bool | GetDataInfo (const BasicDataDescriptor *desc, int &dim1, int &dim2, bool &complex, bool &XYdata, const double **dataptr, bool &cpy, bool compress=false, bool forceXY=false) |
Classes | |
| class | datainfo |
| Data information structure. More... | |
brief Utility functions for XML standard objects
| static bool xml::xsilStd::GetDataType | ( | const char * | graphtype, | |
| DataType & | type, | |||
| int & | subtype | |||
| ) | [static] |
Get the data type and subtype associated with the graph type. The returned type assumes Y data only. Use DataTypeXY to translate to XY data arrays. brief Get type/subtype.
| graphtype | Graph type | |
| type | XML data object type (return) | |
| subtype | XML data object subtype (return) |
| static bool xml::xsilStd::GetGraphType | ( | DataType | type, | |
| int | subtype, | |||
| std::string & | graphtype | |||
| ) | [static] |
Get the graph type associated with the type and subtype. brief Get graph type.
| type | XML data object type | |
| subtype | XML data object subtype | |
| graphtype | Graph type (return) |
| static std::string xml::xsilStd::Typename | ( | DataType | type | ) | [static] |
Returns the corresponding type name. brief Get type name.
| type | XML data object type |
| static DataType xml::xsilStd::Typeid | ( | const char * | type | ) | [static] |
Returns the corresponding type id. brief Get type id.
| type | XML data object type |
| static int xml::xsilStd::DataSubtypeXY | ( | DataType | type, | |
| int | subtype | |||
| ) | [static] |
Returns the subtype for XY data. brief Get XY subtype.
| type | XML data object type | |
| subtype | XML data object subtype |
| static bool xml::xsilStd::analyzeName | ( | const std::string & | name, | |
| std::string & | n, | |||
| int & | index1, | |||
| int & | index2 | |||
| ) | [static] |
Separates a name into character string and indices. brief Analyze name.
| name | Name to analyze | |
| n | character string (return) | |
| index1 | first index or -1 (return) | |
| index2 | second index or -1 (return) |
| static std::string xml::xsilStd::makeName | ( | const std::string & | Name, | |
| int | index1 = -1, |
|||
| int | index2 = -1 | |||
| ) | [static] |
Makes a name from a character string and indices. brief Make name.
| Name | character string | |
| index1 | first index or -1 | |
| index2 | second index or -1 |
| static bool xml::xsilStd::GetDataInfo | ( | const char * | xml, | |
| datainfo & | info | |||
| ) | [static] |
Returns information about a data object based on an xml stream describing the object. brief Get data descriptor information.
| xml | xml data stream | |
| info | data info structure (return) |
| static bool xml::xsilStd::GetDataInfo | ( | const BasicDataDescriptor * | desc, | |
| int & | dim1, | |||
| int & | dim2, | |||
| bool & | complex, | |||
| bool & | XYdata | |||
| ) | [static] |
Returns information about a data descriptor. The second dimension is the number of data points, whereas the first dimension describes the number of arrays. brief Get data descriptor information.
| desc | Data descriptor | |
| dim1 | Dimension 1 (return) | |
| dim2 | Dimension 2 (return) | |
| complex | true if complex data (return) | |
| XYdata | true if XY data format (return) |
| static bool xml::xsilStd::GetDataInfo | ( | const BasicDataDescriptor * | desc, | |
| int & | dim1, | |||
| int & | dim2, | |||
| bool & | complex, | |||
| bool & | XYdata, | |||
| const float ** | dataptr, | |||
| bool & | cpy, | |||
| bool | compress = false, |
|||
| bool | forceXY = false | |||
| ) | [static] |
Returns information about a data descriptor. The second dimension is the number of data points, whereas the first dimension describes the number of arrays. If copy is true, the returned data pointer is a copy of the data and must be freed by the user!
brief Get data descriptor information.
| desc | Data descriptor | |
| dim1 | Dimension 1 (return) | |
| dim2 | Dimension 2 (return) | |
| complex | true if complex data (return) | |
| XYdata | true if XY data format (return) | |
| dataptr | Pointer to float array (return) | |
| cpy | true if data is copy (return) | |
| compress | if true, multiple referenced objects are dealt as one | |
| forceXY | force X-Y mode? |
| static bool xml::xsilStd::GetDataInfo | ( | const BasicDataDescriptor * | desc, | |
| int & | dim1, | |||
| int & | dim2, | |||
| bool & | complex, | |||
| bool & | XYdata, | |||
| const double ** | dataptr, | |||
| bool & | cpy, | |||
| bool | compress = false, |
|||
| bool | forceXY = false | |||
| ) | [static] |
Returns information about a data descriptor. The second dimension is the number of data points, whereas the first dimension describes the number of arrays. If copy is true, the returned data pointer is a copy of the data and must be freed by the user!
brief Get data descriptor information.
| desc | Data descriptor | |
| dim1 | Dimension 1 (return) | |
| dim2 | Dimension 2 (return) | |
| complex | true if complex data (return) | |
| XYdata | true if XY data format (return) | |
| dataptr | Pointer to double array (return) | |
| cpy | true if data is copy (return) | |
| compress | if true multiple referenced objects are dealt as one | |
| forceXY | force X-Y mode? |
1.5.4