otsdaq  v1_01_04
 All Classes Namespaces Functions
Public Member Functions | Public Attributes | List of all members
ots::ConfigurationViewEx Struct Reference
+ Inheritance diagram for ots::ConfigurationViewEx:

Public Member Functions

void printJSON (std::stringstream &ss) const
 
int fillFromJSON (std::string const &newjson)
 
- Public Member Functions inherited from ots::ConfigurationView
 ConfigurationView (const std::string &name="")
 
ConfigurationViewcopy (const ConfigurationView &src, ConfigurationVersion destinationVersion, const std::string &author)
 
void init (void)
 
template<class T >
unsigned int findRow (unsigned int col, const T &value, unsigned int offsetRow=0) const
 
unsigned int findRow (unsigned int col, const std::string &value, unsigned int offsetRow=0) const
 
template<class T >
unsigned int findRowInGroup (unsigned int col, const T &value, const std::string &groupId, const std::string &childLinkIndex, unsigned int offsetRow=0) const
 
unsigned int findRowInGroup (unsigned int col, const std::string &value, const std::string &groupId, const std::string &childLinkIndex, unsigned int offsetRow=0) const
 
unsigned int findCol (const std::string &name) const
 
unsigned int findColByType (const std::string &type, int startingCol=0) const
 
const std::string & getUniqueStorageIdentifier (void) const
 
const std::string & getTableName (void) const
 
const ConfigurationVersiongetVersion (void) const
 
const std::string & getComment (void) const
 
const std::string & getAuthor (void) const
 
const time_t & getCreationTime (void) const
 
const time_t & getLastAccessTime (void) const
 
const bool & getLooseColumnMatching (void) const
 
const unsigned int getDataColumnSize (void) const
 
const unsigned int & getSourceColumnMismatch (void) const
 
const unsigned int & getSourceColumnMissing (void) const
 
const std::set< std::string > & getSourceColumnNames (void) const
 
std::set< std::string > getColumnNames (void) const
 
std::set< std::string > getColumnStorageNames (void) const
 
std::vector< std::string > getDefaultRowValues (void) const
 
unsigned int getNumberOfRows (void) const
 
unsigned int getNumberOfColumns (void) const
 
const unsigned int getColUID (void) const
 
const unsigned int getColStatus (void) const
 
std::set< std::string > getSetOfGroupIDs (const std::string &childLinkIndex, unsigned int row=-1) const
 
bool isEntryInGroup (const unsigned int &row, const std::string &childLinkIndex, const std::string &groupNeedle) const
 
const bool getChildLink (const unsigned int &col, bool &isGroup, std::pair< unsigned int, unsigned int > &linkPair) const
 
const unsigned int getColLinkGroupID (const std::string &childLinkIndex) const
 
void addRowToGroup (const unsigned int &row, const unsigned int &col, const std::string &groupID)
 
bool removeRowFromGroup (const unsigned int &row, const unsigned int &col, const std::string &groupID, bool deleteRowIfNoGroupLeft=false)
 
template<class T >
void getValue (T &value, unsigned int row, unsigned int col, bool convertEnvironmentVariables=true) const
 
void getValue (std::string &value, unsigned int row, unsigned int col, bool convertEnvironmentVariables=true) const
 
template<class T >
validateValueForColumn (const std::string &value, unsigned int col, bool convertEnvironmentVariables=true) const
 
std::string validateValueForColumn (const std::string &value, unsigned int col, bool convertEnvironmentVariables=true) const
 
std::string getValueAsString (unsigned int row, unsigned int col, bool convertEnvironmentVariables=true) const
 
std::string getEscapedValueAsString (unsigned int row, unsigned int col, bool convertEnvironmentVariables=true) const
 
bool isURIEncodedCommentTheSame (const std::string &comment) const
 
const DataView & getDataView (void) const
 
const std::vector
< ViewColumnInfo > & 
getColumnsInfo (void) const
 
std::vector< ViewColumnInfo > * getColumnsInfoP (void)
 
const ViewColumnInfogetColumnInfo (unsigned int column) const
 
void setUniqueStorageIdentifier (const std::string &storageUID)
 
void setTableName (const std::string &name)
 
void setComment (const std::string &comment)
 
void setURIEncodedComment (const std::string &uriComment)
 
void setAuthor (const std::string &author)
 
void setCreationTime (time_t t)
 
void setLastAccessTime (time_t t=time(0))
 
void setLooseColumnMatching (bool setValue)
 
template<class T >
void setVersion (const T &version)
 
template<class T >
void setValue (const T &value, unsigned int row, unsigned int col)
 
void setValue (const std::string &value, unsigned int row, unsigned int col)
 
void setValue (const char *value, unsigned int row, unsigned int col)
 
void setValueAsString (const std::string &value, unsigned int row, unsigned int col)
 
void resizeDataView (unsigned int nRows, unsigned int nCols)
 
int addRow (const std::string &author="", std::string baseNameAutoUID="")
 
void deleteRow (int r)
 
iterator begin (void)
 
iterator end (void)
 
const_iterator begin (void) const
 
const_iterator end (void) const
 
void reset (void)
 
void print (std::ostream &out=std::cout) const
 
void printJSON (std::ostream &out=std::cout) const
 
int fillFromJSON (const std::string &json)
 
int fillFromCSV (const std::string &data, const int &dataOffset=0, const std::string &author="") throw (std::runtime_error)
 
bool setURIEncodedValue (const std::string &value, const unsigned int &row, const unsigned int &col, const std::string &author="")
 

Public Attributes

std::string _json = "{ \"testJSON\" : 123 }"
 

Additional Inherited Members

- Public Types inherited from ots::ConfigurationView
typedef std::vector
< std::vector< std::string > > 
DataView
 
typedef DataView::iterator iterator
 
typedef DataView::const_iterator const_iterator
 
- Static Public Member Functions inherited from ots::ConfigurationView
static std::string decodeURIComponent (const std::string &data)
 
- Static Public Attributes inherited from ots::ConfigurationView
static const unsigned int INVALID = -1
 

Detailed Description

Definition at line 29 of file DatabaseInterfaceTest_t.cc.


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