#include <CollectionBase/RootCollectionSchemaEditor.h>
|
| RootCollectionSchemaEditor (RootCollection &collection, CollectionDescription &description, TTree *tree) |
|
virtual void | setEventReferenceColumnName (const std::string &columnName) |
| Sets the name of the event reference Token column. More...
|
|
virtual const ICollectionColumn & | insertColumn (const std::string &columnName, const std::string &columnType, const std::string &annotation="", int maxSize=0, bool sizeIsFixed=true) |
| Adds a new column to the collection. More...
|
|
virtual const ICollectionColumn & | insertColumn (const std::string &columnName, const std::type_info &columnType, const std::string &annotation="", int maxSize=0, bool sizeIsFixed=true) |
| Adds a new column to the collection. More...
|
|
virtual const ICollectionColumn & | insertTokenColumn (const std::string &columnName, const std::string &annotation="") |
| Adds a new column of type pool::Token to the collection. More...
|
|
virtual const ICollectionColumn & | annotateColumn (const std::string &columnName, const std::string &annotation) |
| add annotation to column More...
|
|
virtual void | dropColumn (const std::string &columnName) |
| Removes a column from the collection. More...
|
|
virtual void | renameColumn (const std::string &oldName, const std::string &newName) |
| Renames a column of the collection. More...
|
|
virtual | ~RootCollectionSchemaEditor () |
| destructor. More...
|
|
An interface used to define the schema of a collection.
Definition at line 32 of file RootCollectionSchemaEditor.h.
◆ RootCollectionSchemaEditor()
◆ ~RootCollectionSchemaEditor()
virtual pool::RootCollection::RootCollectionSchemaEditor::~RootCollectionSchemaEditor |
( |
| ) |
|
|
virtual |
◆ addTreeBranch()
void pool::RootCollection::RootCollectionSchemaEditor::addTreeBranch |
( |
const std::string & |
name, |
|
|
const std::string & |
type_name |
|
) |
| |
|
protected |
◆ annotateColumn()
virtual const ICollectionColumn& pool::RootCollection::RootCollectionSchemaEditor::annotateColumn |
( |
const std::string & |
columnName, |
|
|
const std::string & |
annotation |
|
) |
| |
|
virtual |
◆ createTreeBranches()
void pool::RootCollection::RootCollectionSchemaEditor::createTreeBranches |
( |
| ) |
|
|
protected |
◆ dropColumn()
virtual void pool::RootCollection::RootCollectionSchemaEditor::dropColumn |
( |
const std::string & |
columnName | ) |
|
|
virtual |
◆ insertColumn() [1/2]
virtual const ICollectionColumn& pool::RootCollection::RootCollectionSchemaEditor::insertColumn |
( |
const std::string & |
columnName, |
|
|
const std::string & |
columnType, |
|
|
const std::string & |
annotation = "" , |
|
|
int |
maxSize = 0 , |
|
|
bool |
sizeIsFixed = true |
|
) |
| |
|
virtual |
Adds a new column to the collection.
- Parameters
-
columnName | Name of new column. |
columnType | Data type of new column. |
maxSize | Maximum size of column data type (useful for string or blob data types). |
sizeIsFixed | Flag indicating whether size of column data type is fixed (useful for string or blob data types). |
Implements pool::ICollectionSchemaEditor.
◆ insertColumn() [2/2]
virtual const ICollectionColumn& pool::RootCollection::RootCollectionSchemaEditor::insertColumn |
( |
const std::string & |
columnName, |
|
|
const std::type_info & |
columnType, |
|
|
const std::string & |
annotation = "" , |
|
|
int |
maxSize = 0 , |
|
|
bool |
sizeIsFixed = true |
|
) |
| |
|
virtual |
Adds a new column to the collection.
- Parameters
-
columnName | Name of new column. |
columnType | Data type of new column. |
maxSize | Maximum size of column data type (useful for string or blob data types). |
sizeIsFixed | Flag indicating whether size of column data type is fixed (useful for string or blob data types). |
Implements pool::ICollectionSchemaEditor.
◆ insertTokenColumn()
virtual const ICollectionColumn& pool::RootCollection::RootCollectionSchemaEditor::insertTokenColumn |
( |
const std::string & |
columnName, |
|
|
const std::string & |
annotation = "" |
|
) |
| |
|
virtual |
◆ readSchema()
void pool::RootCollection::RootCollectionSchemaEditor::readSchema |
( |
| ) |
|
|
protected |
◆ renameColumn()
virtual void pool::RootCollection::RootCollectionSchemaEditor::renameColumn |
( |
const std::string & |
oldName, |
|
|
const std::string & |
newName |
|
) |
| |
|
virtual |
◆ setEventReferenceColumnName()
virtual void pool::RootCollection::RootCollectionSchemaEditor::setEventReferenceColumnName |
( |
const std::string & |
columnName | ) |
|
|
virtual |
◆ writeSchema()
void pool::RootCollection::RootCollectionSchemaEditor::writeSchema |
( |
| ) |
|
|
protected |
◆ RootCollection
◆ m_collection
RootCollection& pool::RootCollection::RootCollectionSchemaEditor::m_collection |
|
protected |
◆ m_description
◆ m_poolOut
coral::MessageStream pool::RootCollection::RootCollectionSchemaEditor::m_poolOut |
|
protected |
◆ m_schemaWritten
bool pool::RootCollection::RootCollectionSchemaEditor::m_schemaWritten |
|
protected |
◆ m_tree
TTree* pool::RootCollection::RootCollectionSchemaEditor::m_tree |
|
protected |
The documentation for this class was generated from the following file: