ATLAS Offline Software
ICollectionSchemaEditor.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef COLLECTIONBASE_ICOLLECTIONSCHEMAEDITOR_H
6 #define COLLECTIONBASE_ICOLLECTIONSCHEMAEDITOR_H
7 
8 #include <string>
9 #include <vector>
10 #include <typeinfo>
11 
12 
13 namespace pool {
14  class ICollectionColumn;
15 
22  {
23  public:
29  virtual void setEventReferenceColumnName( const std::string& columnName ) = 0;
30 
40  const std::string& columnName,
41  const std::string& columnType,
42  const std::string& annotation = "",
43  int maxSize = 0,
44  bool sizeIsFixed = true ) = 0;
45 
55  const std::string& columnName,
56  const std::type_info& columnType,
57  const std::string& annotation = "",
58  int maxSize = 0,
59  bool sizeIsFixed = true ) = 0;
60 
67  const std::string& columnName,
68  const std::string& annotation = "") = 0;
69 
70 
73  const std::string& columnName,
74  const std::string& annotation ) = 0;
75 
76 
82  virtual void dropColumn( const std::string& columnName ) = 0;
83 
90  virtual void renameColumn( const std::string& oldName, const std::string& newName ) = 0;
91 
92  // TODO protected:
95  };
96 }
97 
98 #endif
99 
pool::ICollectionSchemaEditor::insertTokenColumn
virtual const ICollectionColumn & insertTokenColumn(const std::string &columnName, const std::string &annotation="")=0
Adds a new column of type pool::Token to the collection.
pool::ICollectionSchemaEditor::annotateColumn
virtual const ICollectionColumn & annotateColumn(const std::string &columnName, const std::string &annotation)=0
add annotation to column
pool::ICollectionSchemaEditor
Definition: ICollectionSchemaEditor.h:22
pool
pool namespace
Definition: libname.h:15
pool::ICollectionSchemaEditor::renameColumn
virtual void renameColumn(const std::string &oldName, const std::string &newName)=0
Renames a column of the collection.
pool::ICollectionColumn
Definition: ICollectionColumn.h:19
pool::ICollectionSchemaEditor::setEventReferenceColumnName
virtual void setEventReferenceColumnName(const std::string &columnName)=0
Sets the name of the event reference Token column.
pool::ICollectionSchemaEditor::insertColumn
virtual const ICollectionColumn & insertColumn(const std::string &columnName, const std::type_info &columnType, const std::string &annotation="", int maxSize=0, bool sizeIsFixed=true)=0
Adds a new column to the collection.
MakeNewFileFromOldAndSubstitution.newName
dictionary newName
Definition: ICHEP2016/MakeNewFileFromOldAndSubstitution.py:95
pool::ICollectionSchemaEditor::dropColumn
virtual void dropColumn(const std::string &columnName)=0
Removes a column from the collection.
pool::ICollectionSchemaEditor::~ICollectionSchemaEditor
virtual ~ICollectionSchemaEditor()
Empty destructor.
Definition: ICollectionSchemaEditor.h:94
pool::ICollectionSchemaEditor::insertColumn
virtual const ICollectionColumn & insertColumn(const std::string &columnName, const std::string &columnType, const std::string &annotation="", int maxSize=0, bool sizeIsFixed=true)=0
Adds a new column to the collection.