|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef COLLECTIONBASE_ICOLLECTIONDESCRIPTION_H
6 #define COLLECTIONBASE_ICOLLECTIONDESCRIPTION_H
15 class ICollectionColumn;
16 class ICollectionIndex;
29 virtual const std::string&
name()
const = 0;
32 virtual const std::string&
type()
const = 0;
virtual const ICollectionColumn & attributeColumn(const std::string &columnName) const =0
Returns a description object for an Attribute column of the collection, given the name of the column.
virtual const std::string & eventReferenceColumnName() const =0
Returns the name reserved for the event reference Token column.
virtual const std::string & name() const =0
Returns the name of the collection.
virtual const ICollectionColumn & tokenColumn(int columnId) const =0
Returns a description object for a Token column of the collection, given the position of the column.
virtual const ICollectionColumn & attributeColumn(int columnId) const =0
Returns a description object for an Attribute column of the collection, given the position of the col...
virtual int numberOfAttributeColumns() const =0
Returns the number of Attribute columns.
virtual int numberOfTokenColumns() const =0
Returns the number of Token columns (including the event reference column if it is used)
virtual int numberOfColumns() const =0
Returns the number of columns (including the event reference column if it is used) in the collection.
virtual const std::string & type() const =0
Returns the storage technology type of the collection.
virtual const ICollectionColumn & column(const std::string &columnName) const =0
Returns a description object for a column of the collection, given the name of the column.
virtual const ICollectionIndex & index(const std::vector< std::string > &columnNames) const =0
Returns a description object for an index of the collection, given the names of the columns on which ...
virtual const std::string & connection() const =0
Returns the connection to the database containing the collection.
virtual const ICollectionColumn & tokenColumn(const std::string &columnName) const =0
Returns a description object for a Token column of the collection, given the name of the column.
virtual bool hasEventReferenceColumn() const =0
Indicates whether the collection contains the event reference column.
virtual ~ICollectionDescription()
Empty destructor.
virtual bool isSubsetOf(const ICollectionDescription &rhs) const =0
Check if all columns from this Description are present in the rhs Description and if they have the sa...
virtual const ICollectionIndex & index(int indexId) const =0
Returns a description object for an index of the collection, given the ID number of the index.
virtual bool equals(const ICollectionDescription &rhs) const =0
Check if both Descriptions have the same columns.
virtual void printOut() const
print out the description (optional debugging)
virtual int numberOfIndices() const =0
Returns the number of indices used by the collection.
virtual const ICollectionColumn * columnPtr(const std::string &columnName) const =0
return pointer to Column or NULL if it's not found (will not throw exceptions)
virtual const ICollectionIndex & index(const std::string &columnName) const =0
Returns a description object for an index of the collection, given the name of the column on which th...