C++: Add missing classes to classmapper
authorjani <jani@asema.com>
Fri, 18 Oct 2019 00:05:52 +0000 (03:05 +0300)
committerjani <jani@asema.com>
Fri, 18 Oct 2019 00:05:52 +0000 (03:05 +0300)
Common/C++/SmartAPI/smartapi/common/ClassMapper.h

index 44c934ca730c9de2076091d958b01422ef9aec58..9939d4fd5175644692482bffb749d806c8276087 100644 (file)
@@ -75,6 +75,7 @@
 #include "smartapi/model/TimeSeries.h"
 #include "smartapi/model/Transaction.h"
 #include "smartapi/model/TypeAndQuantityNode.h"
+#include "smartapi/model/Validity.h"
 #include "smartapi/model/ValueObject.h"
 #include "smartapi/model/Velocity.h"
 #include "smartapi/model/Waypoint.h"
@@ -170,6 +171,7 @@ public:
                if (type == RESOURCE__TEMPORALCONTEXT) return new TemporalContext();
                if (type == RESOURCE__TIMESERIES) return new TimeSeries();
                if (type == RESOURCE__TYPEANDQUANTITYNODE) return new TypeAndQuantityNode();
+               if (type == RESOURCE__VALIDITY) return new Validity();
                if (type == RESOURCE__VALUEOBJECT) return new ValueObject();
                if (type == RESOURCE__WAYPOINT) return new Waypoint();
                if (type == RESOURCE__WAYPOINTS) return new Waypoints();
@@ -252,6 +254,7 @@ public:
                if (type == RESOURCE__TEMPORALCONTEXT) return new TemporalContext((TemporalContext*)o);
                if (type == RESOURCE__TIMESERIES) return new TimeSeries((TimeSeries*)o);
                if (type == RESOURCE__TYPEANDQUANTITYNODE) return new TypeAndQuantityNode((TypeAndQuantityNode*)o);
+               if (type == RESOURCE__VALIDITY) return new Validity((Validity*)o);
                if (type == RESOURCE__VALUEOBJECT) return new ValueObject((ValueObject*)o);
                if (type == RESOURCE__WAYPOINT) return new Waypoint((Waypoint*)o);
                if (type == RESOURCE__WAYPOINTS) return new Waypoints((Waypoints*)o);
@@ -334,6 +337,7 @@ public:
                if (TemporalContext* oo         = dynamic_cast<TemporalContext*>(o)) return oo;
                if (TimeSeries* oo                      = dynamic_cast<TimeSeries*>(o)) return oo;
                if (TypeAndQuantityNode* oo = dynamic_cast<TypeAndQuantityNode*>(o)) return oo;
+               if (Validity* oo                        = dynamic_cast<Validity*>(o)) return oo;
                if (ValueObject* oo             = dynamic_cast<ValueObject*>(o)) return oo;
                if (Waypoint* oo                        = dynamic_cast<Waypoint*>(o)) return oo;
                if (Waypoints* oo                       = dynamic_cast<Waypoints*>(o)) return oo;
@@ -411,6 +415,7 @@ public:
                if (TemporalContext* oo         = dynamic_cast<TemporalContext*>(o)) return oo->serialize(model);
                if (TimeSeries* oo                      = dynamic_cast<TimeSeries*>(o)) return oo->serialize(model);
                if (TypeAndQuantityNode* oo = dynamic_cast<TypeAndQuantityNode*>(o)) return oo->serialize(model);
+               if (Validity* oo                        = dynamic_cast<Validity*>(o)) return oo->serialize(model);
                if (ValueObject* oo             = dynamic_cast<ValueObject*>(o)) return oo->serialize(model);
                if (Waypoint* oo                        = dynamic_cast<Waypoint*>(o)) return oo->serialize(model);
                if (Waypoints* oo                       = dynamic_cast<Waypoints*>(o)) return oo->serialize(model);