#include <CollectionBase/CollectionColumn.h>
An implementation of the ICollectionColumn interface for retrieving a description of a column of a collection.
Definition at line 23 of file CollectionColumn.h.
◆ CollectionColumn() [1/3]
pool::CollectionColumn::CollectionColumn |
( |
| ) |
|
|
inline |
◆ CollectionColumn() [2/3]
pool::CollectionColumn::CollectionColumn |
( |
const std::string & |
name, |
|
|
const std::string & |
type, |
|
|
int |
maxSize = 0 , |
|
|
bool |
sizeIsFixed = true |
|
) |
| |
|
inline |
Constructor that takes the column properties as input.
- Parameters
-
name | Name of column. |
type | Data type of column. |
maxSize | Maximum size of column data type. |
sizeIsFixed | Flag to allow column data type to vary in size. |
Definition at line 42 of file CollectionColumn.h.
◆ CollectionColumn() [3/3]
◆ ~CollectionColumn()
pool::CollectionColumn::~CollectionColumn |
( |
| ) |
|
|
inline |
◆ annotation()
virtual const std::string& pool::CollectionColumn::annotation |
( |
| ) |
const |
|
inlinevirtual |
◆ id()
virtual int pool::CollectionColumn::id |
( |
| ) |
const |
|
inlinevirtual |
◆ maxSize()
virtual int pool::CollectionColumn::maxSize |
( |
| ) |
const |
|
inlinevirtual |
◆ name()
virtual const std::string& pool::CollectionColumn::name |
( |
| ) |
const |
|
inlinevirtual |
◆ operator!=()
◆ operator=()
◆ operator==()
◆ setAnnotation()
virtual void pool::CollectionColumn::setAnnotation |
( |
const std::string & |
anno | ) |
|
|
inlinevirtual |
◆ setId()
virtual void pool::CollectionColumn::setId |
( |
int |
id | ) |
|
|
inlinevirtual |
Sets the position of the column in its associated collection fragment.
Definition at line 134 of file CollectionColumn.h.
◆ setMaxSize()
virtual void pool::CollectionColumn::setMaxSize |
( |
int |
maxSize | ) |
|
|
inlinevirtual |
Sets the maximum size of the column data type.
This method is useful for data of type string or blob.
- Parameters
-
maxSize | Maximum size of column data type. |
Definition at line 123 of file CollectionColumn.h.
◆ setName()
virtual void pool::CollectionColumn::setName |
( |
const std::string & |
name | ) |
|
|
inlinevirtual |
◆ setSizeIsFixed()
virtual void pool::CollectionColumn::setSizeIsFixed |
( |
bool |
sizeIsFixed | ) |
|
|
inlinevirtual |
Sets a flag indicating whether the size of the column data type may vary.
This method is useful for data of type string or blob.
- Parameters
-
sizeIsFixed | Flag to allow column data type to vary in size. |
Definition at line 131 of file CollectionColumn.h.
◆ setType() [1/2]
virtual void pool::CollectionColumn::setType |
( |
const std::string & |
type | ) |
|
|
inlinevirtual |
◆ setType() [2/2]
virtual void pool::CollectionColumn::setType |
( |
const std::type_info & |
type | ) |
|
|
inlinevirtual |
Sets the data type of the column.
- Parameters
-
Definition at line 114 of file CollectionColumn.h.
115 {
m_type = coral::AttributeSpecification::typeNameForId(
type ); }
◆ sizeIsFixed()
virtual bool pool::CollectionColumn::sizeIsFixed |
( |
| ) |
const |
|
inlinevirtual |
◆ type()
virtual const std::string& pool::CollectionColumn::type |
( |
| ) |
const |
|
inlinevirtual |
◆ m_annotation
std::string pool::CollectionColumn::m_annotation |
|
private |
◆ m_id
int pool::CollectionColumn::m_id |
|
private |
◆ m_maxSize
int pool::CollectionColumn::m_maxSize |
|
private |
◆ m_name
std::string pool::CollectionColumn::m_name |
|
private |
◆ m_sizeIsFixed
bool pool::CollectionColumn::m_sizeIsFixed |
|
private |
Flag indicating whether data type of column can vary in size.
Definition at line 178 of file CollectionColumn.h.
◆ m_type
std::string pool::CollectionColumn::m_type |
|
private |
The documentation for this class was generated from the following file: