casa
5.7.0-16
|
Constants, defaults, and commonly-used functions for the table browser. More...
#include <TBConstants.h>
Static Public Member Functions | |
static void | dprint (int level, casacore::String message, int indentLevel=0) |
Print the given message to standard out with the given indentation level, IF the message's level is at or below the current debugThreshold. More... | |
static casacore::String | compToString (tb::Comparator c) |
Returns the display value of the given Comparator. More... | |
static tb::Comparator | stringToComp (casacore::String str) |
Returns the Comparator corresponding to the given display value. More... | |
static casacore::String | bFormToString (tb::BooleanFormat bf) |
Returns the display value of the given BooleanFormat. More... | |
static tb::BooleanFormat | stringToBForm (casacore::String str) |
Returns the BooleanFormat corresponding to the given display value. More... | |
static casacore::String | aipspath () |
Returns the path of the CASA top-level directory. More... | |
static casacore::String | dotCasapyDir () |
Returns the absolute path of the ~/.casa directory. More... | |
static casacore::IPosition | ipos (std::vector< int > &d) |
Converts a vector<int> to an IPosition. More... | |
static std::vector< int > | ipos (casacore::IPosition &d) |
Converts an casacore::IPosition to a vector<int>. More... | |
static bool | increment (casacore::IPosition &shape, casacore::IPosition &d) |
Increments the given dimension, using the given shape as a maximum. More... | |
static bool | increment (std::vector< int > &shape, std::vector< int > &d) |
Increments the given dimension, using the given shape as a maximum. More... | |
static void | insert (QFrame *frame, QWidget *widget) |
Inserts the given widget into the given placeholder frame. More... | |
static void | insert (QFrame *frame, QLayout *layout) |
Inserts the given layout into the given placeholder frame. More... | |
static std::vector < casacore::String > * | allTypes () |
Unsupported types static const casacore::String TYPE_USHORT; static const casacore::String TYPE_ARRAY_USHORT; static const casacore::String TYPE_OTHER;. More... | |
static std::vector < casacore::String > * | arrayTypes () |
Return a vector containing all the valid array data types. More... | |
static std::vector < casacore::String > * | nonArrayTypes () |
Return a vector containing all the valid non-array data types. More... | |
static casacore::String | typeName (casacore::DataType dt) |
Convert a CASA DataType enum to its casacore::String equivalent. More... | |
static casacore::String | typeName (casacore::String type) |
Returns a human-readable name for the given type. More... | |
static casacore::String | VOType (casacore::String &type) |
Converts the given type into its corresponding VOTable type. More... | |
static bool | typeIsTable (casacore::String &type) |
Returns true if the given type is a table type, false otherwise. More... | |
static bool | typeIsArray (casacore::String &type) |
Returns true if the given type is an array type, false otherwise. More... | |
static bool | typeIsPlottable (casacore::String &type) |
Returns true if the given type is plottable, false otherwise. More... | |
static bool | typeIsNumberable (casacore::String &type) |
Returns true if the given type is numberable, false otherwise. More... | |
static bool | typeIsIndexable (casacore::String &type) |
Returns true if the given type can be used as an index (i.e., integer-like), false otherwise. More... | |
static bool | typeIsComplex (casacore::String &type) |
Retruns true if the given type is a complex or array of complex types, false otherwise. More... | |
static casacore::String | arrayType (casacore::String &at) |
Returns the value type from the given array type. More... | |
static bool | valueIsValid (casacore::String &value, casacore::String &type) |
Returns true if the given value is valid for the given type, false otherwise. More... | |
static casacore::String | formatValue (casacore::String &value, casacore::String &type) |
Formats the given value for the given data type and returns the formatted value. More... | |
static double | valueToDouble (casacore::String &value, casacore::String &type) |
Converts the given value of the given type to a double and return it. More... | |
static double | date (casacore::String d) |
Converts the given casacore::String in date format (year-month-day-hour:min:sec) to its double representation. More... | |
static casacore::String | date (const double d, const int numDecimals=-1) |
Converts the given double into a casacore::String in date format (year-month-day-hour:min:sec). More... | |
static bool | dateFormatIsValid (casacore::String &d) |
Returns true if the given casacore::String contains a valid date format, false otherwise. More... | |
static std::pair< double, double > | toComplex (casacore::String str) |
Converts a casacore::String in complex format (a,b) into a pair of doubles. More... | |
static const XMLCh * | xstr (char *str) |
Converts a char* to an XMLCh*. More... | |
static const XMLCh * | xstr (casacore::String str) |
Converts a casacore::String to an XMLCh*. More... | |
static casacore::String | xstr (XMLCh *str) |
Converts an XMLCh* to a String. More... | |
static casacore::String | xstr (const XMLCh *str) |
Converts a const XMLCh* to a String. More... | |
static casacore::String | itoa (int n) |
Converts the given int into its casacore::String representation and returns it. More... | |
static casacore::String | uitoa (unsigned int n) |
Converts the given unsigned int into its casacore::String representation and returns it. More... | |
static casacore::String | sitoa (short int n) |
Converts the given short int into its casacore::String representation and returns it. More... | |
static casacore::String | ftoa (float f, int decimals=-1, bool scientific=false) |
Converts the given float into its casacore::String representation and returns it. More... | |
static casacore::String | dtoa (double d, int decimals=-1, bool scientific=false) |
Converts the given double into its casacore::String representation and returns it. More... | |
static int | atoi (casacore::String &str, int *i) |
Converts the given casacore::String into its int representation. More... | |
static int | atoui (casacore::String &str, unsigned int *i) |
Converts the given casacore::String into its unsigned int representation. More... | |
static int | atosi (casacore::String &str, short int *i) |
Converts the given casacore::String into its short int representation. More... | |
static int | atof (casacore::String &str, float *f) |
Converts the given casacore::String into its float representation. More... | |
static int | atod (casacore::String &str, double *d) |
Converts the given casacore::String into its double representation. More... | |
static int | round (double d) |
Rounds the given double to the nearest int and returns it. More... | |
static bool | isWS (char c) |
Returns true if the given char is a whitespace, false otherwise. More... | |
static void | strtrim (casacore::String &str) |
Trims the given casacore::String of its leading and trailing whitespace using casacore::String::erase(). More... | |
static void | toLower (casacore::String &str) |
Converts all upper-case letters to lower-case letters in the given String. More... | |
static unsigned int | findWS (casacore::String &str, int index=0) |
Returns the index of the next instance of a whitespace character in the given casacore::String from the given index, or the string's length if there is none. More... | |
static unsigned int | findIgnoreCase (casacore::String &str, casacore::String &find, int index=0) |
Returns the index of the next instance of the find casacore::String in the given casacore::String starting from the given index, or str's length if there is none. More... | |
static bool | equalsIgnoreCase (casacore::String str1, casacore::String str2) |
Returns true if the two Strings are equal (ignoring case), false otherwise. More... | |
static casacore::String | nameFromPath (casacore::String &path) |
Returns the name of the file from the given path (the last part of the path). More... | |
static casacore::String | dirFromPath (casacore::String &path) |
Returns the directory from the given path (all but the last part of the path). More... | |
static PlotLinePtr | defaultPlotLine (PlotFactoryPtr factory) |
Returns a default line to use with new plots, using the given factory (should match the implementation of defaultPlotterImplementation). More... | |
static PlotSymbolPtr | defaultPlotSymbol (PlotFactoryPtr factory) |
Returns a default plot symbol to use with new plots, using the given factory (should match the implementation of defaultPlotterImplementation). More... | |
Static Private Attributes | |
static casacore::String | AIPS_PATH |
casacore::Path to the CASA top-level directory. More... | |
static const casacore::String | OPEN_PAGE |
Common string in the TBConnection defaults. More... | |
static casacore::String | DOT_CASAPY_DIR |
Holds the absolute location of the ~/.casa directory. More... | |
Constants, defaults, and commonly-used functions for the table browser.
TBConstants contains definitions that may be common or useful to multiple classes.
Definition at line 145 of file TBConstants.h.
|
static |
Returns the path of the CASA top-level directory.
This value is retrieved from the environment variables the first time it is called, and then returns the stored result on subsequent calls.
|
static |
Unsupported types static const casacore::String TYPE_USHORT; static const casacore::String TYPE_ARRAY_USHORT; static const casacore::String TYPE_OTHER;.
Return a vector containing all the valid data types.
|
static |
Returns the value type from the given array type.
For example, arrayType(TYPE_ARRAY_STRING) = TYPE_STRING.
|
static |
Return a vector containing all the valid array data types.
|
static |
Converts the given casacore::String into its double representation.
Returns the result of sscanf.
|
static |
Converts the given casacore::String into its float representation.
Returns the result of sscanf.
|
static |
Converts the given casacore::String into its int representation.
Returns the result of sscanf.
|
static |
Converts the given casacore::String into its short int representation.
Returns the result of sscanf.
|
static |
Converts the given casacore::String into its unsigned int representation.
Returns the result of sscanf.
|
static |
Returns the display value of the given BooleanFormat.
|
static |
Returns the display value of the given Comparator.
|
static |
Converts the given casacore::String in date format (year-month-day-hour:min:sec) to its double representation.
The double returned is in modified julian seconds.
|
static |
Converts the given double into a casacore::String in date format (year-month-day-hour:min:sec).
The input double should be in modified julian seconds.
|
static |
Returns true if the given casacore::String contains a valid date format, false otherwise.
A valid date format has y, m, d, n, and s appear exactly once. y = year, m = month, d = day of month, n = minute s = second; all fields are integers.
|
static |
Returns a default line to use with new plots, using the given factory (should match the implementation of defaultPlotterImplementation).
|
static |
Returns a default plot symbol to use with new plots, using the given factory (should match the implementation of defaultPlotterImplementation).
|
static |
Returns the directory from the given path (all but the last part of the path).
|
static |
Returns the absolute path of the ~/.casa directory.
This value is retrieved from the environment variables the first time it is called, and then returns the stored result on subsequent calls.
|
static |
Print the given message to standard out with the given indentation level, IF the message's level is at or below the current debugThreshold.
|
static |
Converts the given double into its casacore::String representation and returns it.
|
static |
Returns true if the two Strings are equal (ignoring case), false otherwise.
|
static |
Returns the index of the next instance of the find casacore::String in the given casacore::String starting from the given index, or str's length if there is none.
|
static |
Returns the index of the next instance of a whitespace character in the given casacore::String from the given index, or the string's length if there is none.
|
static |
Formats the given value for the given data type and returns the formatted value.
|
static |
Converts the given float into its casacore::String representation and returns it.
|
static |
Increments the given dimension, using the given shape as a maximum.
|
static |
Increments the given dimension, using the given shape as a maximum.
|
static |
Inserts the given widget into the given placeholder frame.
|
static |
Inserts the given layout into the given placeholder frame.
|
static |
Converts a vector<int> to an IPosition.
|
static |
Converts an casacore::IPosition to a vector<int>.
|
static |
Returns true if the given char is a whitespace, false otherwise.
|
static |
Converts the given int into its casacore::String representation and returns it.
|
static |
Returns the name of the file from the given path (the last part of the path).
|
static |
Return a vector containing all the valid non-array data types.
|
static |
Rounds the given double to the nearest int and returns it.
|
static |
Converts the given short int into its casacore::String representation and returns it.
|
static |
Returns the BooleanFormat corresponding to the given display value.
|
static |
Returns the Comparator corresponding to the given display value.
|
static |
Trims the given casacore::String of its leading and trailing whitespace using casacore::String::erase().
|
static |
Converts a casacore::String in complex format (a,b) into a pair of doubles.
|
static |
Converts all upper-case letters to lower-case letters in the given String.
|
static |
Returns true if the given type is an array type, false otherwise.
|
static |
Retruns true if the given type is a complex or array of complex types, false otherwise.
|
static |
Returns true if the given type can be used as an index (i.e., integer-like), false otherwise.
|
static |
Returns true if the given type is numberable, false otherwise.
|
static |
Returns true if the given type is plottable, false otherwise.
|
static |
Returns true if the given type is a table type, false otherwise.
|
static |
Convert a CASA DataType enum to its casacore::String equivalent.
|
static |
Returns a human-readable name for the given type.
|
static |
Converts the given unsigned int into its casacore::String representation and returns it.
|
static |
Returns true if the given value is valid for the given type, false otherwise.
|
static |
Converts the given value of the given type to a double and return it.
Returns -1 for invalid doubles.
|
static |
Converts the given type into its corresponding VOTable type.
See http://www.ivoa.net/Documents/REC/VOTable/VOTable-20040811.html#ToC11
|
static |
Converts a char* to an XMLCh*.
See XMLString::transcode().
|
static |
Converts a casacore::String to an XMLCh*.
See XMLString::transcode().
|
static |
Converts an XMLCh* to a String.
See XMLString::transcode().
|
static |
Converts a const XMLCh* to a String.
See XMLString::transcode().
|
staticprivate |
casacore::Path to the CASA top-level directory.
Definition at line 600 of file TBConstants.h.
|
static |
casacore::String used in parsing arrays.
Definition at line 364 of file TBConstants.h.
|
static |
The comments for casacore::Double fields that indicate that they should be interpreted as a date.
Definition at line 288 of file TBConstants.h.
|
static |
Definition at line 289 of file TBConstants.h.
|
static |
Definition at line 290 of file TBConstants.h.
|
static |
Definition at line 157 of file TBConstants.h.
|
static |
Definition at line 155 of file TBConstants.h.
|
static |
Definition at line 156 of file TBConstants.h.
|
static |
Debug levels.
Definition at line 154 of file TBConstants.h.
|
static |
The current debug level.
Definition at line 150 of file TBConstants.h.
|
static |
Holds the default number of decimals displayed in a date.
Definition at line 352 of file TBConstants.h.
|
static |
Holds the default number of decimals displayed in a number.
Definition at line 349 of file TBConstants.h.
|
static |
The default number of rows to load at a time while exporting.
Definition at line 171 of file TBConstants.h.
|
static |
Number of rows in an embedded record widget to show by default.
Definition at line 209 of file TBConstants.h.
|
static |
The default row interval for plotting.
Definition at line 180 of file TBConstants.h.
|
static |
The default number of rows to load from the table at a time.
Definition at line 168 of file TBConstants.h.
|
static |
Plotting defaults.
The default plotter implementation for the browser.
Definition at line 535 of file TBConstants.h.
|
staticprivate |
Holds the absolute location of the ~/.casa directory.
Definition at line 606 of file TBConstants.h.
|
static |
Error text that is thrown/returned on an empty table or row.
Definition at line 405 of file TBConstants.h.
|
static |
Constants for the help system.
Definition at line 518 of file TBConstants.h.
|
static |
Definition at line 519 of file TBConstants.h.
|
static |
Definition at line 520 of file TBConstants.h.
|
static |
Definition at line 522 of file TBConstants.h.
|
static |
Definition at line 524 of file TBConstants.h.
|
static |
Definition at line 521 of file TBConstants.h.
|
static |
Definition at line 525 of file TBConstants.h.
|
static |
Definition at line 523 of file TBConstants.h.
|
static |
The maximum number of actions to keep in action lists.
Definition at line 177 of file TBConstants.h.
|
static |
The maximum number of rows to load from the table at a time.
Definition at line 174 of file TBConstants.h.
|
staticprivate |
Common string in the TBConnection defaults.
Definition at line 603 of file TBConstants.h.
|
static |
Definition at line 504 of file TBConstants.h.
|
static |
Definition at line 507 of file TBConstants.h.
|
static |
Definition at line 506 of file TBConstants.h.
|
static |
Definition at line 501 of file TBConstants.h.
|
static |
Help descriptions used by TBConnection.
Definition at line 499 of file TBConstants.h.
|
static |
Definition at line 503 of file TBConstants.h.
|
static |
Definition at line 510 of file TBConstants.h.
|
static |
Definition at line 502 of file TBConstants.h.
|
static |
Definition at line 500 of file TBConstants.h.
|
static |
Definition at line 508 of file TBConstants.h.
|
static |
Definition at line 509 of file TBConstants.h.
|
static |
Definition at line 505 of file TBConstants.h.
|
static |
Definition at line 185 of file TBConstants.h.
|
static |
Definition at line 187 of file TBConstants.h.
|
static |
Kinds of queries that can be sent to the table through the TBXMLDriver.
Definition at line 184 of file TBConstants.h.
|
static |
Definition at line 186 of file TBConstants.h.
|
static |
Definition at line 205 of file TBConstants.h.
|
static |
|
static |
Definition at line 264 of file TBConstants.h.
Referenced by casa::TBArrayDataBool::getType().
|
static |
Definition at line 265 of file TBConstants.h.
Referenced by casa::TBArrayDataChar::getType().
|
static |
Definition at line 268 of file TBConstants.h.
Referenced by casa::TBArrayDataComplex::getType().
|
static |
Definition at line 269 of file TBConstants.h.
Referenced by casa::TBArrayDataDComplex::getType().
|
static |
Definition at line 260 of file TBConstants.h.
Referenced by casa::TBArrayDataDouble::getType().
|
static |
Definition at line 261 of file TBConstants.h.
Referenced by casa::TBArrayDataFloat::getType().
|
static |
Definition at line 262 of file TBConstants.h.
Referenced by casa::TBArrayDataInt::getType().
|
static |
Definition at line 267 of file TBConstants.h.
Referenced by casa::TBArrayDataShort::getType().
|
static |
Definition at line 259 of file TBConstants.h.
Referenced by casa::TBArrayDataString::getType().
|
static |
Definition at line 266 of file TBConstants.h.
Referenced by casa::TBArrayDataUChar::getType().
|
static |
Definition at line 263 of file TBConstants.h.
Referenced by casa::TBArrayDataUInt::getType().
|
static |
Definition at line 249 of file TBConstants.h.
Referenced by casa::TBDataBool::getType().
|
static |
Definition at line 250 of file TBConstants.h.
Referenced by casa::TBDataChar::getType().
|
static |
Definition at line 253 of file TBConstants.h.
Referenced by casa::TBDataComplex::getType().
|
static |
Definition at line 257 of file TBConstants.h.
Referenced by casa::TBDataDate::getType().
|
static |
Definition at line 254 of file TBConstants.h.
Referenced by casa::TBDataDComplex::getType().
|
static |
Definition at line 245 of file TBConstants.h.
Referenced by casa::TBDataDouble::getType().
|
static |
Definition at line 246 of file TBConstants.h.
Referenced by casa::TBDataFloat::getType().
|
static |
Definition at line 247 of file TBConstants.h.
Referenced by casa::TBDataInt::getType().
|
static |
Definition at line 256 of file TBConstants.h.
Referenced by casa::TBDataRecord::getType().
|
static |
Definition at line 252 of file TBConstants.h.
Referenced by casa::TBDataShort::getType().
|
static |
casacore::Table data types.
Definition at line 244 of file TBConstants.h.
Referenced by casa::TBDataString::getType().
|
static |
Definition at line 255 of file TBConstants.h.
Referenced by casa::TBDataTable::getType().
|
static |
Definition at line 251 of file TBConstants.h.
Referenced by casa::TBDataUChar::getType().
|
static |
Definition at line 248 of file TBConstants.h.
Referenced by casa::TBDataUInt::getType().
|
static |
Definition at line 553 of file TBConstants.h.
|
static |
Definition at line 567 of file TBConstants.h.
|
static |
Definition at line 568 of file TBConstants.h.
|
static |
Definition at line 574 of file TBConstants.h.
|
static |
Definition at line 570 of file TBConstants.h.
|
static |
Definition at line 569 of file TBConstants.h.
|
static |
Definition at line 573 of file TBConstants.h.
|
static |
Definition at line 575 of file TBConstants.h.
|
static |
Definition at line 571 of file TBConstants.h.
|
static |
Definition at line 572 of file TBConstants.h.
|
static |
Definition at line 577 of file TBConstants.h.
|
static |
Definition at line 584 of file TBConstants.h.
|
static |
Definition at line 581 of file TBConstants.h.
|
static |
Definition at line 589 of file TBConstants.h.
|
static |
Definition at line 578 of file TBConstants.h.
|
static |
Definition at line 586 of file TBConstants.h.
|
static |
Definition at line 579 of file TBConstants.h.
|
static |
Definition at line 582 of file TBConstants.h.
|
static |
Definition at line 587 of file TBConstants.h.
|
static |
Definition at line 585 of file TBConstants.h.
|
static |
Definition at line 590 of file TBConstants.h.
|
static |
Definition at line 580 of file TBConstants.h.
|
static |
Definition at line 588 of file TBConstants.h.
|
static |
Definition at line 592 of file TBConstants.h.
|
static |
Definition at line 591 of file TBConstants.h.
|
static |
Definition at line 583 of file TBConstants.h.
|
static |
Definition at line 576 of file TBConstants.h.
|
static |
Definition at line 561 of file TBConstants.h.
|
static |
Definition at line 562 of file TBConstants.h.
|
static |
Definition at line 556 of file TBConstants.h.
|
static |
Definition at line 555 of file TBConstants.h.
|
static |
Definition at line 558 of file TBConstants.h.
|
static |
Definition at line 594 of file TBConstants.h.
|
static |
Definition at line 564 of file TBConstants.h.
|
static |
Definition at line 565 of file TBConstants.h.
|
static |
Definition at line 566 of file TBConstants.h.
|
static |
View constants.
Definition at line 551 of file TBConstants.h.
|
static |
Definition at line 559 of file TBConstants.h.
|
static |
Definition at line 593 of file TBConstants.h.
|
static |
Definition at line 595 of file TBConstants.h.
|
static |
Definition at line 557 of file TBConstants.h.
|
static |
Definition at line 560 of file TBConstants.h.
|
static |
Definition at line 554 of file TBConstants.h.
|
static |
Definition at line 563 of file TBConstants.h.
|
static |
Definition at line 394 of file TBConstants.h.
|
static |
Definition at line 377 of file TBConstants.h.
|
static |
Definition at line 379 of file TBConstants.h.
|
static |
Definition at line 386 of file TBConstants.h.
|
static |
Definition at line 375 of file TBConstants.h.
|
static |
Definition at line 395 of file TBConstants.h.
|
static |
Definition at line 400 of file TBConstants.h.
|
static |
Definition at line 399 of file TBConstants.h.
|
static |
Definition at line 396 of file TBConstants.h.
|
static |
Definition at line 398 of file TBConstants.h.
|
static |
Definition at line 397 of file TBConstants.h.
|
static |
Definition at line 401 of file TBConstants.h.
|
static |
Definition at line 390 of file TBConstants.h.
|
static |
Definition at line 383 of file TBConstants.h.
|
static |
Definition at line 376 of file TBConstants.h.
|
static |
Definition at line 391 of file TBConstants.h.
|
static |
Definition at line 392 of file TBConstants.h.
|
static |
Definition at line 393 of file TBConstants.h.
|
static |
Definition at line 388 of file TBConstants.h.
|
static |
Definition at line 384 of file TBConstants.h.
|
static |
Definition at line 372 of file TBConstants.h.
|
static |
Definition at line 387 of file TBConstants.h.
|
static |
Definition at line 378 of file TBConstants.h.
|
static |
Definition at line 373 of file TBConstants.h.
|
static |
Definition at line 380 of file TBConstants.h.
|
static |
Definition at line 382 of file TBConstants.h.
|
static |
Definition at line 374 of file TBConstants.h.
|
static |
Definition at line 381 of file TBConstants.h.
|
static |
Definition at line 385 of file TBConstants.h.
|
static |
XML token names that are used in table parsing.
Definition at line 371 of file TBConstants.h.