An implementation for retrieving a description of a column of a collection.
More...
#include <CollectionSvc/CollectionColumn.h>
|
| | CollectionColumn () |
| | Default constructor.
|
| | CollectionColumn (const std::string &name, const std::string &type) |
| | Constructor that takes the column properties as input.
|
| | CollectionColumn (const CollectionColumn &rhs) |
| | Copy constructor.
|
| void | setName (const std::string &name) |
| | Sets the name of the column.
|
| void | setType (const std::string &type) |
| | Sets the data type of the column.
|
| void | setType (const std::type_info &type) |
| | Sets the data type of the column.
|
| void | setId (int id) |
| | Sets the position of the column in its associated collection fragment.
|
| const std::string & | name () const |
| | Returns the name of the column.
|
| const std::string & | type () const |
| | Returns the data type of the column.
|
| int | id () const |
| | Returns the position of the column in its associated collection fragment.
|
|
| std::string | m_name |
| | Name of column.
|
| std::string | m_type |
| | Data type of column.
|
| int | m_id |
| | Position of column in associated collection fragment.
|
An implementation for retrieving a description of a column of a collection.
Definition at line 20 of file CollectionColumn.h.
◆ CollectionColumn() [1/3]
| pool::CollectionColumn::CollectionColumn |
( |
| ) |
|
|
inline |
Default constructor.
Definition at line 24 of file CollectionColumn.h.
std::string m_name
Name of column.
std::string m_type
Data type of column.
int m_id
Position of column in associated collection fragment.
◆ CollectionColumn() [2/3]
| pool::CollectionColumn::CollectionColumn |
( |
const std::string & | name, |
|
|
const std::string & | type ) |
|
inline |
Constructor that takes the column properties as input.
- Parameters
-
| name | Name of column. |
| type | Data type of column. |
Definition at line 35 of file CollectionColumn.h.
const std::string & name() const
Returns the name of the column.
const std::string & type() const
Returns the data type of the column.
◆ CollectionColumn() [3/3]
◆ id()
| int pool::CollectionColumn::id |
( |
| ) |
const |
|
inline |
Returns the position of the column in its associated collection fragment.
Definition at line 80 of file CollectionColumn.h.
◆ name()
| const std::string & pool::CollectionColumn::name |
( |
| ) |
const |
|
inline |
◆ setId()
| void pool::CollectionColumn::setId |
( |
int | id | ) |
|
|
inline |
Sets the position of the column in its associated collection fragment.
Definition at line 71 of file CollectionColumn.h.
int id() const
Returns the position of the column in its associated collection fragment.
◆ setName()
| void pool::CollectionColumn::setName |
( |
const std::string & | name | ) |
|
|
inline |
◆ setType() [1/2]
| void pool::CollectionColumn::setType |
( |
const std::string & | type | ) |
|
|
inline |
◆ setType() [2/2]
| void pool::CollectionColumn::setType |
( |
const std::type_info & | type | ) |
|
|
inline |
Sets the data type of the column.
- Parameters
-
Definition at line 67 of file CollectionColumn.h.
68 {
m_type = coral::AttributeSpecification::typeNameForId(
type ); }
◆ type()
| const std::string & pool::CollectionColumn::type |
( |
| ) |
const |
|
inline |
◆ m_id
| int pool::CollectionColumn::m_id |
|
private |
Position of column in associated collection fragment.
Definition at line 90 of file CollectionColumn.h.
◆ m_name
| std::string pool::CollectionColumn::m_name |
|
private |
◆ m_type
| std::string pool::CollectionColumn::m_type |
|
private |
The documentation for this class was generated from the following file: