Luiza  v03-01
Public Member Functions | List of all members
gloria::GloriaDataContainer Class Reference

Class for storing all data processed in Luiza. More...

#include <GloriaDataContainer.h>

Public Member Functions

 GloriaDataContainer ()
 Default constructor. More...
 
 ~GloriaDataContainer ()
 Destructor.
 
int GetImageCollectionNumber ()
 Number of image collections.
 
int GetTableCollectionNumber ()
 Number of table collections.
 
std::string & GetImageCollectionName (int icl)
 Return image collection name.
 
std::string & GetTableCollectionName (int icl)
 Return table collection name.
 
ImageVec & CreateImageCollection (std::string name, bool isPermanent=false)
 Create new (empty) image collection.
 
bool ImageCollectionExists (std::string name)
 Check if image collection exists.
 
bool ImageCollectionPermanent (std::string name)
 Check if image collection is permanent.
 
void SetImageCollectionPermanent (std::string name, bool isPermanent=true)
 Flag table collection as permanent.
 
ImageVec & GetImageCollection (std::string name)
 Get stored image collection.
 
void RemoveImageCollection (std::string name)
 Remove stored image collection.
 
TableVec & CreateTableCollection (std::string name, bool isPermanent=false)
 Create new (empty) table collection.
 
bool TableCollectionExists (std::string name)
 Check if table collection exists.
 
bool TableCollectionPermanent (std::string name)
 Check if table collection is permanent.
 
void SetTableCollectionPermanent (std::string name, bool isPermanent=true)
 Flag table collection as permanent.
 
TableVec & GetTableCollection (std::string name)
 Get stored table collection.
 
void RemoveTableCollection (std::string name)
 Remove stored table collection.
 
void RemoveTemporaryCollections ()
 Remove all collections not declared as permanent.
 
void ClearTemporaryCollections ()
 Clear all collections not declared as permanent.
 
GloriaCollectionType GetCollectionType (std::string name)
 Return type of given collection.
 
std::string GetCollectionTypeName (std::string name)
 Return string describing type of given collection.
 

Detailed Description

Class for storing all data processed in Luiza.

This class allows to store collections of images or data tables, to be processed by Luiza processors. One instance of this class is initialized by luiza::ProcessorMgr and the pointer passed to subsequent processors (selected by user) in the Processor::processData call. Dedicated processors, defined as luiza::DataSourceProcessor are expected to fill the structure with actual data (images or tables).

Images and tables are always stored in so called collections. Collection is just a vector of images (gloria::GloriaFitsImage) or tables (gloria::GloriaFitsTable); in particular it can contain just a single image or table. However, collection also has a name, which is used to recognize different data sets in analysis. Collection name is usually specified as a parameter in the processor.

Each collection can be either defined as temporary or permanent. Images or tables in a temporary collection are removed after each data processing loop, so the new data can be read into the collection (collection itself is not deleted, it is just cleared). Permanent collections can be defined eg. to store reference images (darks, flats) or reference data (eg. data from star catalog).

Author
A.F.Zarnecki, University of Warsaw, zarne.nosp@m.cki@.nosp@m.fuw.e.nosp@m.du.p.nosp@m.l

Constructor & Destructor Documentation

GloriaDataContainer::GloriaDataContainer ( )

Default constructor.

Default constructor does not allocate any space for storing data


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