automotive-message-broker  0.12
 All Classes Functions Variables Typedefs Enumerations Enumerator Pages
propertyinfo.hpp
1 #ifndef PROPERTYINFO_H_
2 #define PROPERTYINFO_H_
3 
4 #include "abstractpropertytype.h"
5 #include <list>
6 
8 {
9 public:
10 
11 
15  PropertyInfo(): mUpdateFrequency(0), mIsValid(false) {}
16 
21  PropertyInfo(uint updateFreq, std::list<Zone::Type> zonesList)
22  :mUpdateFrequency(updateFreq), mZones(zonesList), mIsValid(true)
23  {
24 
25  }
26 
27 
33  {
34  return mUpdateFrequency;
35  }
36 
41  std::list<Zone::Type> zones()
42  {
43  return mZones;
44  }
45 
51  bool isValid()
52  {
53  return mIsValid;
54  }
55 
56 
61  {
62  return PropertyInfo();
63  }
64 
65 private:
66 
67  uint mUpdateFrequency;
68  std::list<Zone::Type> mZones;
69  bool mIsValid;
70 };
71 
72 
73 #endif
PropertyInfo()
Definition: propertyinfo.hpp:15
PropertyInfo(uint updateFreq, std::list< Zone::Type > zonesList)
Definition: propertyinfo.hpp:21
uint updateFrequency()
Definition: propertyinfo.hpp:32
Definition: propertyinfo.hpp:7
std::list< Zone::Type > zones()
Definition: propertyinfo.hpp:41
bool isValid()
Definition: propertyinfo.hpp:51
static PropertyInfo invalid()
Definition: propertyinfo.hpp:60