casa
5.7.0-16
|
A class to define a collection of options regarding the way to consider an ASDM dataset especially when it's about to be read on disk, parsed and transformed into its representation in memory. More...
#include <Misc.h>
Public Member Functions | |
ASDMParseOptions () | |
A null constructor. More... | |
ASDMParseOptions (const ASDMParseOptions &x) | |
A copy constructor. More... | |
virtual | ~ASDMParseOptions () |
The destructor. More... | |
ASDMParseOptions & | operator= (const ASDMParseOptions &rhs) |
= operator. More... | |
ASDMParseOptions & | asALMA () |
This is an ALMA dataset. More... | |
ASDMParseOptions & | asIRAM_PDB () |
This is an IRAM / Plateau de Bure dataset. More... | |
ASDMParseOptions & | asEVLA () |
This is an EVLA dataset. More... | |
ASDMParseOptions & | asV2 () |
This is a V2 dataset. More... | |
ASDMParseOptions & | asV3 () |
This is a V3 dataset. More... | |
ASDMParseOptions & | loadTablesOnDemand (bool b) |
Load all the tables in memory or only those which are required by the code. More... | |
ASDMParseOptions & | checkRowUniqueness (bool b) |
Determines if a control of the uniqueness is performed (b==true) or not (b==false) for each row of each table converted and loaded into memory. More... | |
std::string | toString () const |
Private Attributes | |
ASDMUtils::Origin | origin_ |
bool | detectOrigin_ |
std::string | version_ |
bool | detectVersion_ |
bool | loadTablesOnDemand_ |
bool | checkRowUniqueness_ |
Friends | |
class | ASDM |
std::ostream & | operator<< (std::ostream &output, const ASDMParseOptions &p) |
Defines how an instance of ASDMParseOptions is output on an ostream. More... | |
A class to define a collection of options regarding the way to consider an ASDM dataset especially when it's about to be read on disk, parsed and transformed into its representation in memory.
The options that can be set with instances of this class are :
The method setFromFile defined in the class ASDM is the principal (not to say only) user of instances of this class.
It should be noticed that all the methods defined to set the options return a reference onto the instance of ASDMParseOptions they are applied. This technique facilitates the definition of a collection of options in one single statement, e.g. :
ASDMParseOptions parse; parse.asALMA().asV2().loadTablesOnDemand(true);
asdm::ASDMParseOptions::ASDMParseOptions | ( | ) |
A null constructor.
The instance built by this constructor defines the instances as follows :
asdm::ASDMParseOptions::ASDMParseOptions | ( | const ASDMParseOptions & | x | ) |
A copy constructor.
|
virtual |
The destructor.
Does nothing special.
ASDMParseOptions& asdm::ASDMParseOptions::asALMA | ( | ) |
This is an ALMA dataset.
ASDMParseOptions& asdm::ASDMParseOptions::asEVLA | ( | ) |
This is an EVLA dataset.
ASDMParseOptions& asdm::ASDMParseOptions::asIRAM_PDB | ( | ) |
This is an IRAM / Plateau de Bure dataset.
ASDMParseOptions& asdm::ASDMParseOptions::asV2 | ( | ) |
This is a V2 dataset.
ASDMParseOptions& asdm::ASDMParseOptions::asV3 | ( | ) |
This is a V3 dataset.
ASDMParseOptions& asdm::ASDMParseOptions::checkRowUniqueness | ( | bool | b | ) |
Determines if a control of the uniqueness is performed (b==true) or not (b==false) for each row of each table converted and loaded into memory.
bool | b |
ASDMParseOptions& asdm::ASDMParseOptions::loadTablesOnDemand | ( | bool | b | ) |
Load all the tables in memory or only those which are required by the code.
b | a boolean value. true <-> load only the table which are required by the code when they are referred, false <-> load all the code. |
ASDMParseOptions& asdm::ASDMParseOptions::operator= | ( | const ASDMParseOptions & | rhs | ) |
= operator.
std::string asdm::ASDMParseOptions::toString | ( | ) | const |
|
friend |
Defines how an instance of ASDMParseOptions is output on an ostream.
|
private |