ATLAS Offline Software
Loading...
Searching...
No Matches
pool::CollectionColumn Class Reference

An implementation for retrieving a description of a column of a collection. More...

#include <CollectionColumn.h>

Collaboration diagram for pool::CollectionColumn:

Public Member Functions

 CollectionColumn (const std::string &name, const std::string &type)
 Constructor that takes the column properties as input.
const std::string & name () const
 Returns the name of the column.
const std::string & type () const
 Returns the data type of the column.

Static Public Member Functions

static const CollectionColumn & tokenColumn ()

Private Attributes

std::string m_name
 Name of column.
std::string m_type
 Data type of column.

Detailed Description

An implementation for retrieving a description of a column of a collection.

Definition at line 18 of file CollectionColumn.h.

Constructor & Destructor Documentation

◆ CollectionColumn()

pool::CollectionColumn::CollectionColumn ( const std::string & name,
const std::string & type )
inline

Constructor that takes the column properties as input.

Parameters
nameName of column.
typeData type of column.

Definition at line 33 of file CollectionColumn.h.

35 : m_name( name ),
36 m_type( type ) {}
const std::string & name() const
Returns the name of the column.
std::string m_name
Name of column.
std::string m_type
Data type of column.
const std::string & type() const
Returns the data type of the column.

Member Function Documentation

◆ name()

const std::string & pool::CollectionColumn::name ( ) const
inline

Returns the name of the column.

Definition at line 39 of file CollectionColumn.h.

39{ return m_name; }

◆ tokenColumn()

const CollectionColumn & pool::CollectionColumn::tokenColumn ( )
inlinestatic

Definition at line 21 of file CollectionColumn.h.

22 {
23 static const CollectionColumn column( "Token", "Token" );
24 return column;
25 }
CollectionColumn(const std::string &name, const std::string &type)
Constructor that takes the column properties as input.

◆ type()

const std::string & pool::CollectionColumn::type ( ) const
inline

Returns the data type of the column.

Definition at line 42 of file CollectionColumn.h.

42{ return m_type; }

Member Data Documentation

◆ m_name

std::string pool::CollectionColumn::m_name
private

Name of column.

Definition at line 46 of file CollectionColumn.h.

◆ m_type

std::string pool::CollectionColumn::m_type
private

Data type of column.

Definition at line 49 of file CollectionColumn.h.


The documentation for this class was generated from the following file: