StdAir Logo  1.00.3
C++ Standard Airline IT Object Library
DoWStruct.hpp
Go to the documentation of this file.
1 #ifndef __STDAIR_BOM_DOWSTRUCT_HPP
2 #define __STDAIR_BOM_DOWSTRUCT_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STL
8 #include <string>
9 #include <vector>
10 // STDAIR
12 
13 namespace stdair {
14 
18  struct DoWStruct : public StructAbstract {
19  public:
21  typedef std::vector<bool> BooleanList_T;
22 
23  public:
24  // //////////////// Getters ///////////////
26  bool getDayOfWeek (const unsigned short i) const;
27 
29  bool getStandardDayOfWeek (const unsigned short i) const;
30 
31  public:
32  // //////////////// Setters ///////////////
34  void setDayOfWeek (const unsigned short, const bool);
35 
36  public:
37  // //////////////// Display methods ///////////////
39  const std::string describe() const;
40 
42  const std::string describeShort() const;
43 
44  public:
45  // ///////////////// Business Methods ////////////////
47  DoWStruct shift (const long&) const;
48 
50  DoWStruct intersection (const DoWStruct&) const;
51 
53  const bool isValid () const;
54 
55  public:
58  DoWStruct (const std::string& iDowString);
60  DoWStruct ();
61  DoWStruct (const DoWStruct&);
63  ~DoWStruct () { }
64 
65  private:
67  BooleanList_T _dowList;
68  };
69 
70 }
71 #endif // __STDAIR_BOM_DOWSTRUCT_HPP
void setDayOfWeek(const unsigned short, const bool)
Definition: DoWStruct.cpp:82
std::vector< bool > BooleanList_T
Definition: DoWStruct.hpp:21
Handle on the StdAir library context.
const std::string describe() const
Definition: DoWStruct.cpp:52
const bool isValid() const
Definition: DoWStruct.cpp:117
Base class for the light structures.
const std::string describeShort() const
Definition: DoWStruct.cpp:40
DoWStruct shift(const long &) const
Definition: DoWStruct.cpp:88
DoWStruct intersection(const DoWStruct &) const
Definition: DoWStruct.cpp:104
bool getStandardDayOfWeek(const unsigned short i) const
Definition: DoWStruct.cpp:71
bool getDayOfWeek(const unsigned short i) const
Definition: DoWStruct.cpp:66