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