parameters.h
Go to the documentation of this file.
1 
11 #pragma once
12 
13 #include <string>
14 #include <vector>
15 #include "interop/util/exception.h"
18 
19 #ifdef _MSC_VER
20 #pragma warning(push)
21 #pragma warning(disable:4290)// MSVC warns that it ignores the exception specification.
22 #endif
23 
24 namespace illumina { namespace interop { namespace model { namespace run
25 {
26 
39  class parameters
40  {
41  public:
43  typedef ::uint32_t uint_t;
46 
47  public:
53  parameters(const uint_t version = 0,
54  const instrument_type_t instrument_type = constants::UnknownInstrument
55  ) :
56  m_version(version),
57  m_instrument_type(instrument_type)
58  {
59  }
60 
61  public:
62 
75  instrument_type_t instrument_type() const
76  { return m_instrument_type; }
77 
82  uint_t version() const
83  { return m_version; }
84 
85  public:
90  void read(const std::string &run_folder) INTEROP_THROW_SPEC((xml::xml_file_not_found_exception,
95 
100  void read_file(const std::string &filename) INTEROP_THROW_SPEC((xml::xml_file_not_found_exception,
105 
117  private:
118  void set_instrument_id(std::string &application_name, std::string &multi_surface);
119 
120  private:
121  uint_t m_version;
122  instrument_type_t m_instrument_type;
123  };
124 }}}}
125 #ifdef _MSC_VER
126 #pragma warning(pop)
127 #endif
128 
instrument_type_t instrument_type() const
Definition: parameters.h:75
Definition: enum_description.h:15
#define INTEROP_THROW_SPEC(SPEC)
Definition: exception_specification.h:15
parameters(const uint_t version=0, const instrument_type_t instrument_type=constants::UnknownInstrument)
Definition: parameters.h:53
uint_t version() const
Definition: parameters.h:82
def read(run, valid_to_load=None, requires=None, search_paths=None, extra)
Definition: core.py:754
constants::instrument_type instrument_type_t
Definition: parameters.h:45
::uint32_t uint_t
Definition: parameters.h:43
instrument_type
Definition: enums.h:309
Enum parse(const std::string &name)
Definition: enums.h:56
Definition: xml_exceptions.h:50