RegionTextParser.h File Reference

Go to the source code of this file.

Classes

class  casa::RegionTextParser
 Parse and store regions and annotations from an ascii region file <author>Dave Mehringer</author>. More...
struct  casa::RegionTextParser::ParamValue
 because of nonstandard access patterns, be careful when using ParamValue and ParamSet outside this class; These should probably be made into full fledged classes at some point; More...

Namespaces

namespace  casa
 

----------------------------------------------------------------------------- Start of casa namespace -----------------------------------------------------------------------------


Functions

 casa::RegionTextParser ()
 casa::RegionTextParser (const String &filename, const CoordinateSystem &csys, const IPosition &imShape, const Int requireAtLeastThisVersion, const String &prependRegion="", const String &globalOverrideChans="", const String &globalOverrrideStokes="")
 differentiating between the filename and simple text constructors globalOverrideChans override all spectral selections in the file or text by using this channel selection <src>globalOverrideStokes override all correlation selections in the file or text by using this polarization selection <src>prependRegion allows one to specify region(s) that will be prepended to any text in filename or text
 casa::RegionTextParser (const CoordinateSystem &csys, const IPosition &imShape, const String &text, const String &prependRegion="", const String &globalOverrideChans="", const String &globalOverrrideStokes="")
 casa::~RegionTextParser ()
RegionTextParser & casa::operator= (const RegionTextParser &)
Int casa::getFileVersion () const
vector< AsciiAnnotationFileLine > casa::getLines () const
static ParamSet casa::getParamSet (Bool &spectralParmsUpdated, LogIO &log, const String &text, const String &preamble, const CoordinateSystem &csys, SHARED_PTR< std::pair< MFrequency, MFrequency > > overridingFreqRange, SHARED_PTR< Vector< Stokes::StokesTypes > > overridingCorrRange)
 get the parameter set from a line of text; preamble is prepended to exception messages;
void casa::_parse (const String &contents, const String &fileDesc)
Array< String > casa::_extractTwoPairs (uInt &end, const String &string) const
static Vector< String > casa::_extractSinglePair (const String &string)
 extract s1 and s2 from a string of the form "[s1, s2]"
void casa::_addLine (const AsciiAnnotationFileLine &line)
AnnotationBase::Type casa::_getAnnotationType (Vector< Quantity > &qDirs, vector< Quantity > &qunatities, String &textString, String &consumeMe, const String &preamble) const
ParamSet casa::_getCurrentParamSet (Bool &spectralParmsUpdated, ParamSet &newParams, String &consumeMe, const String &preamble) const
void casa::_createAnnotation (const AnnotationBase::Type annType, const Vector< Quantity > &qDirs, const std::pair< Quantity, Quantity > &qFreqs, const vector< Quantity > &quantities, const String &textString, const ParamSet &currentParamSet, const Bool annOnly, const Bool isDifference, const String &preamble)
std::pair< Quantity, Quantity > casa::_quantitiesFromFrequencyString (const String &freqString, const String &preamble) const
static String casa::_doLabel (String &consumeMe, const String &logPreamble)
static String casa::_getKeyValue (String &consumeMe, const String &preamble)
Vector< Quantity > casa::_extractQuantityPairAndSingleQuantity (String &consumeMe, const String &preamble) const
Vector< Quantity > casa::_extractNQuantityPairs (String &consumeMe, const String &preamble) const
Vector< Quantity > casa::_extractTwoQuantityPairs (String &consumeMe, const String &preamble) const
std::pair< Quantity, Quantity > casa::_extractSingleQuantityPair (const String &pair, const String &preamble) const
void casa::_setInitialGlobals ()
static Vector
< Stokes::StokesTypes > 
casa::_stokesFromString (const String &stokes, const String &preamble)
Vector< Quantity > casa::_extractTwoQuantityPairsAndSingleQuantity (String &consumeMe, const String &preamble) const
void casa::_extractQuantityPairAndString (std::pair< Quantity, Quantity > &quantities, String &string, String &consumeMe, const String &preamble, const Bool requireQuotesAroundString) const
Vector< Quantity > casa::_extractQuantitiesFromPair (const String &pair, const String &preamble) const
void casa::_determineVersion (const String &chunk, const String &filename, const Int requireAtLeastThisVersion)
void casa::_setOverridingCorrelations (const String &globalOverrideStokes)
 set the Stokes/polarizations/correlations that will override all global and per line correlation specifications; If multiple ranges are specified, an exception will be thrown;
void casa::_setOverridingChannelRange (const String &globalOverrideChans)
 set the (single) channel range that will override all global and per line frequency specifications; If multiple ranges are specified, an exception will be thrown;

Variables

static const String casa::sOnePair
static const String casa::bTwoPair
static const String casa::sNPair
static const Regex casa::startOnePair
static const Regex casa::startNPair
CoordinateSystem casa::_csys
ParamSet casa::_currentGlobals
vector< AsciiAnnotationFileLine > casa::_lines
Vector< AnnotationBase::Keyword > casa::_globalKeysToApply
Int casa::_fileVersion
IPosition casa::_imShape
uInt casa::_regions
SHARED_PTR< std::pair
< MFrequency, MFrequency > > 
casa::_overridingFreqRange
SHARED_PTR< Vector
< Stokes::StokesTypes > > 
casa::_overridingCorrRange
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1