casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Static Public Member Functions | List of all members
asdmbinaries::Utils Class Reference

SDMDataSubset:: declarations. More...

#include <SDMDataObject.h>

Static Public Member Functions

static void invalidCall (const std::string &methodName, const SDMDataObject *sdmDataObject)
 
static std::string quote (const std::string &s)
 
static std::string quote (bool b)
 
static std::string quote (int i)
 
static std::string quote (unsigned int i)
 
static std::string quote (long long l)
 
static std::string quote (float f)
 
static std::string quote (const std::set< std::string > &s)
 
static std::string quote (const std::vector< std::string > &s)
 
template<class Enum , class EnumHelper >
static std::string quote (Enum l)
 
template<class Enum , class EnumHelper >
static std::string quote (const std::vector< Enum > &v_l)
 
template<class Enum , class EnumHelper >
static std::string toString (Enum l)
 
template<class Enum , class EnumHelper >
static std::string toString (const std::vector< Enum > &v_l)
 
template<class Enum , class EnumHelper >
static std::vector< Enum > enumvec (const std::string &strliterals)
 A generic utility to return a vector of <Enum> out of a string of <Enum> literals separated by space characters. More...
 
static void toXML (const std::string &elementName, int value, std::ostringstream &oss)
 
static void toXML (const std::string &elementName, unsigned int value, std::ostringstream &oss)
 
static void toXML (const std::string &elementName, long long value, std::ostringstream &oss)
 
static void toXML (const std::string &elementName, unsigned long long value, std::ostringstream &oss)
 
static void oXML (const std::string &elementName, std::ostringstream &oss)
 
static void cXML (const std::string &elementName, std::ostringstream &oss)
 
template<class Enum , class EnumHelper >
static void toXML (const std::string &elementName, Enum value, std::ostringstream &oss)
 A generic utility to XML'ize a literal as the content of an XML element. More...
 

Detailed Description

SDMDataSubset:: declarations.

Utils:: declarations

Definition at line 1555 of file SDMDataObject.h.

Member Function Documentation

static void asdmbinaries::Utils::cXML ( const std::string &  elementName,
std::ostringstream &  oss 
)
static
template<class Enum , class EnumHelper >
static std::vector<Enum> asdmbinaries::Utils::enumvec ( const std::string &  strliterals)
inlinestatic

A generic utility to return a vector of <Enum> out of a string of <Enum> literals separated by space characters.

Definition at line 1607 of file SDMDataObject.h.

static void asdmbinaries::Utils::invalidCall ( const std::string &  methodName,
const SDMDataObject sdmDataObject 
)
static
static void asdmbinaries::Utils::oXML ( const std::string &  elementName,
std::ostringstream &  oss 
)
static
static std::string asdmbinaries::Utils::quote ( const std::string &  s)
static
static std::string asdmbinaries::Utils::quote ( bool  b)
static
static std::string asdmbinaries::Utils::quote ( int  i)
static
static std::string asdmbinaries::Utils::quote ( unsigned int  i)
static
static std::string asdmbinaries::Utils::quote ( long long  l)
static
static std::string asdmbinaries::Utils::quote ( float  f)
static
static std::string asdmbinaries::Utils::quote ( const std::set< std::string > &  s)
static
static std::string asdmbinaries::Utils::quote ( const std::vector< std::string > &  s)
static
template<class Enum , class EnumHelper >
static std::string asdmbinaries::Utils::quote ( Enum  l)
inlinestatic

Definition at line 1566 of file SDMDataObject.h.

References casa::name().

template<class Enum , class EnumHelper >
static std::string asdmbinaries::Utils::quote ( const std::vector< Enum > &  v_l)
inlinestatic

Definition at line 1574 of file SDMDataObject.h.

References casa::name().

template<class Enum , class EnumHelper >
static std::string asdmbinaries::Utils::toString ( Enum  l)
inlinestatic

Definition at line 1587 of file SDMDataObject.h.

References casa::name().

template<class Enum , class EnumHelper >
static std::string asdmbinaries::Utils::toString ( const std::vector< Enum > &  v_l)
inlinestatic

Definition at line 1593 of file SDMDataObject.h.

References casa::name().

static void asdmbinaries::Utils::toXML ( const std::string &  elementName,
int  value,
std::ostringstream &  oss 
)
static
static void asdmbinaries::Utils::toXML ( const std::string &  elementName,
unsigned int  value,
std::ostringstream &  oss 
)
static
static void asdmbinaries::Utils::toXML ( const std::string &  elementName,
long long  value,
std::ostringstream &  oss 
)
static
static void asdmbinaries::Utils::toXML ( const std::string &  elementName,
unsigned long long  value,
std::ostringstream &  oss 
)
static
template<class Enum , class EnumHelper >
static void asdmbinaries::Utils::toXML ( const std::string &  elementName,
Enum  value,
std::ostringstream &  oss 
)
inlinestatic

A generic utility to XML'ize a literal as the content of an XML element.

Parameters
elementNamethe name of the XML element to contain the Enum value.
literalthe value of Enum to output.
ossa reference to the output string stream where the XML is written.

Definition at line 1635 of file SDMDataObject.h.

References casa::name().


The documentation for this class was generated from the following file: