4 #ifndef GloriaDataContainer_h
5 #define GloriaDataContainer_h 1
17 #include "GloriaFitsImage.h"
18 #include "GloriaFitsTable.h"
31 typedef std::vector< GloriaFitsImage > ImageVec;
33 typedef std::vector< GloriaFitsTable > TableVec;
46 { UndefinedCollection = 0,
51 static const char* GloriaCollectionTypeName[] = {
"Undefined",
"Image",
"Table" };
157 std::map< std::string, ImageVec > _imageCollectionMap;
159 std::map< std::string, TableVec > _tableCollectionMap;
161 std::vector< std::string > _imageCollectionNames;
163 std::vector< std::string > _tableCollectionNames;
165 std::map< std::string, bool > _imageCollectionPermanent;
167 std::map< std::string, bool > _tableCollectionPermanent;
169 int _nImageCollections;
171 int _nTableCollections;
std::string & GetImageCollectionName(int icl)
Return image collection name.
Definition: GloriaDataContainer.h:102
bool TableCollectionPermanent(std::string name)
Check if table collection is permanent.
Definition: GloriaDataContainer.cc:152
void SetImageCollectionPermanent(std::string name, bool isPermanent=true)
Flag table collection as permanent.
Definition: GloriaDataContainer.cc:53
std::string & GetTableCollectionName(int icl)
Return table collection name.
Definition: GloriaDataContainer.h:105
~GloriaDataContainer()
Destructor.
Definition: GloriaDataContainer.cc:36
GloriaCollectionType GetCollectionType(std::string name)
Return type of given collection.
Definition: GloriaDataContainer.cc:321
namespace for data storing and exchange formats
Definition: GloriaAstrometry.h:15
ImageVec & CreateImageCollection(std::string name, bool isPermanent=false)
Create new (empty) image collection.
Definition: GloriaDataContainer.cc:63
Class for storing all data processed in Luiza.
Definition: GloriaDataContainer.h:82
bool TableCollectionExists(std::string name)
Check if table collection exists.
Definition: GloriaDataContainer.cc:147
void RemoveTemporaryCollections()
Remove all collections not declared as permanent.
Definition: GloriaDataContainer.cc:257
ImageVec & GetImageCollection(std::string name)
Get stored image collection.
Definition: GloriaDataContainer.cc:100
void SetTableCollectionPermanent(std::string name, bool isPermanent=true)
Flag table collection as permanent.
Definition: GloriaDataContainer.cc:160
GloriaDataContainer()
Default constructor.
Definition: GloriaDataContainer.cc:27
void RemoveTableCollection(std::string name)
Remove stored table collection.
Definition: GloriaDataContainer.cc:228
bool ImageCollectionPermanent(std::string name)
Check if image collection is permanent.
Definition: GloriaDataContainer.cc:45
TableVec & GetTableCollection(std::string name)
Get stored table collection.
Definition: GloriaDataContainer.cc:207
int GetTableCollectionNumber()
Number of table collections.
Definition: GloriaDataContainer.h:99
bool ImageCollectionExists(std::string name)
Check if image collection exists.
Definition: GloriaDataContainer.cc:40
int GetImageCollectionNumber()
Number of image collections.
Definition: GloriaDataContainer.h:96
GloriaCollectionType
Enumerator for allowed collection types.
Definition: GloriaDataContainer.h:45
TableVec & CreateTableCollection(std::string name, bool isPermanent=false)
Create new (empty) table collection.
Definition: GloriaDataContainer.cc:170
void ClearTemporaryCollections()
Clear all collections not declared as permanent.
Definition: GloriaDataContainer.cc:295
void RemoveImageCollection(std::string name)
Remove stored image collection.
Definition: GloriaDataContainer.cc:121
std::string GetCollectionTypeName(std::string name)
Return string describing type of given collection.
Definition: GloriaDataContainer.cc:333