casa
$Rev:20696$
|
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. | |
ASDMParseOptions (const ASDMParseOptions &x) | |
A copy constructor. | |
virtual | ~ASDMParseOptions () |
The destructor. | |
ASDMParseOptions & | operator= (const ASDMParseOptions &rhs) |
= operator. | |
ASDMParseOptions & | asALMA () |
This is an ALMA dataset. | |
ASDMParseOptions & | asIRAM_PDB () |
This is an IRAM / Plateau de Bure dataset. | |
ASDMParseOptions & | asEVLA () |
This is an EVLA dataset. | |
ASDMParseOptions & | asV2 () |
This is a V2 dataset. | |
ASDMParseOptions & | asV3 () |
This is a V3 dataset. | |
ASDMParseOptions & | loadTablesOnDemand (bool b) |
Load all the tables in memory or only those which are required by the code. | |
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. | |
std::string | toString () const |
ASDMParseOptions () | |
A null constructor. | |
ASDMParseOptions (const ASDMParseOptions &x) | |
A copy constructor. | |
virtual | ~ASDMParseOptions () |
The destructor. | |
ASDMParseOptions & | operator= (const ASDMParseOptions &rhs) |
= operator. | |
ASDMParseOptions & | asALMA () |
This is an ALMA dataset. | |
ASDMParseOptions & | asIRAM_PDB () |
This is an IRAM / Plateau de Bure dataset. | |
ASDMParseOptions & | asEVLA () |
This is an EVLA dataset. | |
ASDMParseOptions & | asV2 () |
This is a V2 dataset. | |
ASDMParseOptions & | asV3 () |
This is a V3 dataset. | |
ASDMParseOptions & | loadTablesOnDemand (bool b) |
Load all the tables in memory or only those which are required by the code. | |
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. | |
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. | |
std::ostream & | operator<< (std::ostream &output, const ASDMParseOptions &p) |
Defines how an instance of ASDMParseOptions is output on an ostream. |
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);
A null constructor.
The instance built by this constructor defines the instances as follows :
asdm::ASDMParseOptions::ASDMParseOptions | ( | const ASDMParseOptions & | x | ) |
A copy constructor.
virtual asdm::ASDMParseOptions::~ASDMParseOptions | ( | ) | [virtual] |
The destructor.
Does nothing special.
A null constructor.
The instance built by this constructor defines the instances as follows :
asdm::ASDMParseOptions::ASDMParseOptions | ( | const ASDMParseOptions & | x | ) |
A copy constructor.
virtual asdm::ASDMParseOptions::~ASDMParseOptions | ( | ) | [virtual] |
The destructor.
Does nothing special.
This is an ALMA dataset.
This is an ALMA dataset.
This is an EVLA dataset.
This is an EVLA dataset.
This is an IRAM / Plateau de Bure dataset.
This is an IRAM / Plateau de Bure dataset.
This is a V2 dataset.
This is a V2 dataset.
This is a V3 dataset.
This is a V3 dataset.
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 |
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 |
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. |
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.
ASDMParseOptions& asdm::ASDMParseOptions::operator= | ( | const ASDMParseOptions & | rhs | ) |
= operator.
std::string asdm::ASDMParseOptions::toString | ( | ) | const |
std::string asdm::ASDMParseOptions::toString | ( | ) | const |
std::ostream& operator<< | ( | std::ostream & | output, |
const ASDMParseOptions & | p | ||
) | [friend] |
Defines how an instance of ASDMParseOptions is output on an ostream.
std::ostream& operator<< | ( | std::ostream & | output, |
const ASDMParseOptions & | p | ||
) | [friend] |
Defines how an instance of ASDMParseOptions is output on an ostream.
bool asdm::ASDMParseOptions::checkRowUniqueness_ [private] |
bool asdm::ASDMParseOptions::detectOrigin_ [private] |
bool asdm::ASDMParseOptions::detectVersion_ [private] |
bool asdm::ASDMParseOptions::loadTablesOnDemand_ [private] |
std::string asdm::ASDMParseOptions::version_ [private] |