|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef COLLECTIONBASE_COLLECTIONCOLUMN_H
6 #define COLLECTIONBASE_COLLECTIONCOLUMN_H
10 #include "CoralBase/AttributeSpecification.h"
43 const std::string&
type,
92 return !( *
this == rhs );
115 {
m_type = coral::AttributeSpecification::typeNameForId(
type ); }
virtual void setName(const std::string &name)
Sets the name of the column.
virtual void setType(const std::string &type)
Sets the data type of the column.
bool m_sizeIsFixed
Flag indicating whether data type of column can vary in size.
CollectionColumn(const CollectionColumn &rhs)
Copy constructor.
virtual const std::string & name() const
Returns the name of the column.
CollectionColumn(const std::string &name, const std::string &type, int maxSize=0, bool sizeIsFixed=true)
Constructor that takes the column properties as input.
CollectionColumn()
Default constructor.
virtual void setType(const std::type_info &type)
Sets the data type of the column.
virtual bool sizeIsFixed() const
Indicates whether the data type of the column can vary in size.
virtual const std::string & annotation() const
Returns the user annotation for this column.
int m_maxSize
Maximum size of column data type.
virtual void setAnnotation(const std::string &anno)
Returns the user annotation for this column.
std::string m_annotation
User annotation.
bool operator==(const CollectionColumn &rhs) const
Equality operator.
~CollectionColumn()
Default destructor.
bool operator!=(const CollectionColumn &rhs) const
Inequality operator.
virtual void setMaxSize(int maxSize)
Sets the maximum size of the column data type.
int m_id
Position of column in associated collection fragment.
std::string m_name
Name of column.
virtual void setId(int id)
Sets the position of the column in its associated collection fragment.
std::string m_type
Data type of column.
virtual int maxSize() const
Returns the maximum size of the column data type.
CollectionColumn & operator=(const CollectionColumn &rhs)
Assignment operator.
virtual int id() const
Returns the position of the column in its associated collection fragment.
virtual void setSizeIsFixed(bool sizeIsFixed)
Sets a flag indicating whether the size of the column data type may vary.
virtual const std::string & type() const
Returns the data type of the column.