otsdaq  v2_05_02_indev
ots::TableViewEx Struct Reference
Inheritance diagram for ots::TableViewEx:
ots::TableView

Public Member Functions

void printJSON (std::stringstream &ss) const
 
int fillFromJSON (std::string const &newjson)
 
- Public Member Functions inherited from ots::TableView
 TableView (const std::string &tableName)
 
void init (void)
 
TableViewcopy (const TableView &src, TableVersion destinationVersion, const std::string &author)
 
unsigned int copyRows (const std::string &author, const TableView &src, unsigned int srcOffsetRow=0, unsigned int srcRowsToCopy=(unsigned int)-1, unsigned int destOffsetRow=(unsigned int)-1, unsigned char generateUniqueDataColumns=false, const std::string &baseNameAutoUID="")
 
template<class T >
unsigned int findRow (unsigned int col, const T &value, unsigned int offsetRow=0, bool doNotThrow=false) const
 
unsigned int findRow (unsigned int col, const std::string &value, unsigned int offsetRow=0, bool doNotThrow=false) 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 TableVersiongetVersion (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
 
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::map< std::string,
unsigned int > 
getColumnNamesMap (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
 
unsigned int getColUID (void) const
 
unsigned int getColStatus (void) const
 
unsigned int getColPriority (void) const
 
std::set< std::string > getSetOfGroupIDs (const std::string &childLinkIndex, unsigned int row=-1) const
 
std::set< std::string > getSetOfGroupIDs (const unsigned int &col, unsigned int row=-1) const
 
bool isEntryInGroup (const unsigned int &row, const std::string &childLinkIndex, const std::string &groupNeedle) const
 
bool getChildLink (const unsigned int &col, bool &isGroup, std::pair< unsigned int, unsigned int > &linkPair) const
 
unsigned int getLinkGroupIDColumn (const std::string &childLinkIndex) const
 
std::vector< unsigned int > getGroupRows (const unsigned int groupIdCol, const std::string &groupID, bool onlyStatusTrue=false, bool orderedByPriority=false) const
 
std::vector< std::vector
< unsigned int > > 
getGroupRowsByPriority (const unsigned int groupIdCol, const std::string &groupID, bool onlyStatusTrue=false) 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 doConvertEnvironmentVariables=true) const
 
void getValue (std::string &value, unsigned int row, unsigned int col, bool doConvertEnvironmentVariables=true) const
 
template<class T >
validateValueForColumn (const std::string &value, unsigned int col, bool doConvertEnvironmentVariables=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
< TableViewColumnInfo > & 
getColumnsInfo (void) const
 
std::vector
< TableViewColumnInfo > * 
getColumnsInfoP (void)
 
const TableViewColumnInfogetColumnInfo (unsigned int column) const
 
void setUniqueStorageIdentifier (const std::string &storageUID)
 
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)
 
const std::string & setUniqueColumnValue (unsigned int row, unsigned int col, std::string baseValueAsString="", bool doMathAppendStrategy=false)
 
void resizeDataView (unsigned int nRows, unsigned int nCols)
 
unsigned int addRow (const std::string &author="", unsigned char incrementUniqueData=false, const std::string &baseNameAutoUID="", unsigned int rowToAdd=(unsigned int)-1)
 
void deleteRow (int r)
 
void deleteAllRows (void)
 
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="")
 
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::TableView
typedef std::vector
< std::vector< std::string > > 
DataView
 
typedef DataView::iterator iterator
 
typedef DataView::const_iterator const_iterator
 
- Static Public Attributes inherited from ots::TableView
static const unsigned int INVALID = -1
 

Detailed Description

Definition at line 30 of file DatabaseInterfaceTest_t.cc.


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