19 #ifndef VARIANTTYPE_H_
20 #define VARIANTTYPE_H_
24 #include <boost/any.hpp>
28 #include "abstractpropertytype.h"
29 #include "abstractroutingengine.h"
30 #include "vehicleproperty.h"
50 return (other.name() == name()
51 && other.ambPropertyName() == ambPropertyName()
52 && other.sourceFilter() == sourceFilter()
53 && other.zoneFilter() == zoneFilter());
56 virtual const string signature()
58 GVariant* var = toVariant();
61 const string s = g_variant_get_type_string(var);
71 virtual VehicleProperty::Property ambPropertyName()
73 return mAmbPropertyName;
76 virtual Access access()
81 void setSourceFilter(std::string filter) { mSourceFilter = filter; }
82 void setZoneFilter(Zone::Type
zone)
90 std::string sourceFilter() {
return mSourceFilter; }
91 Zone::Type zoneFilter() {
return mZoneFilter; }
93 virtual GVariant* toVariant();
117 mValue = val->
copy();
124 if(mUpdateFrequency == 0)
126 PropertyInfo info = routingEngine->getPropertyInfo(mValue->
name, mValue->
sourceUuid);
129 mUpdateFrequency = info.updateFrequency();
131 mUpdateFrequency = -1;
140 int updateFrequency()
142 return mUpdateFrequency;
154 std::string mSourceFilter;
155 Zone::Type mZoneFilter;
156 int mUpdateFrequency;
158 string mPropertyName;
159 VehicleProperty::Property mAmbPropertyName;
168 #endif // ABSTRACTPROPERTY_H