Mantid
Loading...
Searching...
No Matches
CatalogSearchParam.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2011 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
9#include <stdexcept>
10#include <string>
11
12#include "MantidICat/DllConfig.h"
13
14namespace Mantid {
15namespace ICat {
20class MANTID_ICAT_DLL CatalogSearchParam {
21public:
24
26 void setRunStart(const double &startRun);
28 void setRunEnd(const double &endRun);
30 void setInstrument(const std::string &instrName);
32 void setStartDate(const time_t &startDate);
34 void setEndDate(const time_t &endDate);
36 void setKeywords(const std::string &keywords);
38 void setInvestigationName(const std::string &instName);
40 void setDatafileName(const std::string &datafileName);
42 void setSampleName(const std::string &sampleName);
44 void setInvestigatorSurName(const std::string &investigatorName);
46 void setInvestigationType(const std::string &invstType);
48 void setMyData(bool flag);
50 void setInvestigationId(const std::string &);
51
53 const double &getRunStart() const;
55 const double &getRunEnd() const;
57 const std::string &getInstrument() const;
59 const time_t &getStartDate() const;
61 const time_t &getEndDate() const;
63 const std::string &getKeywords() const;
65 const std::string &getInvestigationName() const;
67 const std::string &getDatafileName() const;
69 const std::string &getSampleName() const;
71 const std::string &getInvestigatorSurName() const;
73 const std::string &getInvestigationType() const;
75 bool getMyData() const;
77 const std::string &getInvestigationId() const;
79 time_t getTimevalue(const std::string &inputDate);
80
81private:
83 double m_startRun;
85 double m_endRun;
87 std::string m_instrName;
89 std::string m_keywords;
93 time_t m_endDate;
97 std::string m_datafileName;
99 std::string m_sampleName;
107 std::string m_investigationId;
108};
109} // namespace ICat
110} // namespace Mantid
This class is used in Catalog Search service to set/get all the inputs to search for.
std::string m_investigationName
investigation anme
std::string m_instrName
instrument name
std::string m_keywords
search keywords
std::string m_datafileName
Datafile name.
double m_startRun
start run number
std::string m_sampleName
sample name
std::string m_investigationType
investigation type
std::string m_investigatorSurname
investigator surname
std::string m_investigationId
investigation id
Helper class which provides the Collimation Length for SANS instruments.