Mantid
|
This class is used in Catalog Search service to set/get all the inputs to search for. More...
#include <CatalogSearchParam.h>
Public Member Functions | |
CatalogSearchParam () | |
constructor More... | |
const std::string & | getDatafileName () const |
Get the datafile name. More... | |
const time_t & | getEndDate () const |
Get the investigation end date. More... | |
const std::string & | getInstrument () const |
Get the instrument name. More... | |
const std::string & | getInvestigationId () const |
Get the investigation id. More... | |
const std::string & | getInvestigationName () const |
Get the name of the investigation to search for. More... | |
const std::string & | getInvestigationType () const |
Get the investigation type. More... | |
const std::string & | getInvestigatorSurName () const |
Get the investigators name. More... | |
const std::string & | getKeywords () const |
Get the keywords to search investigations for. More... | |
bool | getMyData () const |
Get the "my data only" flag. More... | |
const double & | getRunEnd () const |
Get the end run. More... | |
const double & | getRunStart () const |
Get the start run from user input. More... | |
const std::string & | getSampleName () const |
Get the sample name. More... | |
const time_t & | getStartDate () const |
Get the investigation start date. More... | |
time_t | getTimevalue (const std::string &inputDate) |
Saves the start/end date times to time_t value. More... | |
void | setDatafileName (const std::string &datafileName) |
Set the datafile name to search for. More... | |
void | setEndDate (const time_t &endDate) |
Set the end date to search for. More... | |
void | setInstrument (const std::string &instrName) |
Set the instrument to search for. More... | |
void | setInvestigationId (const std::string &) |
Set the investigation id to search for. More... | |
void | setInvestigationName (const std::string &instName) |
Set the investigation name to search for. More... | |
void | setInvestigationType (const std::string &invstType) |
Set the investigation type to search for. More... | |
void | setInvestigatorSurName (const std::string &investigatorName) |
Set the investigators name to search for. More... | |
void | setKeywords (const std::string &keywords) |
Set the keywords to search for. More... | |
void | setMyData (bool flag) |
Set the "my data only" flag to search only user's data if true. More... | |
void | setRunEnd (const double &endRun) |
Set the end run to search for. More... | |
void | setRunStart (const double &startRun) |
Set the start run to search for. More... | |
void | setSampleName (const std::string &sampleName) |
Set the sample name to search for. More... | |
void | setStartDate (const time_t &startDate) |
Set the start date to search for. More... | |
Private Attributes | |
std::string | m_datafileName |
Datafile name. More... | |
time_t | m_endDate |
end date More... | |
double | m_endRun |
end run number More... | |
std::string | m_instrName |
instrument name More... | |
std::string | m_investigationId |
investigation id More... | |
std::string | m_investigationName |
investigation anme More... | |
std::string | m_investigationType |
investigation type More... | |
std::string | m_investigatorSurname |
investigator surname More... | |
std::string | m_keywords |
search keywords More... | |
bool | m_myData |
My data checkbox. More... | |
std::string | m_sampleName |
sample name More... | |
time_t | m_startDate |
start date More... | |
double | m_startRun |
start run number More... | |
This class is used in Catalog Search service to set/get all the inputs to search for.
Definition at line 20 of file CatalogSearchParam.h.
Mantid::ICat::CatalogSearchParam::CatalogSearchParam | ( | ) |
constructor
Definition at line 13 of file CatalogSearchParam.cpp.
const std::string & Mantid::ICat::CatalogSearchParam::getDatafileName | ( | ) | const |
Get the datafile name.
Gets the input from the datafile name field.
Definition at line 141 of file CatalogSearchParam.cpp.
References m_datafileName.
Referenced by Mantid::ICat::ICat4Catalog::buildSearchQuery().
const time_t & Mantid::ICat::CatalogSearchParam::getEndDate | ( | ) | const |
Get the investigation end date.
Gets the input from the end date name field.
Definition at line 123 of file CatalogSearchParam.cpp.
References m_endDate.
Referenced by Mantid::ICat::ICat4Catalog::buildSearchQuery().
const std::string & Mantid::ICat::CatalogSearchParam::getInstrument | ( | ) | const |
Get the instrument name.
Gets the input from the instrument name field.
Definition at line 111 of file CatalogSearchParam.cpp.
References m_instrName.
Referenced by Mantid::ICat::ICat4Catalog::buildSearchQuery().
const std::string & Mantid::ICat::CatalogSearchParam::getInvestigationId | ( | ) | const |
Get the investigation id.
Gets the input from the investigation id field.
Definition at line 171 of file CatalogSearchParam.cpp.
References m_investigationId.
Referenced by Mantid::ICat::ICat4Catalog::buildSearchQuery().
const std::string & Mantid::ICat::CatalogSearchParam::getInvestigationName | ( | ) | const |
Get the name of the investigation to search for.
Gets the input from the investigation name field.
Definition at line 135 of file CatalogSearchParam.cpp.
References m_investigationName.
Referenced by Mantid::ICat::ICat4Catalog::buildSearchQuery().
const std::string & Mantid::ICat::CatalogSearchParam::getInvestigationType | ( | ) | const |
Get the investigation type.
Gets the input from the investigation type field.
Definition at line 159 of file CatalogSearchParam.cpp.
References m_investigationType.
Referenced by Mantid::ICat::ICat4Catalog::buildSearchQuery().
const std::string & Mantid::ICat::CatalogSearchParam::getInvestigatorSurName | ( | ) | const |
Get the investigators name.
Gets the input from the investigator name field.
Definition at line 153 of file CatalogSearchParam.cpp.
References m_investigatorSurname.
Referenced by Mantid::ICat::ICat4Catalog::buildSearchQuery().
const std::string & Mantid::ICat::CatalogSearchParam::getKeywords | ( | ) | const |
Get the keywords to search investigations for.
Gets the input from the keywords name field.
Definition at line 129 of file CatalogSearchParam.cpp.
References m_keywords.
Referenced by Mantid::ICat::ICat4Catalog::buildSearchQuery().
bool Mantid::ICat::CatalogSearchParam::getMyData | ( | ) | const |
Get the "my data only" flag.
Is "My data only" selected?
Definition at line 165 of file CatalogSearchParam.cpp.
References m_myData.
Referenced by Mantid::ICat::ICat4Catalog::buildSearchQuery().
const double & Mantid::ICat::CatalogSearchParam::getRunEnd | ( | ) | const |
Get the end run.
Gets the input from the investigation name field.
Definition at line 105 of file CatalogSearchParam.cpp.
References m_endRun.
Referenced by Mantid::ICat::ICat4Catalog::buildSearchQuery().
const double & Mantid::ICat::CatalogSearchParam::getRunStart | ( | ) | const |
Get the start run from user input.
This method returns the start run number.
Definition at line 99 of file CatalogSearchParam.cpp.
References m_startRun.
Referenced by Mantid::ICat::ICat4Catalog::buildSearchQuery().
const std::string & Mantid::ICat::CatalogSearchParam::getSampleName | ( | ) | const |
Get the sample name.
Gets the input from the sample name field.
Definition at line 147 of file CatalogSearchParam.cpp.
References m_sampleName.
Referenced by Mantid::ICat::ICat4Catalog::buildSearchQuery().
const time_t & Mantid::ICat::CatalogSearchParam::getStartDate | ( | ) | const |
Get the investigation start date.
Gets the input from the start date name field.
Definition at line 117 of file CatalogSearchParam.cpp.
References m_startDate.
Referenced by Mantid::ICat::ICat4Catalog::buildSearchQuery().
time_t Mantid::ICat::CatalogSearchParam::getTimevalue | ( | const std::string & | inputDate | ) |
Saves the start/end date times to time_t value.
Creates a time_t value from an input date ("23/06/2003").
inputDate | :: string containing the date. |
Definition at line 178 of file CatalogSearchParam.cpp.
Referenced by Mantid::ICat::CatalogSearch::getInputProperties().
void Mantid::ICat::CatalogSearchParam::setDatafileName | ( | const std::string & | datafileName | ) |
Set the datafile name to search for.
This method sets data file name used for searching.
datafileName | :: data file name to search for |
Definition at line 61 of file CatalogSearchParam.cpp.
References m_datafileName.
Referenced by Mantid::ICat::CatalogSearch::getInputProperties().
void Mantid::ICat::CatalogSearchParam::setEndDate | ( | const time_t & | endDate | ) |
Set the end date to search for.
This method sets the end date.
endDate | :: end date for search |
Definition at line 43 of file CatalogSearchParam.cpp.
References m_endDate.
Referenced by Mantid::ICat::CatalogSearch::getInputProperties().
void Mantid::ICat::CatalogSearchParam::setInstrument | ( | const std::string & | instrName | ) |
Set the instrument to search for.
This method sets instrument name.
instrName | :: name of the instrument |
Definition at line 31 of file CatalogSearchParam.cpp.
References m_instrName.
Referenced by Mantid::ICat::CatalogSearch::getInputProperties().
void Mantid::ICat::CatalogSearchParam::setInvestigationId | ( | const std::string & | investigationId | ) |
Set the investigation id to search for.
Sets the investigation id to search for.
investigationId | :: investigation id to search for. |
Definition at line 93 of file CatalogSearchParam.cpp.
References m_investigationId.
Referenced by Mantid::ICat::CatalogSearch::getInputProperties().
void Mantid::ICat::CatalogSearchParam::setInvestigationName | ( | const std::string & | instName | ) |
Set the investigation name to search for.
This method sets investigationName used for searching.
instName | :: name of the investigation |
Definition at line 55 of file CatalogSearchParam.cpp.
References m_investigationName.
Referenced by Mantid::ICat::CatalogSearch::getInputProperties().
void Mantid::ICat::CatalogSearchParam::setInvestigationType | ( | const std::string & | invstType | ) |
Set the investigation type to search for.
This method sets Investigation Type.
invstType | :: type of investigation |
Definition at line 81 of file CatalogSearchParam.cpp.
References m_investigationType.
Referenced by Mantid::ICat::CatalogSearch::getInputProperties().
void Mantid::ICat::CatalogSearchParam::setInvestigatorSurName | ( | const std::string & | investigatorName | ) |
Set the investigators name to search for.
This method sets Investigator name.
investigatorName | :: name of the investigator |
Definition at line 73 of file CatalogSearchParam.cpp.
References m_investigatorSurname.
Referenced by Mantid::ICat::CatalogSearch::getInputProperties().
void Mantid::ICat::CatalogSearchParam::setKeywords | ( | const std::string & | keywords | ) |
Set the keywords to search for.
This method sets the keywords to search for.
keywords | :: keywords used for search |
Definition at line 49 of file CatalogSearchParam.cpp.
References m_keywords.
Referenced by Mantid::ICat::CatalogSearch::getInputProperties().
void Mantid::ICat::CatalogSearchParam::setMyData | ( | bool | flag | ) |
Set the "my data only" flag to search only user's data if true.
Sets the "My data only" checkbox.
flag | :: Flag to search in "My data" only. |
Definition at line 87 of file CatalogSearchParam.cpp.
References m_myData.
Referenced by Mantid::ICat::CatalogSearch::getInputProperties().
void Mantid::ICat::CatalogSearchParam::setRunEnd | ( | const double & | endRun | ) |
Set the end run to search for.
This method sets end date.
endRun | :: end run number |
Definition at line 25 of file CatalogSearchParam.cpp.
References m_endRun.
Referenced by Mantid::ICat::CatalogSearch::setRunRanges().
void Mantid::ICat::CatalogSearchParam::setRunStart | ( | const double & | startRun | ) |
Set the start run to search for.
This method sets start date.
startRun | :: start run number |
Definition at line 19 of file CatalogSearchParam.cpp.
References m_startRun.
Referenced by Mantid::ICat::CatalogSearch::setRunRanges().
void Mantid::ICat::CatalogSearchParam::setSampleName | ( | const std::string & | sampleName | ) |
Set the sample name to search for.
This method sets sample used for searching.
sampleName | :: name of the sample |
Definition at line 67 of file CatalogSearchParam.cpp.
References m_sampleName.
Referenced by Mantid::ICat::CatalogSearch::getInputProperties().
void Mantid::ICat::CatalogSearchParam::setStartDate | ( | const time_t & | startDate | ) |
Set the start date to search for.
This method sets the start date.
startDate | :: start date for search |
Definition at line 37 of file CatalogSearchParam.cpp.
References m_startDate.
Referenced by Mantid::ICat::CatalogSearch::getInputProperties().
|
private |
Datafile name.
Definition at line 97 of file CatalogSearchParam.h.
Referenced by getDatafileName(), and setDatafileName().
|
private |
end date
Definition at line 93 of file CatalogSearchParam.h.
Referenced by getEndDate(), and setEndDate().
|
private |
end run number
Definition at line 85 of file CatalogSearchParam.h.
Referenced by getRunEnd(), and setRunEnd().
|
private |
instrument name
Definition at line 87 of file CatalogSearchParam.h.
Referenced by getInstrument(), and setInstrument().
|
private |
investigation id
Definition at line 107 of file CatalogSearchParam.h.
Referenced by getInvestigationId(), and setInvestigationId().
|
private |
investigation anme
Definition at line 95 of file CatalogSearchParam.h.
Referenced by getInvestigationName(), and setInvestigationName().
|
private |
investigation type
Definition at line 103 of file CatalogSearchParam.h.
Referenced by getInvestigationType(), and setInvestigationType().
|
private |
investigator surname
Definition at line 101 of file CatalogSearchParam.h.
Referenced by getInvestigatorSurName(), and setInvestigatorSurName().
|
private |
search keywords
Definition at line 89 of file CatalogSearchParam.h.
Referenced by getKeywords(), and setKeywords().
|
private |
My data checkbox.
Definition at line 105 of file CatalogSearchParam.h.
Referenced by getMyData(), and setMyData().
|
private |
sample name
Definition at line 99 of file CatalogSearchParam.h.
Referenced by getSampleName(), and setSampleName().
|
private |
start date
Definition at line 91 of file CatalogSearchParam.h.
Referenced by getStartDate(), and setStartDate().
|
private |
start run number
Definition at line 83 of file CatalogSearchParam.h.
Referenced by getRunStart(), and setRunStart().