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