|
Isis Developer Reference
|
Go to the documentation of this file.
57 LoadCSV(
const QString &base,
const HiCalConf &conf,
63 void load(
const QString &base,
const HiCalConf &conf,
70 const bool &throw_on_error =
false)
82 std::vector<QString> _history;
84 void init(
const QString &base,
const HiCalConf &conf,
86 void addHistory(
const QString &element,
const QString &desc);
87 void getKeyList(
const QString &base, std::vector<QString> &keys)
89 DbProfile ResolveKeys(
const QString &base,
const HiCalConf &conf,
91 QString ParsedKey(
const QString &key,
const HiCalConf &conf,
93 QString makeKey(
const QString &ksuffix =
"")
const;
94 QString getValue(
const QString &ksuffix =
"")
const;
96 int getAxisIndex(
const QString &name,
bool IsEqual(const QString &v1, const QString &v2="TRUE")
Shortened string equality test.
Definition: HiCalUtil.h:258
CSVAxis getColumn(int index) const
Parse and return a column specified by index order.
Definition: CSVReader.cpp:218
Parser::TokenList CSVAxis
Row/Column token list.
Definition: CSVReader.h:247
int columns() const
Determine the number of columns in the input source.
Definition: CSVReader.cpp:97
void setComment(const bool ignore=true)
Allows the user to indicate comment disposition.
Definition: CSVReader.h:313
Reads strings and parses them into tokens separated by a delimiter character.
Definition: CSVReader.h:239
QString ToString(const T &value)
Helper function to convert values to strings.
Definition: HiCalUtil.h:246
CSVAxis getRow(int index) const
Parse and return the requested row by index.
Definition: CSVReader.cpp:188
bool exists(const QString &key) const
Checks for the existance of a keyword.
Definition: DbProfile.h:115
void setHeader(const bool gotIt=true)
Allows the user to indicate header disposition.
Definition: CSVReader.h:383
TNT::Array2D< double > HiMatrix
2-D buffer
Definition: HiCalTypes.h:28
T ConfKey(const DbProfile &conf, const QString &keyname, const T &defval, int index=0)
Find a keyword in a profile using default for non-existant keywords.
Definition: HiCalUtil.h:205
File name manipulation and expansion.
Definition: FileName.h:100
void load(const QString &base, const HiCalConf &conf, const DbProfile &profile)
Definition: LoadCSV.cpp:32
HiVector getVector() const
Definition: LoadCSV.cpp:196
void setDelimiter(const char &delimiter)
Set the delimiter character that separate tokens in the strings.
Definition: CSVReader.h:400
void History(HiHistory &history) const
Definition: LoadCSV.cpp:206
void setSkipEmptyParts()
Indicate multiple occurances of delimiters are one token.
Definition: CSVReader.h:435
virtual ~LoadCSV()
Destructor.
Definition: LoadCSV.h:61
CSVAxis getHeader() const
Retrieve the header from the input source if it exists.
Definition: CSVReader.cpp:168
QString filename() const
Definition: LoadCSV.cpp:176
Definition: HiCalTypes.h:30
Provides generalized access to HiRISE calibration CSV files.
Definition: LoadCSV.h:52
int size() const
Definition: LoadCSV.cpp:180
QString expanded() const
Returns a QString of the full file name including the file path, excluding the attributes.
Definition: FileName.cpp:196
HiMatrix getMatrix() const
Definition: LoadCSV.cpp:201
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
int toInt(const QString &string)
Global function to convert from a string to an integer.
Definition: IString.cpp:93
int ToInteger(const T &value)
Helper function to convert values to Integers.
Definition: HiCalUtil.h:222
LoadCSV()
Definition: LoadCSV.cpp:24
A DbProfile is a container for access parameters to a database.
Definition: DbProfile.h:51
TNT::Array1D< double > HiVector
1-D Buffer
Definition: HiCalTypes.h:27
void read(const QString &fname)
Reads the entire contents of a file for subsequent parsing.
Definition: CSVReader.cpp:140
Isis exception class.
Definition: IException.h:91
void add(const QString &event)
Definition: HiCalTypes.h:55
const double Null
Value for an Isis Null pixel.
Definition: SpecialPixel.h:95
double ToDouble(const T &value)
Helper function to convert values to doubles.
Definition: HiCalUtil.h:234
Namespace for the standard library.
void setSkip(int nskip)
Indicate the number of lines at the top of the source to skip to data.
Definition: CSVReader.h:335
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
int rows() const
Reports the number of rows in the table.
Definition: CSVReader.h:285
bool validateSize(const int &expected, const bool &throw_on_error=false) const
Definition: LoadCSV.cpp:184
@ User
A type of error that could only have occurred due to a mistake on the user's part (e....
Definition: IException.h:126