/** * @file ism.hpp * @brief DDS-Stub-Header für InfrastructureManagement * * Dieser Header ersetzt die von RTI DDS Generator erzeugten Typen. */ #ifndef ISM_HPP #define ISM_HPP #include #include #include "InfrastructureManagement/ism_enums.hpp" #include "ParticipantManagement/ppm.hpp" namespace InfrastructureManagement { // Core namespace mit GeoPosition und RelativePosition namespace Core { class GeoPosition { public: GeoPosition() : latitude_(0.0), longitude_(0.0), altitude_(0.0) {} double latitude() const { return latitude_; } double longitude() const { return longitude_; } double altitude() const { return altitude_; } void latitude(double v) { latitude_ = v; } void longitude(double v) { longitude_ = v; } void altitude(double v) { altitude_ = v; } private: double latitude_; double longitude_; double altitude_; }; class RelativePosition { public: RelativePosition() : x_(0.0), y_(0.0), z_(0.0) {} double x() const { return x_; } double y() const { return y_; } double z() const { return z_; } void x(double v) { x_ = v; } void y(double v) { y_ = v; } void z(double v) { z_ = v; } private: double x_; double y_; double z_; }; } // namespace Core // StructureElement Stub-Klasse class StructureElement { public: StructureElement() : id_(0), mainStructureElementId_(0), mountingPointTypeId_(MountingPointType::Undefined) {} int32_t id() const { return id_; } void id(int32_t v) { id_ = v; } int32_t mainStructureElementId() const { return mainStructureElementId_; } void mainStructureElementId(int32_t v) { mainStructureElementId_ = v; } MountingPointType mountingPointTypeId() const { return mountingPointTypeId_; } void mountingPointTypeId(MountingPointType v) { mountingPointTypeId_ = v; } Core::GeoPosition geoPosition() const { return geoPosition_; } void geoPosition(const Core::GeoPosition& v) { geoPosition_ = v; } Core::RelativePosition relPosition() const { return relPosition_; } void relPosition(const Core::RelativePosition& v) { relPosition_ = v; } std::string properties() const { return properties_; } void properties(const std::string& v) { properties_ = v; } std::string name() const { return name_; } void name(const std::string& v) { name_ = v; } std::string displayName() const { return displayName_; } void displayName(const std::string& v) { displayName_ = v; } private: int32_t id_; int32_t mainStructureElementId_; MountingPointType mountingPointTypeId_; Core::GeoPosition geoPosition_; Core::RelativePosition relPosition_; std::string properties_; std::string name_; std::string displayName_; }; } // namespace InfrastructureManagement #endif // ISM_HPP