$treeview $search $mathjax $extrastylesheet
otsdaq  v2_03_00
$projectbrief
$projectbrief
$searchbox

ots::TableView Class Reference

Inheritance diagram for ots::TableView:
ots::TableViewEx

List of all members.

Public Types

typedef std::vector
< std::vector< std::string > > 
DataView
typedef DataView::iterator iterator
typedef DataView::const_iterator const_iterator

Public Member Functions

 TableView (const std::string &name="")
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, bool generateUniqueDataColumns=false)
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 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
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
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
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 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 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)
unsigned int addRow (const std::string &author="", bool incrementUniqueData=false, std::string baseNameAutoUID="", unsigned int rowToAdd=(unsigned int)-1)
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="")
bool setURIEncodedValue (const std::string &value, const unsigned int &row, const unsigned int &col, const std::string &author="")

Static Public Attributes

static const unsigned int INVALID = -1

Detailed Description

Definition at line 19 of file TableView.h.


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

Generated on 14 Mar 2019 for otsdaq by  doxygen 1.6.1