Major Changes:
- Merged latest Qt5 devel content from dlbo (292 files changed, 7 new dirs)
- Consolidated forward-declarations and include folders
- Removed unneeded modules per Niklas' repo check list
Build System Fixes:
- Fixed CMake VERSION_GREATER syntax in ParticipantManagement/CMakeLists.txt
- Added VLC packages (libvlc-dev, vlc-plugin-base) to docker_build.sh
- Added PostgreSQL dev packages (libpq-dev, postgresql-server-dev-all) to Dockerfile
- Fixed locale warnings (ANSI_X3.4-1968 → C.UTF-8)
- Fixed ArcGIS SDK path warnings when BUILD_ARCGIS=OFF
Code Generation Fixes:
- Fixed IDL enum collisions (PortType→CorePortType/DdsutPortType, PdmEventType)
- Fixed Grantlee template svc_translation.cpp.grantlee:
- Changed {{ idl_enum.name }}_def:: to {{ idl_enum.name }}::
- Fixed .underlying() calls for C++11 scoped enums (enum class)
- Removed generated files from repo (moc_*, *_dtc.h, *_ftc.h)
Validation:
- BUILD_RTI=ON: SUCCESS
- BUILD_RTI=OFF: SUCCESS
- C++17 standard maintained for RTI 7.7 compatibility
- Ubuntu 26.04 Docker environment verified
Remaining Warnings (expected):
- BgViewer, KDChart, KDReports, Poppler-Qt6 not found (optional features)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
11725 lines
514 KiB
C++
11725 lines
514 KiB
C++
|
|
|
|
/*
|
|
WARNING: THIS FILE IS AUTO-GENERATED. DO NOT MODIFY.
|
|
|
|
This file was generated from pdm.idl
|
|
using RTI Code Generator (rtiddsgen) version 4.7.0.
|
|
The rtiddsgen tool is part of the RTI Connext DDS distribution.
|
|
For more information, type 'rtiddsgen -help' at a command shell
|
|
or consult the Code Generator User's Manual.
|
|
*/
|
|
|
|
#include <iosfwd>
|
|
#include <iomanip>
|
|
#include <atomic>
|
|
#include <cmath>
|
|
#include <limits>
|
|
|
|
#ifndef NDDS_STANDALONE_TYPE
|
|
#include "rti/topic/cdr/Serialization.hpp"
|
|
#include "pdmPlugin.hpp"
|
|
#else
|
|
#include "rti/topic/cdr/SerializationHelpers.hpp"
|
|
#endif
|
|
|
|
#include "pdm.hpp"
|
|
|
|
#include <rti/util/ostream_operators.hpp>
|
|
|
|
#include <ProjectDataManagement/pdm_export.h> // #define NDDSUSERDllExport for linux
|
|
#include "pdm_enums.hpp"
|
|
#include </workspace/qt-migration-legatus/qt6-after/qt6-migrated-legatus/build4/Lts/DDS/Core/core.hpp>
|
|
namespace ProjectDataManagement {
|
|
|
|
// ---- PdmBase:
|
|
|
|
PdmBase::PdmBase() :
|
|
id (0) {
|
|
|
|
}
|
|
|
|
PdmBase::PdmBase (int32_t id_) {
|
|
id = id_;
|
|
}
|
|
|
|
bool operator == (const PdmBase& a, const PdmBase& b) {
|
|
|
|
if (a.id != b.id) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
bool operator != (const PdmBase& a, const PdmBase& b) {
|
|
return !operator ==(a, b);
|
|
}
|
|
|
|
void swap(PdmBase& a, PdmBase& b) noexcept
|
|
{
|
|
using std::swap;
|
|
|
|
swap(a.id, b.id);
|
|
|
|
}
|
|
std::ostream& operator << (std::ostream& o,const PdmBase& sample)
|
|
{
|
|
::rti::util::StreamFlagSaver flag_saver (o);
|
|
o <<"[";
|
|
o << "id: " << sample.id;
|
|
o <<"]";
|
|
return o;
|
|
}
|
|
|
|
// ---- PdmBaseName:
|
|
|
|
PdmBaseName::PdmBaseName() :
|
|
name ("") {
|
|
|
|
}
|
|
|
|
PdmBaseName::PdmBaseName (int32_t id_,const ::omg::types::string_view& name_) :
|
|
::ProjectDataManagement::PdmBase(id_) {
|
|
name = name_;
|
|
}
|
|
|
|
bool operator == (const PdmBaseName& a, const PdmBaseName& b) {
|
|
if (!operator == ((::ProjectDataManagement::PdmBase) a, (::ProjectDataManagement::PdmBase) b)){
|
|
return false;
|
|
}
|
|
|
|
if (a.name != b.name) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
bool operator != (const PdmBaseName& a, const PdmBaseName& b) {
|
|
return !operator ==(a, b);
|
|
}
|
|
|
|
void swap(PdmBaseName& a, PdmBaseName& b) noexcept
|
|
{
|
|
using std::swap;
|
|
|
|
swap((::ProjectDataManagement::PdmBase&) a, (::ProjectDataManagement::PdmBase&) b);
|
|
swap(a.name, b.name);
|
|
|
|
}
|
|
std::ostream& operator << (std::ostream& o,const PdmBaseName& sample)
|
|
{
|
|
::rti::util::StreamFlagSaver flag_saver (o);
|
|
o <<"[";
|
|
o << static_cast<const ::ProjectDataManagement::PdmBase &>(sample);
|
|
o << "name: " << sample.name;
|
|
o <<"]";
|
|
return o;
|
|
}
|
|
|
|
// ---- BiteComponentText:
|
|
|
|
BiteComponentText::BiteComponentText() :
|
|
canDeviceId (0) ,
|
|
subDeviceId (0) ,
|
|
errorNumber (0) {
|
|
|
|
}
|
|
|
|
BiteComponentText::BiteComponentText (int32_t id_,const ::omg::types::string_view& name_,int32_t canDeviceId_,int32_t subDeviceId_,int32_t errorNumber_) :
|
|
::ProjectDataManagement::PdmBaseName(id_, name_) {
|
|
canDeviceId = canDeviceId_;
|
|
subDeviceId = subDeviceId_;
|
|
errorNumber = errorNumber_;
|
|
}
|
|
|
|
bool operator == (const BiteComponentText& a, const BiteComponentText& b) {
|
|
if (!operator == ((::ProjectDataManagement::PdmBaseName) a, (::ProjectDataManagement::PdmBaseName) b)){
|
|
return false;
|
|
}
|
|
|
|
if (a.canDeviceId != b.canDeviceId) {
|
|
return false;
|
|
}
|
|
if (a.subDeviceId != b.subDeviceId) {
|
|
return false;
|
|
}
|
|
if (a.errorNumber != b.errorNumber) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
bool operator != (const BiteComponentText& a, const BiteComponentText& b) {
|
|
return !operator ==(a, b);
|
|
}
|
|
|
|
void swap(BiteComponentText& a, BiteComponentText& b) noexcept
|
|
{
|
|
using std::swap;
|
|
|
|
swap((::ProjectDataManagement::PdmBaseName&) a, (::ProjectDataManagement::PdmBaseName&) b);
|
|
swap(a.canDeviceId, b.canDeviceId);
|
|
swap(a.subDeviceId, b.subDeviceId);
|
|
swap(a.errorNumber, b.errorNumber);
|
|
|
|
}
|
|
std::ostream& operator << (std::ostream& o,const BiteComponentText& sample)
|
|
{
|
|
::rti::util::StreamFlagSaver flag_saver (o);
|
|
o <<"[";
|
|
o << static_cast<const ::ProjectDataManagement::PdmBaseName &>(sample);
|
|
o << "canDeviceId: " << sample.canDeviceId<<", ";
|
|
o << "subDeviceId: " << sample.subDeviceId<<", ";
|
|
o << "errorNumber: " << sample.errorNumber;
|
|
o <<"]";
|
|
return o;
|
|
}
|
|
|
|
// ---- BuildingChargeEffect:
|
|
|
|
BuildingChargeEffect::BuildingChargeEffect() :
|
|
chargeTypeId (0) ,
|
|
destructiveFactor (0) ,
|
|
penetrationFactor (0) ,
|
|
hitSound (0) ,
|
|
difcueLight (0) ,
|
|
difcuePyro (0) {
|
|
|
|
}
|
|
|
|
BuildingChargeEffect::BuildingChargeEffect (int32_t id_,int32_t chargeTypeId_,int32_t destructiveFactor_,int32_t penetrationFactor_,int32_t hitSound_,bool difcueLight_,bool difcuePyro_) :
|
|
::ProjectDataManagement::PdmBase(id_) {
|
|
chargeTypeId = chargeTypeId_;
|
|
destructiveFactor = destructiveFactor_;
|
|
penetrationFactor = penetrationFactor_;
|
|
hitSound = hitSound_;
|
|
difcueLight = difcueLight_;
|
|
difcuePyro = difcuePyro_;
|
|
}
|
|
|
|
bool operator == (const BuildingChargeEffect& a, const BuildingChargeEffect& b) {
|
|
if (!operator == ((::ProjectDataManagement::PdmBase) a, (::ProjectDataManagement::PdmBase) b)){
|
|
return false;
|
|
}
|
|
|
|
if (a.chargeTypeId != b.chargeTypeId) {
|
|
return false;
|
|
}
|
|
if (a.destructiveFactor != b.destructiveFactor) {
|
|
return false;
|
|
}
|
|
if (a.penetrationFactor != b.penetrationFactor) {
|
|
return false;
|
|
}
|
|
if (a.hitSound != b.hitSound) {
|
|
return false;
|
|
}
|
|
if (a.difcueLight != b.difcueLight) {
|
|
return false;
|
|
}
|
|
if (a.difcuePyro != b.difcuePyro) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
bool operator != (const BuildingChargeEffect& a, const BuildingChargeEffect& b) {
|
|
return !operator ==(a, b);
|
|
}
|
|
|
|
void swap(BuildingChargeEffect& a, BuildingChargeEffect& b) noexcept
|
|
{
|
|
using std::swap;
|
|
|
|
swap((::ProjectDataManagement::PdmBase&) a, (::ProjectDataManagement::PdmBase&) b);
|
|
swap(a.chargeTypeId, b.chargeTypeId);
|
|
swap(a.destructiveFactor, b.destructiveFactor);
|
|
swap(a.penetrationFactor, b.penetrationFactor);
|
|
swap(a.hitSound, b.hitSound);
|
|
swap(a.difcueLight, b.difcueLight);
|
|
swap(a.difcuePyro, b.difcuePyro);
|
|
|
|
}
|
|
std::ostream& operator << (std::ostream& o,const BuildingChargeEffect& sample)
|
|
{
|
|
::rti::util::StreamFlagSaver flag_saver (o);
|
|
o <<"[";
|
|
o << static_cast<const ::ProjectDataManagement::PdmBase &>(sample);
|
|
o << "chargeTypeId: " << sample.chargeTypeId<<", ";
|
|
o << "destructiveFactor: " << sample.destructiveFactor<<", ";
|
|
o << "penetrationFactor: " << sample.penetrationFactor<<", ";
|
|
o << "hitSound: " << sample.hitSound<<", ";
|
|
o << "difcueLight: " << sample.difcueLight<<", ";
|
|
o << "difcuePyro: " << sample.difcuePyro;
|
|
o <<"]";
|
|
return o;
|
|
}
|
|
|
|
// ---- CanComponentString:
|
|
|
|
CanComponentString::CanComponentString() :
|
|
pdm_bitMask (0ll) ,
|
|
canDeviceId (0) ,
|
|
subDeviceId (0) {
|
|
|
|
}
|
|
|
|
CanComponentString::CanComponentString (int32_t id_,const ::omg::types::string_view& name_,int64_t pdm_bitMask_,int32_t canDeviceId_,int32_t subDeviceId_) :
|
|
::ProjectDataManagement::PdmBaseName(id_, name_) {
|
|
pdm_bitMask = pdm_bitMask_;
|
|
canDeviceId = canDeviceId_;
|
|
subDeviceId = subDeviceId_;
|
|
}
|
|
|
|
bool operator == (const CanComponentString& a, const CanComponentString& b) {
|
|
if (!operator == ((::ProjectDataManagement::PdmBaseName) a, (::ProjectDataManagement::PdmBaseName) b)){
|
|
return false;
|
|
}
|
|
|
|
if (a.pdm_bitMask != b.pdm_bitMask) {
|
|
return false;
|
|
}
|
|
if (a.canDeviceId != b.canDeviceId) {
|
|
return false;
|
|
}
|
|
if (a.subDeviceId != b.subDeviceId) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
bool operator != (const CanComponentString& a, const CanComponentString& b) {
|
|
return !operator ==(a, b);
|
|
}
|
|
|
|
void swap(CanComponentString& a, CanComponentString& b) noexcept
|
|
{
|
|
using std::swap;
|
|
|
|
swap((::ProjectDataManagement::PdmBaseName&) a, (::ProjectDataManagement::PdmBaseName&) b);
|
|
swap(a.pdm_bitMask, b.pdm_bitMask);
|
|
swap(a.canDeviceId, b.canDeviceId);
|
|
swap(a.subDeviceId, b.subDeviceId);
|
|
|
|
}
|
|
std::ostream& operator << (std::ostream& o,const CanComponentString& sample)
|
|
{
|
|
::rti::util::StreamFlagSaver flag_saver (o);
|
|
o <<"[";
|
|
o << static_cast<const ::ProjectDataManagement::PdmBaseName &>(sample);
|
|
o << "pdm_bitMask: " << sample.pdm_bitMask<<", ";
|
|
o << "canDeviceId: " << sample.canDeviceId<<", ";
|
|
o << "subDeviceId: " << sample.subDeviceId;
|
|
o <<"]";
|
|
return o;
|
|
}
|
|
|
|
// ---- CasEffect:
|
|
|
|
CasEffect::CasEffect() :
|
|
severityType(ProjectDataManagement::SeverityType::lethal) ,
|
|
iedClass (0) ,
|
|
impactRadius (0) {
|
|
|
|
}
|
|
|
|
CasEffect::CasEffect (const ::ProjectDataManagement::SeverityType& severityType_,int32_t iedClass_,int32_t impactRadius_) {
|
|
severityType = severityType_;
|
|
iedClass = iedClass_;
|
|
impactRadius = impactRadius_;
|
|
}
|
|
|
|
bool operator == (const CasEffect& a, const CasEffect& b) {
|
|
|
|
if (a.severityType != b.severityType) {
|
|
return false;
|
|
}
|
|
if (a.iedClass != b.iedClass) {
|
|
return false;
|
|
}
|
|
if (a.impactRadius != b.impactRadius) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
bool operator != (const CasEffect& a, const CasEffect& b) {
|
|
return !operator ==(a, b);
|
|
}
|
|
|
|
void swap(CasEffect& a, CasEffect& b) noexcept
|
|
{
|
|
using std::swap;
|
|
|
|
swap(a.severityType, b.severityType);
|
|
swap(a.iedClass, b.iedClass);
|
|
swap(a.impactRadius, b.impactRadius);
|
|
|
|
}
|
|
std::ostream& operator << (std::ostream& o,const CasEffect& sample)
|
|
{
|
|
::rti::util::StreamFlagSaver flag_saver (o);
|
|
o <<"[";
|
|
o << "severityType: " << sample.severityType<<", ";
|
|
o << "iedClass: " << sample.iedClass<<", ";
|
|
o << "impactRadius: " << sample.impactRadius;
|
|
o <<"]";
|
|
return o;
|
|
}
|
|
|
|
// ---- ChargeType:
|
|
|
|
ChargeType::ChargeType() :
|
|
shortName ("") ,
|
|
predefinedName ("") ,
|
|
disEntity ("") ,
|
|
properties ("") ,
|
|
legacyId (0) {
|
|
|
|
}
|
|
|
|
ChargeType::ChargeType (int32_t id_,const ::omg::types::string_view& name_,const ::omg::types::string_view& shortName_,const ::omg::types::string_view& predefinedName_,const ::omg::types::string_view& disEntity_,const ::omg::types::string_view& properties_,int32_t legacyId_) :
|
|
::ProjectDataManagement::PdmBaseName(id_, name_) {
|
|
shortName = shortName_;
|
|
predefinedName = predefinedName_;
|
|
disEntity = disEntity_;
|
|
properties = properties_;
|
|
legacyId = legacyId_;
|
|
}
|
|
|
|
bool operator == (const ChargeType& a, const ChargeType& b) {
|
|
if (!operator == ((::ProjectDataManagement::PdmBaseName) a, (::ProjectDataManagement::PdmBaseName) b)){
|
|
return false;
|
|
}
|
|
|
|
if (a.shortName != b.shortName) {
|
|
return false;
|
|
}
|
|
if (a.predefinedName != b.predefinedName) {
|
|
return false;
|
|
}
|
|
if (a.disEntity != b.disEntity) {
|
|
return false;
|
|
}
|
|
if (a.properties != b.properties) {
|
|
return false;
|
|
}
|
|
if (a.legacyId != b.legacyId) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
bool operator != (const ChargeType& a, const ChargeType& b) {
|
|
return !operator ==(a, b);
|
|
}
|
|
|
|
void swap(ChargeType& a, ChargeType& b) noexcept
|
|
{
|
|
using std::swap;
|
|
|
|
swap((::ProjectDataManagement::PdmBaseName&) a, (::ProjectDataManagement::PdmBaseName&) b);
|
|
swap(a.shortName, b.shortName);
|
|
swap(a.predefinedName, b.predefinedName);
|
|
swap(a.disEntity, b.disEntity);
|
|
swap(a.properties, b.properties);
|
|
swap(a.legacyId, b.legacyId);
|
|
|
|
}
|
|
std::ostream& operator << (std::ostream& o,const ChargeType& sample)
|
|
{
|
|
::rti::util::StreamFlagSaver flag_saver (o);
|
|
o <<"[";
|
|
o << static_cast<const ::ProjectDataManagement::PdmBaseName &>(sample);
|
|
o << "shortName: " << sample.shortName<<", ";
|
|
o << "predefinedName: " << sample.predefinedName<<", ";
|
|
o << "disEntity: " << sample.disEntity<<", ";
|
|
o << "properties: " << sample.properties<<", ";
|
|
o << "legacyId: " << sample.legacyId;
|
|
o <<"]";
|
|
return o;
|
|
}
|
|
|
|
// ---- ChargeTypeIgniterTypeIgniterFunction:
|
|
|
|
ChargeTypeIgniterTypeIgniterFunction::ChargeTypeIgniterTypeIgniterFunction() :
|
|
chargeTypeId (0) ,
|
|
igniterTypeId (0) ,
|
|
igniterFunctionId (0) ,
|
|
igniterFunctionBaseId(ProjectDataManagement::IgniterFunctionBase::IfbDefault) ,
|
|
impactArea ("") ,
|
|
impactRadius (0) ,
|
|
hazardDistance (0) ,
|
|
chargeLegacyId (0) ,
|
|
properties ("") {
|
|
|
|
}
|
|
|
|
ChargeTypeIgniterTypeIgniterFunction::ChargeTypeIgniterTypeIgniterFunction (int32_t id_,int32_t chargeTypeId_,int32_t igniterTypeId_,int32_t igniterFunctionId_,const ::ProjectDataManagement::IgniterFunctionBase& igniterFunctionBaseId_,const ::omg::types::string_view& impactArea_,int32_t impactRadius_,int32_t hazardDistance_,int32_t chargeLegacyId_,const ::omg::types::string_view& properties_) :
|
|
::ProjectDataManagement::PdmBase(id_) {
|
|
chargeTypeId = chargeTypeId_;
|
|
igniterTypeId = igniterTypeId_;
|
|
igniterFunctionId = igniterFunctionId_;
|
|
igniterFunctionBaseId = igniterFunctionBaseId_;
|
|
impactArea = impactArea_;
|
|
impactRadius = impactRadius_;
|
|
hazardDistance = hazardDistance_;
|
|
chargeLegacyId = chargeLegacyId_;
|
|
properties = properties_;
|
|
}
|
|
|
|
bool operator == (const ChargeTypeIgniterTypeIgniterFunction& a, const ChargeTypeIgniterTypeIgniterFunction& b) {
|
|
if (!operator == ((::ProjectDataManagement::PdmBase) a, (::ProjectDataManagement::PdmBase) b)){
|
|
return false;
|
|
}
|
|
|
|
if (a.chargeTypeId != b.chargeTypeId) {
|
|
return false;
|
|
}
|
|
if (a.igniterTypeId != b.igniterTypeId) {
|
|
return false;
|
|
}
|
|
if (a.igniterFunctionId != b.igniterFunctionId) {
|
|
return false;
|
|
}
|
|
if (a.igniterFunctionBaseId != b.igniterFunctionBaseId) {
|
|
return false;
|
|
}
|
|
if (a.impactArea != b.impactArea) {
|
|
return false;
|
|
}
|
|
if (a.impactRadius != b.impactRadius) {
|
|
return false;
|
|
}
|
|
if (a.hazardDistance != b.hazardDistance) {
|
|
return false;
|
|
}
|
|
if (a.chargeLegacyId != b.chargeLegacyId) {
|
|
return false;
|
|
}
|
|
if (a.properties != b.properties) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
bool operator != (const ChargeTypeIgniterTypeIgniterFunction& a, const ChargeTypeIgniterTypeIgniterFunction& b) {
|
|
return !operator ==(a, b);
|
|
}
|
|
|
|
void swap(ChargeTypeIgniterTypeIgniterFunction& a, ChargeTypeIgniterTypeIgniterFunction& b) noexcept
|
|
{
|
|
using std::swap;
|
|
|
|
swap((::ProjectDataManagement::PdmBase&) a, (::ProjectDataManagement::PdmBase&) b);
|
|
swap(a.chargeTypeId, b.chargeTypeId);
|
|
swap(a.igniterTypeId, b.igniterTypeId);
|
|
swap(a.igniterFunctionId, b.igniterFunctionId);
|
|
swap(a.igniterFunctionBaseId, b.igniterFunctionBaseId);
|
|
swap(a.impactArea, b.impactArea);
|
|
swap(a.impactRadius, b.impactRadius);
|
|
swap(a.hazardDistance, b.hazardDistance);
|
|
swap(a.chargeLegacyId, b.chargeLegacyId);
|
|
swap(a.properties, b.properties);
|
|
|
|
}
|
|
std::ostream& operator << (std::ostream& o,const ChargeTypeIgniterTypeIgniterFunction& sample)
|
|
{
|
|
::rti::util::StreamFlagSaver flag_saver (o);
|
|
o <<"[";
|
|
o << static_cast<const ::ProjectDataManagement::PdmBase &>(sample);
|
|
o << "chargeTypeId: " << sample.chargeTypeId<<", ";
|
|
o << "igniterTypeId: " << sample.igniterTypeId<<", ";
|
|
o << "igniterFunctionId: " << sample.igniterFunctionId<<", ";
|
|
o << "igniterFunctionBaseId: " << sample.igniterFunctionBaseId<<", ";
|
|
o << "impactArea: " << sample.impactArea<<", ";
|
|
o << "impactRadius: " << sample.impactRadius<<", ";
|
|
o << "hazardDistance: " << sample.hazardDistance<<", ";
|
|
o << "chargeLegacyId: " << sample.chargeLegacyId<<", ";
|
|
o << "properties: " << sample.properties;
|
|
o <<"]";
|
|
return o;
|
|
}
|
|
|
|
// ---- ChargeTypeLoadType:
|
|
|
|
ChargeTypeLoadType::ChargeTypeLoadType() :
|
|
chargeTypeId (0) ,
|
|
loadTypeId (0) ,
|
|
properties ("") {
|
|
|
|
}
|
|
|
|
ChargeTypeLoadType::ChargeTypeLoadType (int32_t id_,int32_t chargeTypeId_,int32_t loadTypeId_,const ::omg::types::sequence< int32_t >& numbers_,const ::omg::types::string_view& properties_) :
|
|
::ProjectDataManagement::PdmBase(id_) {
|
|
chargeTypeId = chargeTypeId_;
|
|
loadTypeId = loadTypeId_;
|
|
numbers = numbers_;
|
|
properties = properties_;
|
|
}
|
|
|
|
bool operator == (const ChargeTypeLoadType& a, const ChargeTypeLoadType& b) {
|
|
if (!operator == ((::ProjectDataManagement::PdmBase) a, (::ProjectDataManagement::PdmBase) b)){
|
|
return false;
|
|
}
|
|
|
|
if (a.chargeTypeId != b.chargeTypeId) {
|
|
return false;
|
|
}
|
|
if (a.loadTypeId != b.loadTypeId) {
|
|
return false;
|
|
}
|
|
if (a.numbers != b.numbers) {
|
|
return false;
|
|
}
|
|
if (a.properties != b.properties) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
bool operator != (const ChargeTypeLoadType& a, const ChargeTypeLoadType& b) {
|
|
return !operator ==(a, b);
|
|
}
|
|
|
|
void swap(ChargeTypeLoadType& a, ChargeTypeLoadType& b) noexcept
|
|
{
|
|
using std::swap;
|
|
|
|
swap((::ProjectDataManagement::PdmBase&) a, (::ProjectDataManagement::PdmBase&) b);
|
|
swap(a.chargeTypeId, b.chargeTypeId);
|
|
swap(a.loadTypeId, b.loadTypeId);
|
|
swap(a.numbers, b.numbers);
|
|
swap(a.properties, b.properties);
|
|
|
|
}
|
|
std::ostream& operator << (std::ostream& o,const ChargeTypeLoadType& sample)
|
|
{
|
|
::rti::util::StreamFlagSaver flag_saver (o);
|
|
o <<"[";
|
|
o << static_cast<const ::ProjectDataManagement::PdmBase &>(sample);
|
|
o << "chargeTypeId: " << sample.chargeTypeId<<", ";
|
|
o << "loadTypeId: " << sample.loadTypeId<<", ";
|
|
o << "numbers: " << sample.numbers<<", ";
|
|
o << "properties: " << sample.properties;
|
|
o <<"]";
|
|
return o;
|
|
}
|
|
|
|
// ---- EquipmentSystemEventFilter:
|
|
|
|
EquipmentSystemEventFilter::EquipmentSystemEventFilter() :
|
|
equipmentFunctionId (0) ,
|
|
subDeviceId (0) ,
|
|
deviceSpecificCode (0) ,
|
|
hgrMineSearchFilterType(ProjectDataManagement::HgrMineSearchFilterType::HgrMineSearchFilterType_Unknown) {
|
|
|
|
}
|
|
|
|
EquipmentSystemEventFilter::EquipmentSystemEventFilter (int32_t id_,int32_t equipmentFunctionId_,int32_t subDeviceId_,int32_t deviceSpecificCode_,const ::ProjectDataManagement::HgrMineSearchFilterType& hgrMineSearchFilterType_) :
|
|
::ProjectDataManagement::PdmBase(id_) {
|
|
equipmentFunctionId = equipmentFunctionId_;
|
|
subDeviceId = subDeviceId_;
|
|
deviceSpecificCode = deviceSpecificCode_;
|
|
hgrMineSearchFilterType = hgrMineSearchFilterType_;
|
|
}
|
|
|
|
bool operator == (const EquipmentSystemEventFilter& a, const EquipmentSystemEventFilter& b) {
|
|
if (!operator == ((::ProjectDataManagement::PdmBase) a, (::ProjectDataManagement::PdmBase) b)){
|
|
return false;
|
|
}
|
|
|
|
if (a.equipmentFunctionId != b.equipmentFunctionId) {
|
|
return false;
|
|
}
|
|
if (a.subDeviceId != b.subDeviceId) {
|
|
return false;
|
|
}
|
|
if (a.deviceSpecificCode != b.deviceSpecificCode) {
|
|
return false;
|
|
}
|
|
if (a.hgrMineSearchFilterType != b.hgrMineSearchFilterType) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
bool operator != (const EquipmentSystemEventFilter& a, const EquipmentSystemEventFilter& b) {
|
|
return !operator ==(a, b);
|
|
}
|
|
|
|
void swap(EquipmentSystemEventFilter& a, EquipmentSystemEventFilter& b) noexcept
|
|
{
|
|
using std::swap;
|
|
|
|
swap((::ProjectDataManagement::PdmBase&) a, (::ProjectDataManagement::PdmBase&) b);
|
|
swap(a.equipmentFunctionId, b.equipmentFunctionId);
|
|
swap(a.subDeviceId, b.subDeviceId);
|
|
swap(a.deviceSpecificCode, b.deviceSpecificCode);
|
|
swap(a.hgrMineSearchFilterType, b.hgrMineSearchFilterType);
|
|
|
|
}
|
|
std::ostream& operator << (std::ostream& o,const EquipmentSystemEventFilter& sample)
|
|
{
|
|
::rti::util::StreamFlagSaver flag_saver (o);
|
|
o <<"[";
|
|
o << static_cast<const ::ProjectDataManagement::PdmBase &>(sample);
|
|
o << "equipmentFunctionId: " << sample.equipmentFunctionId<<", ";
|
|
o << "subDeviceId: " << sample.subDeviceId<<", ";
|
|
o << "deviceSpecificCode: " << sample.deviceSpecificCode<<", ";
|
|
o << "hgrMineSearchFilterType: " << sample.hgrMineSearchFilterType;
|
|
o <<"]";
|
|
return o;
|
|
}
|
|
|
|
// ---- EventFilterHgrMineSearch:
|
|
|
|
EventFilterHgrMineSearch::EventFilterHgrMineSearch() :
|
|
chargeTypeId (0) ,
|
|
hgrMineSearchFilterType(ProjectDataManagement::HgrMineSearchFilterType::HgrMineSearchFilterType_Unknown) {
|
|
|
|
}
|
|
|
|
EventFilterHgrMineSearch::EventFilterHgrMineSearch (int32_t id_,int32_t chargeTypeId_,const ::ProjectDataManagement::HgrMineSearchFilterType& hgrMineSearchFilterType_) :
|
|
::ProjectDataManagement::PdmBase(id_) {
|
|
chargeTypeId = chargeTypeId_;
|
|
hgrMineSearchFilterType = hgrMineSearchFilterType_;
|
|
}
|
|
|
|
bool operator == (const EventFilterHgrMineSearch& a, const EventFilterHgrMineSearch& b) {
|
|
if (!operator == ((::ProjectDataManagement::PdmBase) a, (::ProjectDataManagement::PdmBase) b)){
|
|
return false;
|
|
}
|
|
|
|
if (a.chargeTypeId != b.chargeTypeId) {
|
|
return false;
|
|
}
|
|
if (a.hgrMineSearchFilterType != b.hgrMineSearchFilterType) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
bool operator != (const EventFilterHgrMineSearch& a, const EventFilterHgrMineSearch& b) {
|
|
return !operator ==(a, b);
|
|
}
|
|
|
|
void swap(EventFilterHgrMineSearch& a, EventFilterHgrMineSearch& b) noexcept
|
|
{
|
|
using std::swap;
|
|
|
|
swap((::ProjectDataManagement::PdmBase&) a, (::ProjectDataManagement::PdmBase&) b);
|
|
swap(a.chargeTypeId, b.chargeTypeId);
|
|
swap(a.hgrMineSearchFilterType, b.hgrMineSearchFilterType);
|
|
|
|
}
|
|
std::ostream& operator << (std::ostream& o,const EventFilterHgrMineSearch& sample)
|
|
{
|
|
::rti::util::StreamFlagSaver flag_saver (o);
|
|
o <<"[";
|
|
o << static_cast<const ::ProjectDataManagement::PdmBase &>(sample);
|
|
o << "chargeTypeId: " << sample.chargeTypeId<<", ";
|
|
o << "hgrMineSearchFilterType: " << sample.hgrMineSearchFilterType;
|
|
o <<"]";
|
|
return o;
|
|
}
|
|
|
|
// ---- FirePurpose:
|
|
|
|
FirePurpose::FirePurpose() :
|
|
description ("") ,
|
|
properties ("") {
|
|
|
|
}
|
|
|
|
FirePurpose::FirePurpose (int32_t id_,const ::omg::types::string_view& name_,const ::omg::types::string_view& description_,const ::omg::types::string_view& properties_) :
|
|
::ProjectDataManagement::PdmBaseName(id_, name_) {
|
|
description = description_;
|
|
properties = properties_;
|
|
}
|
|
|
|
bool operator == (const FirePurpose& a, const FirePurpose& b) {
|
|
if (!operator == ((::ProjectDataManagement::PdmBaseName) a, (::ProjectDataManagement::PdmBaseName) b)){
|
|
return false;
|
|
}
|
|
|
|
if (a.description != b.description) {
|
|
return false;
|
|
}
|
|
if (a.properties != b.properties) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
bool operator != (const FirePurpose& a, const FirePurpose& b) {
|
|
return !operator ==(a, b);
|
|
}
|
|
|
|
void swap(FirePurpose& a, FirePurpose& b) noexcept
|
|
{
|
|
using std::swap;
|
|
|
|
swap((::ProjectDataManagement::PdmBaseName&) a, (::ProjectDataManagement::PdmBaseName&) b);
|
|
swap(a.description, b.description);
|
|
swap(a.properties, b.properties);
|
|
|
|
}
|
|
std::ostream& operator << (std::ostream& o,const FirePurpose& sample)
|
|
{
|
|
::rti::util::StreamFlagSaver flag_saver (o);
|
|
o <<"[";
|
|
o << static_cast<const ::ProjectDataManagement::PdmBaseName &>(sample);
|
|
o << "description: " << sample.description<<", ";
|
|
o << "properties: " << sample.properties;
|
|
o <<"]";
|
|
return o;
|
|
}
|
|
|
|
// ---- GearType:
|
|
|
|
GearType::GearType() :
|
|
gearClassId(ProjectDataManagement::GearClass::GearClass_Unknown) ,
|
|
tasCode (0) ,
|
|
properties ("") {
|
|
|
|
}
|
|
|
|
GearType::GearType (int32_t id_,const ::omg::types::string_view& name_,const ::ProjectDataManagement::GearClass& gearClassId_,int32_t tasCode_,const ::omg::types::string_view& properties_) :
|
|
::ProjectDataManagement::PdmBaseName(id_, name_) {
|
|
gearClassId = gearClassId_;
|
|
tasCode = tasCode_;
|
|
properties = properties_;
|
|
}
|
|
|
|
bool operator == (const GearType& a, const GearType& b) {
|
|
if (!operator == ((::ProjectDataManagement::PdmBaseName) a, (::ProjectDataManagement::PdmBaseName) b)){
|
|
return false;
|
|
}
|
|
|
|
if (a.gearClassId != b.gearClassId) {
|
|
return false;
|
|
}
|
|
if (a.tasCode != b.tasCode) {
|
|
return false;
|
|
}
|
|
if (a.properties != b.properties) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
bool operator != (const GearType& a, const GearType& b) {
|
|
return !operator ==(a, b);
|
|
}
|
|
|
|
void swap(GearType& a, GearType& b) noexcept
|
|
{
|
|
using std::swap;
|
|
|
|
swap((::ProjectDataManagement::PdmBaseName&) a, (::ProjectDataManagement::PdmBaseName&) b);
|
|
swap(a.gearClassId, b.gearClassId);
|
|
swap(a.tasCode, b.tasCode);
|
|
swap(a.properties, b.properties);
|
|
|
|
}
|
|
std::ostream& operator << (std::ostream& o,const GearType& sample)
|
|
{
|
|
::rti::util::StreamFlagSaver flag_saver (o);
|
|
o <<"[";
|
|
o << static_cast<const ::ProjectDataManagement::PdmBaseName &>(sample);
|
|
o << "gearClassId: " << sample.gearClassId<<", ";
|
|
o << "tasCode: " << sample.tasCode<<", ";
|
|
o << "properties: " << sample.properties;
|
|
o <<"]";
|
|
return o;
|
|
}
|
|
|
|
// ---- GearTypeChargeType:
|
|
|
|
GearTypeChargeType::GearTypeChargeType() :
|
|
chargeTypeId (0) ,
|
|
maxRange (0) ,
|
|
gearTypeId (0) ,
|
|
properties ("") {
|
|
|
|
}
|
|
|
|
GearTypeChargeType::GearTypeChargeType (int32_t id_,int32_t chargeTypeId_,int32_t maxRange_,int32_t gearTypeId_,const ::omg::types::string_view& properties_) :
|
|
::ProjectDataManagement::PdmBase(id_) {
|
|
chargeTypeId = chargeTypeId_;
|
|
maxRange = maxRange_;
|
|
gearTypeId = gearTypeId_;
|
|
properties = properties_;
|
|
}
|
|
|
|
bool operator == (const GearTypeChargeType& a, const GearTypeChargeType& b) {
|
|
if (!operator == ((::ProjectDataManagement::PdmBase) a, (::ProjectDataManagement::PdmBase) b)){
|
|
return false;
|
|
}
|
|
|
|
if (a.chargeTypeId != b.chargeTypeId) {
|
|
return false;
|
|
}
|
|
if (a.maxRange != b.maxRange) {
|
|
return false;
|
|
}
|
|
if (a.gearTypeId != b.gearTypeId) {
|
|
return false;
|
|
}
|
|
if (a.properties != b.properties) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
bool operator != (const GearTypeChargeType& a, const GearTypeChargeType& b) {
|
|
return !operator ==(a, b);
|
|
}
|
|
|
|
void swap(GearTypeChargeType& a, GearTypeChargeType& b) noexcept
|
|
{
|
|
using std::swap;
|
|
|
|
swap((::ProjectDataManagement::PdmBase&) a, (::ProjectDataManagement::PdmBase&) b);
|
|
swap(a.chargeTypeId, b.chargeTypeId);
|
|
swap(a.maxRange, b.maxRange);
|
|
swap(a.gearTypeId, b.gearTypeId);
|
|
swap(a.properties, b.properties);
|
|
|
|
}
|
|
std::ostream& operator << (std::ostream& o,const GearTypeChargeType& sample)
|
|
{
|
|
::rti::util::StreamFlagSaver flag_saver (o);
|
|
o <<"[";
|
|
o << static_cast<const ::ProjectDataManagement::PdmBase &>(sample);
|
|
o << "chargeTypeId: " << sample.chargeTypeId<<", ";
|
|
o << "maxRange: " << sample.maxRange<<", ";
|
|
o << "gearTypeId: " << sample.gearTypeId<<", ";
|
|
o << "properties: " << sample.properties;
|
|
o <<"]";
|
|
return o;
|
|
}
|
|
|
|
// ---- IgniterFunction:
|
|
|
|
IgniterFunction::IgniterFunction() :
|
|
shortName ("") ,
|
|
properties ("") {
|
|
|
|
}
|
|
|
|
IgniterFunction::IgniterFunction (int32_t id_,const ::omg::types::string_view& name_,const ::omg::types::string_view& shortName_,const ::omg::types::string_view& properties_) :
|
|
::ProjectDataManagement::PdmBaseName(id_, name_) {
|
|
shortName = shortName_;
|
|
properties = properties_;
|
|
}
|
|
|
|
bool operator == (const IgniterFunction& a, const IgniterFunction& b) {
|
|
if (!operator == ((::ProjectDataManagement::PdmBaseName) a, (::ProjectDataManagement::PdmBaseName) b)){
|
|
return false;
|
|
}
|
|
|
|
if (a.shortName != b.shortName) {
|
|
return false;
|
|
}
|
|
if (a.properties != b.properties) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
bool operator != (const IgniterFunction& a, const IgniterFunction& b) {
|
|
return !operator ==(a, b);
|
|
}
|
|
|
|
void swap(IgniterFunction& a, IgniterFunction& b) noexcept
|
|
{
|
|
using std::swap;
|
|
|
|
swap((::ProjectDataManagement::PdmBaseName&) a, (::ProjectDataManagement::PdmBaseName&) b);
|
|
swap(a.shortName, b.shortName);
|
|
swap(a.properties, b.properties);
|
|
|
|
}
|
|
std::ostream& operator << (std::ostream& o,const IgniterFunction& sample)
|
|
{
|
|
::rti::util::StreamFlagSaver flag_saver (o);
|
|
o <<"[";
|
|
o << static_cast<const ::ProjectDataManagement::PdmBaseName &>(sample);
|
|
o << "shortName: " << sample.shortName<<", ";
|
|
o << "properties: " << sample.properties;
|
|
o <<"]";
|
|
return o;
|
|
}
|
|
|
|
// ---- IgniterType:
|
|
|
|
IgniterType::IgniterType() :
|
|
shortName ("") ,
|
|
properties ("") {
|
|
|
|
}
|
|
|
|
IgniterType::IgniterType (int32_t id_,const ::omg::types::string_view& name_,const ::omg::types::string_view& shortName_,const ::omg::types::string_view& properties_) :
|
|
::ProjectDataManagement::PdmBaseName(id_, name_) {
|
|
shortName = shortName_;
|
|
properties = properties_;
|
|
}
|
|
|
|
bool operator == (const IgniterType& a, const IgniterType& b) {
|
|
if (!operator == ((::ProjectDataManagement::PdmBaseName) a, (::ProjectDataManagement::PdmBaseName) b)){
|
|
return false;
|
|
}
|
|
|
|
if (a.shortName != b.shortName) {
|
|
return false;
|
|
}
|
|
if (a.properties != b.properties) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
bool operator != (const IgniterType& a, const IgniterType& b) {
|
|
return !operator ==(a, b);
|
|
}
|
|
|
|
void swap(IgniterType& a, IgniterType& b) noexcept
|
|
{
|
|
using std::swap;
|
|
|
|
swap((::ProjectDataManagement::PdmBaseName&) a, (::ProjectDataManagement::PdmBaseName&) b);
|
|
swap(a.shortName, b.shortName);
|
|
swap(a.properties, b.properties);
|
|
|
|
}
|
|
std::ostream& operator << (std::ostream& o,const IgniterType& sample)
|
|
{
|
|
::rti::util::StreamFlagSaver flag_saver (o);
|
|
o <<"[";
|
|
o << static_cast<const ::ProjectDataManagement::PdmBaseName &>(sample);
|
|
o << "shortName: " << sample.shortName<<", ";
|
|
o << "properties: " << sample.properties;
|
|
o <<"]";
|
|
return o;
|
|
}
|
|
|
|
// ---- InsertUpdateTranslationRequest:
|
|
|
|
InsertUpdateTranslationRequest::InsertUpdateTranslationRequest() :
|
|
isoCode ("") ,
|
|
ctx ("") ,
|
|
key ("") ,
|
|
disambiguation ("") ,
|
|
translation ("") {
|
|
|
|
}
|
|
|
|
InsertUpdateTranslationRequest::InsertUpdateTranslationRequest (const ::omg::types::string_view& isoCode_,const ::omg::types::string_view& ctx_,const ::omg::types::string_view& key_,const ::omg::types::string_view& disambiguation_,const ::omg::types::string_view& translation_) {
|
|
isoCode = isoCode_;
|
|
ctx = ctx_;
|
|
key = key_;
|
|
disambiguation = disambiguation_;
|
|
translation = translation_;
|
|
}
|
|
|
|
bool operator == (const InsertUpdateTranslationRequest& a, const InsertUpdateTranslationRequest& b) {
|
|
|
|
if (a.isoCode != b.isoCode) {
|
|
return false;
|
|
}
|
|
if (a.ctx != b.ctx) {
|
|
return false;
|
|
}
|
|
if (a.key != b.key) {
|
|
return false;
|
|
}
|
|
if (a.disambiguation != b.disambiguation) {
|
|
return false;
|
|
}
|
|
if (a.translation != b.translation) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
bool operator != (const InsertUpdateTranslationRequest& a, const InsertUpdateTranslationRequest& b) {
|
|
return !operator ==(a, b);
|
|
}
|
|
|
|
void swap(InsertUpdateTranslationRequest& a, InsertUpdateTranslationRequest& b) noexcept
|
|
{
|
|
using std::swap;
|
|
|
|
swap(a.isoCode, b.isoCode);
|
|
swap(a.ctx, b.ctx);
|
|
swap(a.key, b.key);
|
|
swap(a.disambiguation, b.disambiguation);
|
|
swap(a.translation, b.translation);
|
|
|
|
}
|
|
std::ostream& operator << (std::ostream& o,const InsertUpdateTranslationRequest& sample)
|
|
{
|
|
::rti::util::StreamFlagSaver flag_saver (o);
|
|
o <<"[";
|
|
o << "isoCode: " << sample.isoCode<<", ";
|
|
o << "ctx: " << sample.ctx<<", ";
|
|
o << "key: " << sample.key<<", ";
|
|
o << "disambiguation: " << sample.disambiguation<<", ";
|
|
o << "translation: " << sample.translation;
|
|
o <<"]";
|
|
return o;
|
|
}
|
|
|
|
// ---- LanguageHmi:
|
|
|
|
LanguageHmi::LanguageHmi() :
|
|
isoCode ("") ,
|
|
dbLocale ("") {
|
|
|
|
}
|
|
|
|
LanguageHmi::LanguageHmi (int32_t id_,const ::omg::types::string_view& name_,const ::omg::types::string_view& isoCode_,const ::omg::types::string_view& dbLocale_) :
|
|
::ProjectDataManagement::PdmBaseName(id_, name_) {
|
|
isoCode = isoCode_;
|
|
dbLocale = dbLocale_;
|
|
}
|
|
|
|
bool operator == (const LanguageHmi& a, const LanguageHmi& b) {
|
|
if (!operator == ((::ProjectDataManagement::PdmBaseName) a, (::ProjectDataManagement::PdmBaseName) b)){
|
|
return false;
|
|
}
|
|
|
|
if (a.isoCode != b.isoCode) {
|
|
return false;
|
|
}
|
|
if (a.dbLocale != b.dbLocale) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
bool operator != (const LanguageHmi& a, const LanguageHmi& b) {
|
|
return !operator ==(a, b);
|
|
}
|
|
|
|
void swap(LanguageHmi& a, LanguageHmi& b) noexcept
|
|
{
|
|
using std::swap;
|
|
|
|
swap((::ProjectDataManagement::PdmBaseName&) a, (::ProjectDataManagement::PdmBaseName&) b);
|
|
swap(a.isoCode, b.isoCode);
|
|
swap(a.dbLocale, b.dbLocale);
|
|
|
|
}
|
|
std::ostream& operator << (std::ostream& o,const LanguageHmi& sample)
|
|
{
|
|
::rti::util::StreamFlagSaver flag_saver (o);
|
|
o <<"[";
|
|
o << static_cast<const ::ProjectDataManagement::PdmBaseName &>(sample);
|
|
o << "isoCode: " << sample.isoCode<<", ";
|
|
o << "dbLocale: " << sample.dbLocale;
|
|
o <<"]";
|
|
return o;
|
|
}
|
|
|
|
// ---- LanguageXdu:
|
|
|
|
LanguageXdu::LanguageXdu() :
|
|
isoCode ("") {
|
|
|
|
}
|
|
|
|
LanguageXdu::LanguageXdu (int32_t id_,const ::omg::types::string_view& name_,const ::omg::types::string_view& isoCode_) :
|
|
::ProjectDataManagement::PdmBaseName(id_, name_) {
|
|
isoCode = isoCode_;
|
|
}
|
|
|
|
bool operator == (const LanguageXdu& a, const LanguageXdu& b) {
|
|
if (!operator == ((::ProjectDataManagement::PdmBaseName) a, (::ProjectDataManagement::PdmBaseName) b)){
|
|
return false;
|
|
}
|
|
|
|
if (a.isoCode != b.isoCode) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
bool operator != (const LanguageXdu& a, const LanguageXdu& b) {
|
|
return !operator ==(a, b);
|
|
}
|
|
|
|
void swap(LanguageXdu& a, LanguageXdu& b) noexcept
|
|
{
|
|
using std::swap;
|
|
|
|
swap((::ProjectDataManagement::PdmBaseName&) a, (::ProjectDataManagement::PdmBaseName&) b);
|
|
swap(a.isoCode, b.isoCode);
|
|
|
|
}
|
|
std::ostream& operator << (std::ostream& o,const LanguageXdu& sample)
|
|
{
|
|
::rti::util::StreamFlagSaver flag_saver (o);
|
|
o <<"[";
|
|
o << static_cast<const ::ProjectDataManagement::PdmBaseName &>(sample);
|
|
o << "isoCode: " << sample.isoCode;
|
|
o <<"]";
|
|
return o;
|
|
}
|
|
|
|
// ---- LoadType:
|
|
|
|
LoadType::LoadType() :
|
|
shortName ("") ,
|
|
properties ("") {
|
|
|
|
}
|
|
|
|
LoadType::LoadType (int32_t id_,const ::omg::types::string_view& name_,const ::omg::types::string_view& shortName_,const ::omg::types::string_view& properties_) :
|
|
::ProjectDataManagement::PdmBaseName(id_, name_) {
|
|
shortName = shortName_;
|
|
properties = properties_;
|
|
}
|
|
|
|
bool operator == (const LoadType& a, const LoadType& b) {
|
|
if (!operator == ((::ProjectDataManagement::PdmBaseName) a, (::ProjectDataManagement::PdmBaseName) b)){
|
|
return false;
|
|
}
|
|
|
|
if (a.shortName != b.shortName) {
|
|
return false;
|
|
}
|
|
if (a.properties != b.properties) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
bool operator != (const LoadType& a, const LoadType& b) {
|
|
return !operator ==(a, b);
|
|
}
|
|
|
|
void swap(LoadType& a, LoadType& b) noexcept
|
|
{
|
|
using std::swap;
|
|
|
|
swap((::ProjectDataManagement::PdmBaseName&) a, (::ProjectDataManagement::PdmBaseName&) b);
|
|
swap(a.shortName, b.shortName);
|
|
swap(a.properties, b.properties);
|
|
|
|
}
|
|
std::ostream& operator << (std::ostream& o,const LoadType& sample)
|
|
{
|
|
::rti::util::StreamFlagSaver flag_saver (o);
|
|
o <<"[";
|
|
o << static_cast<const ::ProjectDataManagement::PdmBaseName &>(sample);
|
|
o << "shortName: " << sample.shortName<<", ";
|
|
o << "properties: " << sample.properties;
|
|
o <<"]";
|
|
return o;
|
|
}
|
|
|
|
// ---- NuclearPreset:
|
|
|
|
NuclearPreset::NuclearPreset() :
|
|
detonationValue (0.0) ,
|
|
impactRadius (0.0) ,
|
|
borderLengthInner (0.0) ,
|
|
borderLengthOuter (0.0) {
|
|
|
|
}
|
|
|
|
NuclearPreset::NuclearPreset (int32_t id_,const ::omg::types::string_view& name_,double detonationValue_,double impactRadius_,double borderLengthInner_,double borderLengthOuter_) :
|
|
::ProjectDataManagement::PdmBaseName(id_, name_) {
|
|
detonationValue = detonationValue_;
|
|
impactRadius = impactRadius_;
|
|
borderLengthInner = borderLengthInner_;
|
|
borderLengthOuter = borderLengthOuter_;
|
|
}
|
|
|
|
bool operator == (const NuclearPreset& a, const NuclearPreset& b) {
|
|
if (!operator == ((::ProjectDataManagement::PdmBaseName) a, (::ProjectDataManagement::PdmBaseName) b)){
|
|
return false;
|
|
}
|
|
|
|
if (std::fabs(a.detonationValue - b.detonationValue) > std::numeric_limits< double>::epsilon()
|
|
&& !(std::fabs(a.detonationValue - b.detonationValue) < (std::numeric_limits< double>::min)())) {
|
|
return false;
|
|
}
|
|
if (std::fabs(a.impactRadius - b.impactRadius) > std::numeric_limits< double>::epsilon()
|
|
&& !(std::fabs(a.impactRadius - b.impactRadius) < (std::numeric_limits< double>::min)())) {
|
|
return false;
|
|
}
|
|
if (std::fabs(a.borderLengthInner - b.borderLengthInner) > std::numeric_limits< double>::epsilon()
|
|
&& !(std::fabs(a.borderLengthInner - b.borderLengthInner) < (std::numeric_limits< double>::min)())) {
|
|
return false;
|
|
}
|
|
if (std::fabs(a.borderLengthOuter - b.borderLengthOuter) > std::numeric_limits< double>::epsilon()
|
|
&& !(std::fabs(a.borderLengthOuter - b.borderLengthOuter) < (std::numeric_limits< double>::min)())) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
bool operator != (const NuclearPreset& a, const NuclearPreset& b) {
|
|
return !operator ==(a, b);
|
|
}
|
|
|
|
void swap(NuclearPreset& a, NuclearPreset& b) noexcept
|
|
{
|
|
using std::swap;
|
|
|
|
swap((::ProjectDataManagement::PdmBaseName&) a, (::ProjectDataManagement::PdmBaseName&) b);
|
|
swap(a.detonationValue, b.detonationValue);
|
|
swap(a.impactRadius, b.impactRadius);
|
|
swap(a.borderLengthInner, b.borderLengthInner);
|
|
swap(a.borderLengthOuter, b.borderLengthOuter);
|
|
|
|
}
|
|
std::ostream& operator << (std::ostream& o,const NuclearPreset& sample)
|
|
{
|
|
::rti::util::StreamFlagSaver flag_saver (o);
|
|
o <<"[";
|
|
o << static_cast<const ::ProjectDataManagement::PdmBaseName &>(sample);
|
|
o << "detonationValue: " << std::setprecision(15) << sample.detonationValue<<", ";
|
|
o << "impactRadius: " << std::setprecision(15) << sample.impactRadius<<", ";
|
|
o << "borderLengthInner: " << std::setprecision(15) << sample.borderLengthInner<<", ";
|
|
o << "borderLengthOuter: " << std::setprecision(15) << sample.borderLengthOuter;
|
|
o <<"]";
|
|
return o;
|
|
}
|
|
|
|
// ---- RadioGroup:
|
|
|
|
RadioGroup::RadioGroup() :
|
|
base_group (0) ,
|
|
issi (0) ,
|
|
group_issi1 (0) ,
|
|
group_issi2 (0) ,
|
|
radioHostname ("") ,
|
|
radioPort (0) ,
|
|
radioBackupHostname ("") ,
|
|
radioBackupPort (0) {
|
|
|
|
}
|
|
|
|
RadioGroup::RadioGroup (int32_t id_,const ::omg::types::string_view& name_,bool base_group_,int32_t issi_,int32_t group_issi1_,int32_t group_issi2_,const ::omg::types::string_view& radioHostname_,int32_t radioPort_,const ::omg::types::string_view& radioBackupHostname_,int32_t radioBackupPort_) :
|
|
::ProjectDataManagement::PdmBaseName(id_, name_) {
|
|
base_group = base_group_;
|
|
issi = issi_;
|
|
group_issi1 = group_issi1_;
|
|
group_issi2 = group_issi2_;
|
|
radioHostname = radioHostname_;
|
|
radioPort = radioPort_;
|
|
radioBackupHostname = radioBackupHostname_;
|
|
radioBackupPort = radioBackupPort_;
|
|
}
|
|
|
|
bool operator == (const RadioGroup& a, const RadioGroup& b) {
|
|
if (!operator == ((::ProjectDataManagement::PdmBaseName) a, (::ProjectDataManagement::PdmBaseName) b)){
|
|
return false;
|
|
}
|
|
|
|
if (a.base_group != b.base_group) {
|
|
return false;
|
|
}
|
|
if (a.issi != b.issi) {
|
|
return false;
|
|
}
|
|
if (a.group_issi1 != b.group_issi1) {
|
|
return false;
|
|
}
|
|
if (a.group_issi2 != b.group_issi2) {
|
|
return false;
|
|
}
|
|
if (a.radioHostname != b.radioHostname) {
|
|
return false;
|
|
}
|
|
if (a.radioPort != b.radioPort) {
|
|
return false;
|
|
}
|
|
if (a.radioBackupHostname != b.radioBackupHostname) {
|
|
return false;
|
|
}
|
|
if (a.radioBackupPort != b.radioBackupPort) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
bool operator != (const RadioGroup& a, const RadioGroup& b) {
|
|
return !operator ==(a, b);
|
|
}
|
|
|
|
void swap(RadioGroup& a, RadioGroup& b) noexcept
|
|
{
|
|
using std::swap;
|
|
|
|
swap((::ProjectDataManagement::PdmBaseName&) a, (::ProjectDataManagement::PdmBaseName&) b);
|
|
swap(a.base_group, b.base_group);
|
|
swap(a.issi, b.issi);
|
|
swap(a.group_issi1, b.group_issi1);
|
|
swap(a.group_issi2, b.group_issi2);
|
|
swap(a.radioHostname, b.radioHostname);
|
|
swap(a.radioPort, b.radioPort);
|
|
swap(a.radioBackupHostname, b.radioBackupHostname);
|
|
swap(a.radioBackupPort, b.radioBackupPort);
|
|
|
|
}
|
|
std::ostream& operator << (std::ostream& o,const RadioGroup& sample)
|
|
{
|
|
::rti::util::StreamFlagSaver flag_saver (o);
|
|
o <<"[";
|
|
o << static_cast<const ::ProjectDataManagement::PdmBaseName &>(sample);
|
|
o << "base_group: " << sample.base_group<<", ";
|
|
o << "issi: " << sample.issi<<", ";
|
|
o << "group_issi1: " << sample.group_issi1<<", ";
|
|
o << "group_issi2: " << sample.group_issi2<<", ";
|
|
o << "radioHostname: " << sample.radioHostname<<", ";
|
|
o << "radioPort: " << sample.radioPort<<", ";
|
|
o << "radioBackupHostname: " << sample.radioBackupHostname<<", ";
|
|
o << "radioBackupPort: " << sample.radioBackupPort;
|
|
o <<"]";
|
|
return o;
|
|
}
|
|
|
|
// ---- SanitationInjury:
|
|
|
|
SanitationInjury::SanitationInjury() :
|
|
kind (0) ,
|
|
place1 (0) ,
|
|
place2 (0) ,
|
|
vbg (0) {
|
|
|
|
}
|
|
|
|
SanitationInjury::SanitationInjury (int32_t id_,const ::omg::types::string_view& name_,int32_t kind_,int32_t place1_,int32_t place2_,int32_t vbg_) :
|
|
::ProjectDataManagement::PdmBaseName(id_, name_) {
|
|
kind = kind_;
|
|
place1 = place1_;
|
|
place2 = place2_;
|
|
vbg = vbg_;
|
|
}
|
|
|
|
bool operator == (const SanitationInjury& a, const SanitationInjury& b) {
|
|
if (!operator == ((::ProjectDataManagement::PdmBaseName) a, (::ProjectDataManagement::PdmBaseName) b)){
|
|
return false;
|
|
}
|
|
|
|
if (a.kind != b.kind) {
|
|
return false;
|
|
}
|
|
if (a.place1 != b.place1) {
|
|
return false;
|
|
}
|
|
if (a.place2 != b.place2) {
|
|
return false;
|
|
}
|
|
if (a.vbg != b.vbg) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
bool operator != (const SanitationInjury& a, const SanitationInjury& b) {
|
|
return !operator ==(a, b);
|
|
}
|
|
|
|
void swap(SanitationInjury& a, SanitationInjury& b) noexcept
|
|
{
|
|
using std::swap;
|
|
|
|
swap((::ProjectDataManagement::PdmBaseName&) a, (::ProjectDataManagement::PdmBaseName&) b);
|
|
swap(a.kind, b.kind);
|
|
swap(a.place1, b.place1);
|
|
swap(a.place2, b.place2);
|
|
swap(a.vbg, b.vbg);
|
|
|
|
}
|
|
std::ostream& operator << (std::ostream& o,const SanitationInjury& sample)
|
|
{
|
|
::rti::util::StreamFlagSaver flag_saver (o);
|
|
o <<"[";
|
|
o << static_cast<const ::ProjectDataManagement::PdmBaseName &>(sample);
|
|
o << "kind: " << sample.kind<<", ";
|
|
o << "place1: " << sample.place1<<", ";
|
|
o << "place2: " << sample.place2<<", ";
|
|
o << "vbg: " << sample.vbg;
|
|
o <<"]";
|
|
return o;
|
|
}
|
|
|
|
// ---- SanitationInjuryKind:
|
|
|
|
SanitationInjuryKind::SanitationInjuryKind() :
|
|
version ("") {
|
|
|
|
}
|
|
|
|
SanitationInjuryKind::SanitationInjuryKind (int32_t id_,const ::omg::types::string_view& name_,const ::omg::types::string_view& version_) :
|
|
::ProjectDataManagement::PdmBaseName(id_, name_) {
|
|
version = version_;
|
|
}
|
|
|
|
bool operator == (const SanitationInjuryKind& a, const SanitationInjuryKind& b) {
|
|
if (!operator == ((::ProjectDataManagement::PdmBaseName) a, (::ProjectDataManagement::PdmBaseName) b)){
|
|
return false;
|
|
}
|
|
|
|
if (a.version != b.version) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
bool operator != (const SanitationInjuryKind& a, const SanitationInjuryKind& b) {
|
|
return !operator ==(a, b);
|
|
}
|
|
|
|
void swap(SanitationInjuryKind& a, SanitationInjuryKind& b) noexcept
|
|
{
|
|
using std::swap;
|
|
|
|
swap((::ProjectDataManagement::PdmBaseName&) a, (::ProjectDataManagement::PdmBaseName&) b);
|
|
swap(a.version, b.version);
|
|
|
|
}
|
|
std::ostream& operator << (std::ostream& o,const SanitationInjuryKind& sample)
|
|
{
|
|
::rti::util::StreamFlagSaver flag_saver (o);
|
|
o <<"[";
|
|
o << static_cast<const ::ProjectDataManagement::PdmBaseName &>(sample);
|
|
o << "version: " << sample.version;
|
|
o <<"]";
|
|
return o;
|
|
}
|
|
|
|
// ---- SanitationInjuryPlace1:
|
|
|
|
SanitationInjuryPlace1::SanitationInjuryPlace1() :
|
|
version ("") {
|
|
|
|
}
|
|
|
|
SanitationInjuryPlace1::SanitationInjuryPlace1 (int32_t id_,const ::omg::types::string_view& name_,const ::omg::types::string_view& version_) :
|
|
::ProjectDataManagement::PdmBaseName(id_, name_) {
|
|
version = version_;
|
|
}
|
|
|
|
bool operator == (const SanitationInjuryPlace1& a, const SanitationInjuryPlace1& b) {
|
|
if (!operator == ((::ProjectDataManagement::PdmBaseName) a, (::ProjectDataManagement::PdmBaseName) b)){
|
|
return false;
|
|
}
|
|
|
|
if (a.version != b.version) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
bool operator != (const SanitationInjuryPlace1& a, const SanitationInjuryPlace1& b) {
|
|
return !operator ==(a, b);
|
|
}
|
|
|
|
void swap(SanitationInjuryPlace1& a, SanitationInjuryPlace1& b) noexcept
|
|
{
|
|
using std::swap;
|
|
|
|
swap((::ProjectDataManagement::PdmBaseName&) a, (::ProjectDataManagement::PdmBaseName&) b);
|
|
swap(a.version, b.version);
|
|
|
|
}
|
|
std::ostream& operator << (std::ostream& o,const SanitationInjuryPlace1& sample)
|
|
{
|
|
::rti::util::StreamFlagSaver flag_saver (o);
|
|
o <<"[";
|
|
o << static_cast<const ::ProjectDataManagement::PdmBaseName &>(sample);
|
|
o << "version: " << sample.version;
|
|
o <<"]";
|
|
return o;
|
|
}
|
|
|
|
// ---- SanitationInjuryPlace2:
|
|
|
|
SanitationInjuryPlace2::SanitationInjuryPlace2() :
|
|
version ("") {
|
|
|
|
}
|
|
|
|
SanitationInjuryPlace2::SanitationInjuryPlace2 (int32_t id_,const ::omg::types::string_view& name_,const ::omg::types::string_view& version_) :
|
|
::ProjectDataManagement::PdmBaseName(id_, name_) {
|
|
version = version_;
|
|
}
|
|
|
|
bool operator == (const SanitationInjuryPlace2& a, const SanitationInjuryPlace2& b) {
|
|
if (!operator == ((::ProjectDataManagement::PdmBaseName) a, (::ProjectDataManagement::PdmBaseName) b)){
|
|
return false;
|
|
}
|
|
|
|
if (a.version != b.version) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
bool operator != (const SanitationInjuryPlace2& a, const SanitationInjuryPlace2& b) {
|
|
return !operator ==(a, b);
|
|
}
|
|
|
|
void swap(SanitationInjuryPlace2& a, SanitationInjuryPlace2& b) noexcept
|
|
{
|
|
using std::swap;
|
|
|
|
swap((::ProjectDataManagement::PdmBaseName&) a, (::ProjectDataManagement::PdmBaseName&) b);
|
|
swap(a.version, b.version);
|
|
|
|
}
|
|
std::ostream& operator << (std::ostream& o,const SanitationInjuryPlace2& sample)
|
|
{
|
|
::rti::util::StreamFlagSaver flag_saver (o);
|
|
o <<"[";
|
|
o << static_cast<const ::ProjectDataManagement::PdmBaseName &>(sample);
|
|
o << "version: " << sample.version;
|
|
o <<"]";
|
|
return o;
|
|
}
|
|
|
|
// ---- SanitationMaterial:
|
|
|
|
SanitationMaterial::SanitationMaterial() :
|
|
description ("") ,
|
|
version ("") {
|
|
|
|
}
|
|
|
|
SanitationMaterial::SanitationMaterial (int32_t id_,const ::omg::types::string_view& name_,const ::omg::types::string_view& description_,const ::omg::types::string_view& version_) :
|
|
::ProjectDataManagement::PdmBaseName(id_, name_) {
|
|
description = description_;
|
|
version = version_;
|
|
}
|
|
|
|
bool operator == (const SanitationMaterial& a, const SanitationMaterial& b) {
|
|
if (!operator == ((::ProjectDataManagement::PdmBaseName) a, (::ProjectDataManagement::PdmBaseName) b)){
|
|
return false;
|
|
}
|
|
|
|
if (a.description != b.description) {
|
|
return false;
|
|
}
|
|
if (a.version != b.version) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
bool operator != (const SanitationMaterial& a, const SanitationMaterial& b) {
|
|
return !operator ==(a, b);
|
|
}
|
|
|
|
void swap(SanitationMaterial& a, SanitationMaterial& b) noexcept
|
|
{
|
|
using std::swap;
|
|
|
|
swap((::ProjectDataManagement::PdmBaseName&) a, (::ProjectDataManagement::PdmBaseName&) b);
|
|
swap(a.description, b.description);
|
|
swap(a.version, b.version);
|
|
|
|
}
|
|
std::ostream& operator << (std::ostream& o,const SanitationMaterial& sample)
|
|
{
|
|
::rti::util::StreamFlagSaver flag_saver (o);
|
|
o <<"[";
|
|
o << static_cast<const ::ProjectDataManagement::PdmBaseName &>(sample);
|
|
o << "description: " << sample.description<<", ";
|
|
o << "version: " << sample.version;
|
|
o <<"]";
|
|
return o;
|
|
}
|
|
|
|
// ---- SanitationProcedure:
|
|
|
|
SanitationProcedure::SanitationProcedure() :
|
|
type ("") ,
|
|
pdm_typeId (0) ,
|
|
minimumQualification (0) ,
|
|
longName ("") ,
|
|
dataCode (0ll) ,
|
|
version ("") {
|
|
|
|
}
|
|
|
|
SanitationProcedure::SanitationProcedure (int32_t id_,const ::omg::types::string_view& name_,const ::omg::types::string_view& type_,int32_t pdm_typeId_,int32_t minimumQualification_,const ::omg::types::string_view& longName_,int64_t dataCode_,const ::omg::types::string_view& version_) :
|
|
::ProjectDataManagement::PdmBaseName(id_, name_) {
|
|
type = type_;
|
|
pdm_typeId = pdm_typeId_;
|
|
minimumQualification = minimumQualification_;
|
|
longName = longName_;
|
|
dataCode = dataCode_;
|
|
version = version_;
|
|
}
|
|
|
|
bool operator == (const SanitationProcedure& a, const SanitationProcedure& b) {
|
|
if (!operator == ((::ProjectDataManagement::PdmBaseName) a, (::ProjectDataManagement::PdmBaseName) b)){
|
|
return false;
|
|
}
|
|
|
|
if (a.type != b.type) {
|
|
return false;
|
|
}
|
|
if (a.pdm_typeId != b.pdm_typeId) {
|
|
return false;
|
|
}
|
|
if (a.minimumQualification != b.minimumQualification) {
|
|
return false;
|
|
}
|
|
if (a.longName != b.longName) {
|
|
return false;
|
|
}
|
|
if (a.dataCode != b.dataCode) {
|
|
return false;
|
|
}
|
|
if (a.version != b.version) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
bool operator != (const SanitationProcedure& a, const SanitationProcedure& b) {
|
|
return !operator ==(a, b);
|
|
}
|
|
|
|
void swap(SanitationProcedure& a, SanitationProcedure& b) noexcept
|
|
{
|
|
using std::swap;
|
|
|
|
swap((::ProjectDataManagement::PdmBaseName&) a, (::ProjectDataManagement::PdmBaseName&) b);
|
|
swap(a.type, b.type);
|
|
swap(a.pdm_typeId, b.pdm_typeId);
|
|
swap(a.minimumQualification, b.minimumQualification);
|
|
swap(a.longName, b.longName);
|
|
swap(a.dataCode, b.dataCode);
|
|
swap(a.version, b.version);
|
|
|
|
}
|
|
std::ostream& operator << (std::ostream& o,const SanitationProcedure& sample)
|
|
{
|
|
::rti::util::StreamFlagSaver flag_saver (o);
|
|
o <<"[";
|
|
o << static_cast<const ::ProjectDataManagement::PdmBaseName &>(sample);
|
|
o << "type: " << sample.type<<", ";
|
|
o << "pdm_typeId: " << sample.pdm_typeId<<", ";
|
|
o << "minimumQualification: " << sample.minimumQualification<<", ";
|
|
o << "longName: " << sample.longName<<", ";
|
|
o << "dataCode: " << sample.dataCode<<", ";
|
|
o << "version: " << sample.version;
|
|
o <<"]";
|
|
return o;
|
|
}
|
|
|
|
// ---- TargetSubType:
|
|
|
|
TargetSubType::TargetSubType() :
|
|
abbreviation ("") ,
|
|
properties ("") {
|
|
|
|
}
|
|
|
|
TargetSubType::TargetSubType (int32_t id_,const ::omg::types::string_view& name_,const ::omg::types::string_view& abbreviation_,const ::omg::types::string_view& properties_) :
|
|
::ProjectDataManagement::PdmBaseName(id_, name_) {
|
|
abbreviation = abbreviation_;
|
|
properties = properties_;
|
|
}
|
|
|
|
bool operator == (const TargetSubType& a, const TargetSubType& b) {
|
|
if (!operator == ((::ProjectDataManagement::PdmBaseName) a, (::ProjectDataManagement::PdmBaseName) b)){
|
|
return false;
|
|
}
|
|
|
|
if (a.abbreviation != b.abbreviation) {
|
|
return false;
|
|
}
|
|
if (a.properties != b.properties) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
bool operator != (const TargetSubType& a, const TargetSubType& b) {
|
|
return !operator ==(a, b);
|
|
}
|
|
|
|
void swap(TargetSubType& a, TargetSubType& b) noexcept
|
|
{
|
|
using std::swap;
|
|
|
|
swap((::ProjectDataManagement::PdmBaseName&) a, (::ProjectDataManagement::PdmBaseName&) b);
|
|
swap(a.abbreviation, b.abbreviation);
|
|
swap(a.properties, b.properties);
|
|
|
|
}
|
|
std::ostream& operator << (std::ostream& o,const TargetSubType& sample)
|
|
{
|
|
::rti::util::StreamFlagSaver flag_saver (o);
|
|
o <<"[";
|
|
o << static_cast<const ::ProjectDataManagement::PdmBaseName &>(sample);
|
|
o << "abbreviation: " << sample.abbreviation<<", ";
|
|
o << "properties: " << sample.properties;
|
|
o <<"]";
|
|
return o;
|
|
}
|
|
|
|
// ---- TargetType:
|
|
|
|
TargetType::TargetType() :
|
|
abbreviation ("") ,
|
|
properties ("") {
|
|
|
|
}
|
|
|
|
TargetType::TargetType (int32_t id_,const ::omg::types::string_view& name_,const ::omg::types::string_view& abbreviation_,const ::omg::types::string_view& properties_) :
|
|
::ProjectDataManagement::PdmBaseName(id_, name_) {
|
|
abbreviation = abbreviation_;
|
|
properties = properties_;
|
|
}
|
|
|
|
bool operator == (const TargetType& a, const TargetType& b) {
|
|
if (!operator == ((::ProjectDataManagement::PdmBaseName) a, (::ProjectDataManagement::PdmBaseName) b)){
|
|
return false;
|
|
}
|
|
|
|
if (a.abbreviation != b.abbreviation) {
|
|
return false;
|
|
}
|
|
if (a.properties != b.properties) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
bool operator != (const TargetType& a, const TargetType& b) {
|
|
return !operator ==(a, b);
|
|
}
|
|
|
|
void swap(TargetType& a, TargetType& b) noexcept
|
|
{
|
|
using std::swap;
|
|
|
|
swap((::ProjectDataManagement::PdmBaseName&) a, (::ProjectDataManagement::PdmBaseName&) b);
|
|
swap(a.abbreviation, b.abbreviation);
|
|
swap(a.properties, b.properties);
|
|
|
|
}
|
|
std::ostream& operator << (std::ostream& o,const TargetType& sample)
|
|
{
|
|
::rti::util::StreamFlagSaver flag_saver (o);
|
|
o <<"[";
|
|
o << static_cast<const ::ProjectDataManagement::PdmBaseName &>(sample);
|
|
o << "abbreviation: " << sample.abbreviation<<", ";
|
|
o << "properties: " << sample.properties;
|
|
o <<"]";
|
|
return o;
|
|
}
|
|
|
|
// ---- TargetTypeTargetSubType:
|
|
|
|
TargetTypeTargetSubType::TargetTypeTargetSubType() :
|
|
targetTypeId (0) ,
|
|
targetSubTypeId (0) ,
|
|
properties ("") {
|
|
|
|
}
|
|
|
|
TargetTypeTargetSubType::TargetTypeTargetSubType (int32_t id_,int32_t targetTypeId_,int32_t targetSubTypeId_,const ::omg::types::string_view& properties_) :
|
|
::ProjectDataManagement::PdmBase(id_) {
|
|
targetTypeId = targetTypeId_;
|
|
targetSubTypeId = targetSubTypeId_;
|
|
properties = properties_;
|
|
}
|
|
|
|
bool operator == (const TargetTypeTargetSubType& a, const TargetTypeTargetSubType& b) {
|
|
if (!operator == ((::ProjectDataManagement::PdmBase) a, (::ProjectDataManagement::PdmBase) b)){
|
|
return false;
|
|
}
|
|
|
|
if (a.targetTypeId != b.targetTypeId) {
|
|
return false;
|
|
}
|
|
if (a.targetSubTypeId != b.targetSubTypeId) {
|
|
return false;
|
|
}
|
|
if (a.properties != b.properties) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
bool operator != (const TargetTypeTargetSubType& a, const TargetTypeTargetSubType& b) {
|
|
return !operator ==(a, b);
|
|
}
|
|
|
|
void swap(TargetTypeTargetSubType& a, TargetTypeTargetSubType& b) noexcept
|
|
{
|
|
using std::swap;
|
|
|
|
swap((::ProjectDataManagement::PdmBase&) a, (::ProjectDataManagement::PdmBase&) b);
|
|
swap(a.targetTypeId, b.targetTypeId);
|
|
swap(a.targetSubTypeId, b.targetSubTypeId);
|
|
swap(a.properties, b.properties);
|
|
|
|
}
|
|
std::ostream& operator << (std::ostream& o,const TargetTypeTargetSubType& sample)
|
|
{
|
|
::rti::util::StreamFlagSaver flag_saver (o);
|
|
o <<"[";
|
|
o << static_cast<const ::ProjectDataManagement::PdmBase &>(sample);
|
|
o << "targetTypeId: " << sample.targetTypeId<<", ";
|
|
o << "targetSubTypeId: " << sample.targetSubTypeId<<", ";
|
|
o << "properties: " << sample.properties;
|
|
o <<"]";
|
|
return o;
|
|
}
|
|
|
|
// ---- TranslationBlob:
|
|
|
|
TranslationBlob::TranslationBlob() :
|
|
md5sum ("") {
|
|
|
|
}
|
|
|
|
TranslationBlob::TranslationBlob (int32_t id_,const ::omg::types::sequence< uint8_t >& payload_,const ::omg::types::string_view& md5sum_) :
|
|
::ProjectDataManagement::PdmBase(id_) {
|
|
payload = payload_;
|
|
md5sum = md5sum_;
|
|
}
|
|
|
|
bool operator == (const TranslationBlob& a, const TranslationBlob& b) {
|
|
if (!operator == ((::ProjectDataManagement::PdmBase) a, (::ProjectDataManagement::PdmBase) b)){
|
|
return false;
|
|
}
|
|
|
|
if (a.payload != b.payload) {
|
|
return false;
|
|
}
|
|
if (a.md5sum != b.md5sum) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
bool operator != (const TranslationBlob& a, const TranslationBlob& b) {
|
|
return !operator ==(a, b);
|
|
}
|
|
|
|
void swap(TranslationBlob& a, TranslationBlob& b) noexcept
|
|
{
|
|
using std::swap;
|
|
|
|
swap((::ProjectDataManagement::PdmBase&) a, (::ProjectDataManagement::PdmBase&) b);
|
|
swap(a.payload, b.payload);
|
|
swap(a.md5sum, b.md5sum);
|
|
|
|
}
|
|
std::ostream& operator << (std::ostream& o,const TranslationBlob& sample)
|
|
{
|
|
::rti::util::StreamFlagSaver flag_saver (o);
|
|
o <<"[";
|
|
o << static_cast<const ::ProjectDataManagement::PdmBase &>(sample);
|
|
o << "payload: " << sample.payload<<", ";
|
|
o << "md5sum: " << sample.md5sum;
|
|
o <<"]";
|
|
return o;
|
|
}
|
|
|
|
// ---- UpdateChargeNamesRequest:
|
|
|
|
UpdateChargeNamesRequest::UpdateChargeNamesRequest() :
|
|
shortName ("") {
|
|
|
|
}
|
|
|
|
UpdateChargeNamesRequest::UpdateChargeNamesRequest (int32_t id_,const ::omg::types::string_view& name_,const ::omg::types::string_view& shortName_) :
|
|
::ProjectDataManagement::PdmBaseName(id_, name_) {
|
|
shortName = shortName_;
|
|
}
|
|
|
|
bool operator == (const UpdateChargeNamesRequest& a, const UpdateChargeNamesRequest& b) {
|
|
if (!operator == ((::ProjectDataManagement::PdmBaseName) a, (::ProjectDataManagement::PdmBaseName) b)){
|
|
return false;
|
|
}
|
|
|
|
if (a.shortName != b.shortName) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
bool operator != (const UpdateChargeNamesRequest& a, const UpdateChargeNamesRequest& b) {
|
|
return !operator ==(a, b);
|
|
}
|
|
|
|
void swap(UpdateChargeNamesRequest& a, UpdateChargeNamesRequest& b) noexcept
|
|
{
|
|
using std::swap;
|
|
|
|
swap((::ProjectDataManagement::PdmBaseName&) a, (::ProjectDataManagement::PdmBaseName&) b);
|
|
swap(a.shortName, b.shortName);
|
|
|
|
}
|
|
std::ostream& operator << (std::ostream& o,const UpdateChargeNamesRequest& sample)
|
|
{
|
|
::rti::util::StreamFlagSaver flag_saver (o);
|
|
o <<"[";
|
|
o << static_cast<const ::ProjectDataManagement::PdmBaseName &>(sample);
|
|
o << "shortName: " << sample.shortName;
|
|
o <<"]";
|
|
return o;
|
|
}
|
|
|
|
// ---- VulnerabilityKind:
|
|
|
|
VulnerabilityKind::VulnerabilityKind() :
|
|
playerTypeClassId (0) ,
|
|
taVulnerabilityKind (0) ,
|
|
vulnerabilityClassId(ProjectDataManagement::VulnerabilityClass::VulnerabilityClass_Unknown) {
|
|
|
|
}
|
|
|
|
VulnerabilityKind::VulnerabilityKind (int32_t id_,const ::omg::types::string_view& name_,int32_t playerTypeClassId_,int32_t taVulnerabilityKind_,const ::ProjectDataManagement::VulnerabilityClass& vulnerabilityClassId_) :
|
|
::ProjectDataManagement::PdmBaseName(id_, name_) {
|
|
playerTypeClassId = playerTypeClassId_;
|
|
taVulnerabilityKind = taVulnerabilityKind_;
|
|
vulnerabilityClassId = vulnerabilityClassId_;
|
|
}
|
|
|
|
bool operator == (const VulnerabilityKind& a, const VulnerabilityKind& b) {
|
|
if (!operator == ((::ProjectDataManagement::PdmBaseName) a, (::ProjectDataManagement::PdmBaseName) b)){
|
|
return false;
|
|
}
|
|
|
|
if (a.playerTypeClassId != b.playerTypeClassId) {
|
|
return false;
|
|
}
|
|
if (a.taVulnerabilityKind != b.taVulnerabilityKind) {
|
|
return false;
|
|
}
|
|
if (a.vulnerabilityClassId != b.vulnerabilityClassId) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
bool operator != (const VulnerabilityKind& a, const VulnerabilityKind& b) {
|
|
return !operator ==(a, b);
|
|
}
|
|
|
|
void swap(VulnerabilityKind& a, VulnerabilityKind& b) noexcept
|
|
{
|
|
using std::swap;
|
|
|
|
swap((::ProjectDataManagement::PdmBaseName&) a, (::ProjectDataManagement::PdmBaseName&) b);
|
|
swap(a.playerTypeClassId, b.playerTypeClassId);
|
|
swap(a.taVulnerabilityKind, b.taVulnerabilityKind);
|
|
swap(a.vulnerabilityClassId, b.vulnerabilityClassId);
|
|
|
|
}
|
|
std::ostream& operator << (std::ostream& o,const VulnerabilityKind& sample)
|
|
{
|
|
::rti::util::StreamFlagSaver flag_saver (o);
|
|
o <<"[";
|
|
o << static_cast<const ::ProjectDataManagement::PdmBaseName &>(sample);
|
|
o << "playerTypeClassId: " << sample.playerTypeClassId<<", ";
|
|
o << "taVulnerabilityKind: " << sample.taVulnerabilityKind<<", ";
|
|
o << "vulnerabilityClassId: " << sample.vulnerabilityClassId;
|
|
o <<"]";
|
|
return o;
|
|
}
|
|
|
|
} // namespace ProjectDataManagement
|
|
|
|
#ifdef NDDS_STANDALONE_TYPE
|
|
namespace rti {
|
|
namespace topic {
|
|
}
|
|
}
|
|
|
|
#else
|
|
// --- Type traits: -------------------------------------------------
|
|
|
|
namespace rti {
|
|
namespace topic {
|
|
|
|
template<>
|
|
struct native_type_code< ::ProjectDataManagement::PdmBase > {
|
|
|
|
static DDS_TypeCode * get()
|
|
{
|
|
using namespace ::rti::topic::interpreter;
|
|
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
static DDS_TypeCode_Member PdmBase_g_tc_members[1]=
|
|
{
|
|
|
|
{
|
|
(char *)"id",/* Member name */
|
|
{
|
|
0,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_KEY_MEMBER , /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
}
|
|
};
|
|
|
|
static DDS_TypeCode PdmBase_g_tc =
|
|
{{
|
|
DDS_TK_STRUCT, /* Kind */
|
|
DDS_BOOLEAN_FALSE, /* Ignored */
|
|
-1, /*Ignored*/
|
|
(char *)"ProjectDataManagement::PdmBase", /* Name */
|
|
NULL, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
1, /* Number of members */
|
|
PdmBase_g_tc_members, /* Members */
|
|
DDS_VM_NONE, /* Ignored */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER,
|
|
DDS_BOOLEAN_TRUE, /* _isCopyable */
|
|
NULL, /* _sampleAccessInfo: assigned later */
|
|
NULL /* _typePlugin: assigned later */
|
|
}}; /* Type code for PdmBase*/
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return &PdmBase_g_tc;
|
|
}
|
|
|
|
PdmBase_g_tc._data._annotations._allowedDataRepresentationMask = 5;
|
|
|
|
PdmBase_g_tc_members[0]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
|
|
/* Initialize the values for member annotations. */
|
|
PdmBase_g_tc_members[0]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
PdmBase_g_tc_members[0]._annotations._defaultValue._u.long_value = 0;
|
|
PdmBase_g_tc_members[0]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
PdmBase_g_tc_members[0]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
PdmBase_g_tc_members[0]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
PdmBase_g_tc_members[0]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
|
|
PdmBase_g_tc._data._sampleAccessInfo = sample_access_info();
|
|
PdmBase_g_tc._data._typePlugin = type_plugin_info();
|
|
|
|
is_initialized.store(true, std::memory_order_release);
|
|
|
|
return &PdmBase_g_tc;
|
|
}
|
|
|
|
static RTIXCdrSampleAccessInfo * sample_access_info()
|
|
{
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
::ProjectDataManagement::PdmBase *sample;
|
|
|
|
static RTIXCdrMemberAccessInfo PdmBase_g_memberAccessInfos[1] =
|
|
{RTIXCdrMemberAccessInfo_INITIALIZER};
|
|
|
|
static RTIXCdrSampleAccessInfo PdmBase_g_sampleAccessInfo =
|
|
RTIXCdrSampleAccessInfo_INITIALIZER;
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return (RTIXCdrSampleAccessInfo*) &PdmBase_g_sampleAccessInfo;
|
|
}
|
|
|
|
RTIXCdrHeap_allocateStruct(
|
|
&sample,
|
|
::ProjectDataManagement::PdmBase);
|
|
if (sample == NULL) {
|
|
return NULL;
|
|
}
|
|
|
|
PdmBase_g_memberAccessInfos[0].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->id - (char *)sample);
|
|
|
|
PdmBase_g_sampleAccessInfo.memberAccessInfos =
|
|
PdmBase_g_memberAccessInfos;
|
|
|
|
{
|
|
size_t candidateTypeSize = sizeof(::ProjectDataManagement::PdmBase);
|
|
|
|
if (candidateTypeSize > RTIXCdrLong_MAX) {
|
|
PdmBase_g_sampleAccessInfo.typeSize[0] =
|
|
RTIXCdrLong_MAX;
|
|
} else {
|
|
PdmBase_g_sampleAccessInfo.typeSize[0] =
|
|
(RTIXCdrUnsignedLong) candidateTypeSize;
|
|
}
|
|
}
|
|
|
|
PdmBase_g_sampleAccessInfo.useGetMemberValueOnlyWithRef =
|
|
RTI_XCDR_TRUE;
|
|
|
|
PdmBase_g_sampleAccessInfo.getMemberValuePointerFcn =
|
|
interpreter::get_aggregation_value_pointer< ::ProjectDataManagement::PdmBase >;
|
|
|
|
PdmBase_g_sampleAccessInfo.languageBinding =
|
|
RTI_XCDR_TYPE_BINDING_CPP_11_STL ;
|
|
|
|
RTIXCdrHeap_freeStruct(sample);
|
|
is_initialized.store(true, std::memory_order_release);
|
|
return (RTIXCdrSampleAccessInfo*) &PdmBase_g_sampleAccessInfo;
|
|
}
|
|
static RTIXCdrTypePlugin * type_plugin_info()
|
|
{
|
|
static RTIXCdrTypePlugin PdmBase_g_typePlugin =
|
|
{
|
|
NULL, /* serialize */
|
|
NULL, /* serialize_key */
|
|
NULL, /* deserialize_sample */
|
|
NULL, /* deserialize_key_sample */
|
|
NULL, /* skip */
|
|
NULL, /* get_serialized_sample_size */
|
|
NULL, /* get_serialized_sample_max_size_ex */
|
|
NULL, /* get_serialized_key_max_size_ex */
|
|
NULL, /* get_serialized_sample_min_size */
|
|
NULL, /* serialized_sample_to_key */
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL
|
|
};
|
|
|
|
return &PdmBase_g_typePlugin;
|
|
}
|
|
}; // native_type_code
|
|
|
|
const ::dds::core::xtypes::StructType& dynamic_type< ::ProjectDataManagement::PdmBase >::get()
|
|
{
|
|
return static_cast<const ::dds::core::xtypes::StructType&>(
|
|
::rti::core::native_conversions::cast_from_native< ::dds::core::xtypes::DynamicType >(
|
|
*(native_type_code< ::ProjectDataManagement::PdmBase >::get())));
|
|
}
|
|
|
|
template<>
|
|
struct native_type_code< ::ProjectDataManagement::PdmBaseName > {
|
|
|
|
static DDS_TypeCode * get()
|
|
{
|
|
using namespace ::rti::topic::interpreter;
|
|
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
static DDS_TypeCode PdmBaseName_g_tc_name_string;
|
|
|
|
static DDS_TypeCode_Member PdmBaseName_g_tc_members[1]=
|
|
{
|
|
|
|
{
|
|
(char *)"name",/* Member name */
|
|
{
|
|
1,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
}
|
|
};
|
|
|
|
static DDS_TypeCode PdmBaseName_g_tc =
|
|
{{
|
|
DDS_TK_VALUE, /* Kind */
|
|
DDS_BOOLEAN_FALSE, /* Ignored */
|
|
-1, /*Ignored*/
|
|
(char *)"ProjectDataManagement::PdmBaseName", /* Name */
|
|
NULL, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
1, /* Number of members */
|
|
PdmBaseName_g_tc_members, /* Members */
|
|
DDS_VM_NONE, /* Ignored */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER,
|
|
DDS_BOOLEAN_TRUE, /* _isCopyable */
|
|
NULL, /* _sampleAccessInfo: assigned later */
|
|
NULL /* _typePlugin: assigned later */
|
|
}}; /* Type code for PdmBaseName*/
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return &PdmBaseName_g_tc;
|
|
}
|
|
|
|
PdmBaseName_g_tc_name_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
|
|
PdmBaseName_g_tc._data._annotations._allowedDataRepresentationMask = 5;
|
|
|
|
PdmBaseName_g_tc_members[0]._representation._typeCode = (RTICdrTypeCode *)&PdmBaseName_g_tc_name_string;
|
|
|
|
/* Initialize the values for member annotations. */
|
|
PdmBaseName_g_tc_members[0]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
PdmBaseName_g_tc_members[0]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
|
|
PdmBaseName_g_tc._data._typeCode = (RTICdrTypeCode *)&::rti::topic::dynamic_type< ::ProjectDataManagement::PdmBase >::get().native(); /* Base class */
|
|
|
|
PdmBaseName_g_tc._data._sampleAccessInfo = sample_access_info();
|
|
PdmBaseName_g_tc._data._typePlugin = type_plugin_info();
|
|
|
|
is_initialized.store(true, std::memory_order_release);
|
|
|
|
return &PdmBaseName_g_tc;
|
|
}
|
|
|
|
static RTIXCdrSampleAccessInfo * sample_access_info()
|
|
{
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
::ProjectDataManagement::PdmBaseName *sample;
|
|
|
|
static RTIXCdrMemberAccessInfo PdmBaseName_g_memberAccessInfos[1] =
|
|
{RTIXCdrMemberAccessInfo_INITIALIZER};
|
|
|
|
static RTIXCdrSampleAccessInfo PdmBaseName_g_sampleAccessInfo =
|
|
RTIXCdrSampleAccessInfo_INITIALIZER;
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return (RTIXCdrSampleAccessInfo*) &PdmBaseName_g_sampleAccessInfo;
|
|
}
|
|
|
|
RTIXCdrHeap_allocateStruct(
|
|
&sample,
|
|
::ProjectDataManagement::PdmBaseName);
|
|
if (sample == NULL) {
|
|
return NULL;
|
|
}
|
|
|
|
PdmBaseName_g_memberAccessInfos[0].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->name - (char *)sample);
|
|
|
|
PdmBaseName_g_sampleAccessInfo.memberAccessInfos =
|
|
PdmBaseName_g_memberAccessInfos;
|
|
|
|
{
|
|
size_t candidateTypeSize = sizeof(::ProjectDataManagement::PdmBaseName);
|
|
|
|
if (candidateTypeSize > RTIXCdrLong_MAX) {
|
|
PdmBaseName_g_sampleAccessInfo.typeSize[0] =
|
|
RTIXCdrLong_MAX;
|
|
} else {
|
|
PdmBaseName_g_sampleAccessInfo.typeSize[0] =
|
|
(RTIXCdrUnsignedLong) candidateTypeSize;
|
|
}
|
|
}
|
|
|
|
PdmBaseName_g_sampleAccessInfo.useGetMemberValueOnlyWithRef =
|
|
RTI_XCDR_TRUE;
|
|
|
|
PdmBaseName_g_sampleAccessInfo.getMemberValuePointerFcn =
|
|
interpreter::get_aggregation_value_pointer< ::ProjectDataManagement::PdmBaseName >;
|
|
|
|
PdmBaseName_g_sampleAccessInfo.languageBinding =
|
|
RTI_XCDR_TYPE_BINDING_CPP_11_STL ;
|
|
|
|
RTIXCdrHeap_freeStruct(sample);
|
|
is_initialized.store(true, std::memory_order_release);
|
|
return (RTIXCdrSampleAccessInfo*) &PdmBaseName_g_sampleAccessInfo;
|
|
}
|
|
static RTIXCdrTypePlugin * type_plugin_info()
|
|
{
|
|
static RTIXCdrTypePlugin PdmBaseName_g_typePlugin =
|
|
{
|
|
NULL, /* serialize */
|
|
NULL, /* serialize_key */
|
|
NULL, /* deserialize_sample */
|
|
NULL, /* deserialize_key_sample */
|
|
NULL, /* skip */
|
|
NULL, /* get_serialized_sample_size */
|
|
NULL, /* get_serialized_sample_max_size_ex */
|
|
NULL, /* get_serialized_key_max_size_ex */
|
|
NULL, /* get_serialized_sample_min_size */
|
|
NULL, /* serialized_sample_to_key */
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL
|
|
};
|
|
|
|
return &PdmBaseName_g_typePlugin;
|
|
}
|
|
}; // native_type_code
|
|
|
|
const ::dds::core::xtypes::StructType& dynamic_type< ::ProjectDataManagement::PdmBaseName >::get()
|
|
{
|
|
return static_cast<const ::dds::core::xtypes::StructType&>(
|
|
::rti::core::native_conversions::cast_from_native< ::dds::core::xtypes::DynamicType >(
|
|
*(native_type_code< ::ProjectDataManagement::PdmBaseName >::get())));
|
|
}
|
|
|
|
template<>
|
|
struct native_type_code< ::ProjectDataManagement::BiteComponentText > {
|
|
|
|
static DDS_TypeCode * get()
|
|
{
|
|
using namespace ::rti::topic::interpreter;
|
|
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
static DDS_TypeCode_Member BiteComponentText_g_tc_members[3]=
|
|
{
|
|
|
|
{
|
|
(char *)"canDeviceId",/* Member name */
|
|
{
|
|
2,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"subDeviceId",/* Member name */
|
|
{
|
|
3,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"errorNumber",/* Member name */
|
|
{
|
|
4,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
}
|
|
};
|
|
|
|
static DDS_TypeCode BiteComponentText_g_tc =
|
|
{{
|
|
DDS_TK_VALUE, /* Kind */
|
|
DDS_BOOLEAN_FALSE, /* Ignored */
|
|
-1, /*Ignored*/
|
|
(char *)"ProjectDataManagement::BiteComponentText", /* Name */
|
|
NULL, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
3, /* Number of members */
|
|
BiteComponentText_g_tc_members, /* Members */
|
|
DDS_VM_NONE, /* Ignored */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER,
|
|
DDS_BOOLEAN_TRUE, /* _isCopyable */
|
|
NULL, /* _sampleAccessInfo: assigned later */
|
|
NULL /* _typePlugin: assigned later */
|
|
}}; /* Type code for BiteComponentText*/
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return &BiteComponentText_g_tc;
|
|
}
|
|
|
|
BiteComponentText_g_tc._data._annotations._allowedDataRepresentationMask = 5;
|
|
|
|
BiteComponentText_g_tc_members[0]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
BiteComponentText_g_tc_members[1]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
BiteComponentText_g_tc_members[2]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
|
|
/* Initialize the values for member annotations. */
|
|
BiteComponentText_g_tc_members[0]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
BiteComponentText_g_tc_members[0]._annotations._defaultValue._u.long_value = 0;
|
|
BiteComponentText_g_tc_members[0]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
BiteComponentText_g_tc_members[0]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
BiteComponentText_g_tc_members[0]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
BiteComponentText_g_tc_members[0]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
BiteComponentText_g_tc_members[1]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
BiteComponentText_g_tc_members[1]._annotations._defaultValue._u.long_value = 0;
|
|
BiteComponentText_g_tc_members[1]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
BiteComponentText_g_tc_members[1]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
BiteComponentText_g_tc_members[1]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
BiteComponentText_g_tc_members[1]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
BiteComponentText_g_tc_members[2]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
BiteComponentText_g_tc_members[2]._annotations._defaultValue._u.long_value = 0;
|
|
BiteComponentText_g_tc_members[2]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
BiteComponentText_g_tc_members[2]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
BiteComponentText_g_tc_members[2]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
BiteComponentText_g_tc_members[2]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
|
|
BiteComponentText_g_tc._data._typeCode = (RTICdrTypeCode *)&::rti::topic::dynamic_type< ::ProjectDataManagement::PdmBaseName >::get().native(); /* Base class */
|
|
|
|
BiteComponentText_g_tc._data._sampleAccessInfo = sample_access_info();
|
|
BiteComponentText_g_tc._data._typePlugin = type_plugin_info();
|
|
|
|
is_initialized.store(true, std::memory_order_release);
|
|
|
|
return &BiteComponentText_g_tc;
|
|
}
|
|
|
|
static RTIXCdrSampleAccessInfo * sample_access_info()
|
|
{
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
::ProjectDataManagement::BiteComponentText *sample;
|
|
|
|
static RTIXCdrMemberAccessInfo BiteComponentText_g_memberAccessInfos[3] =
|
|
{RTIXCdrMemberAccessInfo_INITIALIZER};
|
|
|
|
static RTIXCdrSampleAccessInfo BiteComponentText_g_sampleAccessInfo =
|
|
RTIXCdrSampleAccessInfo_INITIALIZER;
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return (RTIXCdrSampleAccessInfo*) &BiteComponentText_g_sampleAccessInfo;
|
|
}
|
|
|
|
RTIXCdrHeap_allocateStruct(
|
|
&sample,
|
|
::ProjectDataManagement::BiteComponentText);
|
|
if (sample == NULL) {
|
|
return NULL;
|
|
}
|
|
|
|
BiteComponentText_g_memberAccessInfos[0].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->canDeviceId - (char *)sample);
|
|
|
|
BiteComponentText_g_memberAccessInfos[1].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->subDeviceId - (char *)sample);
|
|
|
|
BiteComponentText_g_memberAccessInfos[2].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->errorNumber - (char *)sample);
|
|
|
|
BiteComponentText_g_sampleAccessInfo.memberAccessInfos =
|
|
BiteComponentText_g_memberAccessInfos;
|
|
|
|
{
|
|
size_t candidateTypeSize = sizeof(::ProjectDataManagement::BiteComponentText);
|
|
|
|
if (candidateTypeSize > RTIXCdrLong_MAX) {
|
|
BiteComponentText_g_sampleAccessInfo.typeSize[0] =
|
|
RTIXCdrLong_MAX;
|
|
} else {
|
|
BiteComponentText_g_sampleAccessInfo.typeSize[0] =
|
|
(RTIXCdrUnsignedLong) candidateTypeSize;
|
|
}
|
|
}
|
|
|
|
BiteComponentText_g_sampleAccessInfo.useGetMemberValueOnlyWithRef =
|
|
RTI_XCDR_TRUE;
|
|
|
|
BiteComponentText_g_sampleAccessInfo.getMemberValuePointerFcn =
|
|
interpreter::get_aggregation_value_pointer< ::ProjectDataManagement::BiteComponentText >;
|
|
|
|
BiteComponentText_g_sampleAccessInfo.languageBinding =
|
|
RTI_XCDR_TYPE_BINDING_CPP_11_STL ;
|
|
|
|
RTIXCdrHeap_freeStruct(sample);
|
|
is_initialized.store(true, std::memory_order_release);
|
|
return (RTIXCdrSampleAccessInfo*) &BiteComponentText_g_sampleAccessInfo;
|
|
}
|
|
static RTIXCdrTypePlugin * type_plugin_info()
|
|
{
|
|
static RTIXCdrTypePlugin BiteComponentText_g_typePlugin =
|
|
{
|
|
NULL, /* serialize */
|
|
NULL, /* serialize_key */
|
|
NULL, /* deserialize_sample */
|
|
NULL, /* deserialize_key_sample */
|
|
NULL, /* skip */
|
|
NULL, /* get_serialized_sample_size */
|
|
NULL, /* get_serialized_sample_max_size_ex */
|
|
NULL, /* get_serialized_key_max_size_ex */
|
|
NULL, /* get_serialized_sample_min_size */
|
|
NULL, /* serialized_sample_to_key */
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL
|
|
};
|
|
|
|
return &BiteComponentText_g_typePlugin;
|
|
}
|
|
}; // native_type_code
|
|
|
|
const ::dds::core::xtypes::StructType& dynamic_type< ::ProjectDataManagement::BiteComponentText >::get()
|
|
{
|
|
return static_cast<const ::dds::core::xtypes::StructType&>(
|
|
::rti::core::native_conversions::cast_from_native< ::dds::core::xtypes::DynamicType >(
|
|
*(native_type_code< ::ProjectDataManagement::BiteComponentText >::get())));
|
|
}
|
|
|
|
template<>
|
|
struct native_type_code< ::ProjectDataManagement::BuildingChargeEffect > {
|
|
|
|
static DDS_TypeCode * get()
|
|
{
|
|
using namespace ::rti::topic::interpreter;
|
|
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
static DDS_TypeCode_Member BuildingChargeEffect_g_tc_members[6]=
|
|
{
|
|
|
|
{
|
|
(char *)"chargeTypeId",/* Member name */
|
|
{
|
|
1,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"destructiveFactor",/* Member name */
|
|
{
|
|
2,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"penetrationFactor",/* Member name */
|
|
{
|
|
3,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"hitSound",/* Member name */
|
|
{
|
|
4,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"difcueLight",/* Member name */
|
|
{
|
|
5,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"difcuePyro",/* Member name */
|
|
{
|
|
6,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
}
|
|
};
|
|
|
|
static DDS_TypeCode BuildingChargeEffect_g_tc =
|
|
{{
|
|
DDS_TK_VALUE, /* Kind */
|
|
DDS_BOOLEAN_FALSE, /* Ignored */
|
|
-1, /*Ignored*/
|
|
(char *)"ProjectDataManagement::BuildingChargeEffect", /* Name */
|
|
NULL, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
6, /* Number of members */
|
|
BuildingChargeEffect_g_tc_members, /* Members */
|
|
DDS_VM_NONE, /* Ignored */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER,
|
|
DDS_BOOLEAN_TRUE, /* _isCopyable */
|
|
NULL, /* _sampleAccessInfo: assigned later */
|
|
NULL /* _typePlugin: assigned later */
|
|
}}; /* Type code for BuildingChargeEffect*/
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return &BuildingChargeEffect_g_tc;
|
|
}
|
|
|
|
BuildingChargeEffect_g_tc._data._annotations._allowedDataRepresentationMask = 5;
|
|
|
|
BuildingChargeEffect_g_tc_members[0]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
BuildingChargeEffect_g_tc_members[1]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
BuildingChargeEffect_g_tc_members[2]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
BuildingChargeEffect_g_tc_members[3]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
BuildingChargeEffect_g_tc_members[4]._representation._typeCode = (RTICdrTypeCode *)&::rti::topic::interpreter::initialize_bool_typecode();
|
|
BuildingChargeEffect_g_tc_members[5]._representation._typeCode = (RTICdrTypeCode *)&::rti::topic::interpreter::initialize_bool_typecode();
|
|
|
|
/* Initialize the values for member annotations. */
|
|
BuildingChargeEffect_g_tc_members[0]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
BuildingChargeEffect_g_tc_members[0]._annotations._defaultValue._u.long_value = 0;
|
|
BuildingChargeEffect_g_tc_members[0]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
BuildingChargeEffect_g_tc_members[0]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
BuildingChargeEffect_g_tc_members[0]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
BuildingChargeEffect_g_tc_members[0]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
BuildingChargeEffect_g_tc_members[1]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
BuildingChargeEffect_g_tc_members[1]._annotations._defaultValue._u.long_value = 0;
|
|
BuildingChargeEffect_g_tc_members[1]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
BuildingChargeEffect_g_tc_members[1]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
BuildingChargeEffect_g_tc_members[1]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
BuildingChargeEffect_g_tc_members[1]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
BuildingChargeEffect_g_tc_members[2]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
BuildingChargeEffect_g_tc_members[2]._annotations._defaultValue._u.long_value = 0;
|
|
BuildingChargeEffect_g_tc_members[2]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
BuildingChargeEffect_g_tc_members[2]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
BuildingChargeEffect_g_tc_members[2]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
BuildingChargeEffect_g_tc_members[2]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
BuildingChargeEffect_g_tc_members[3]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
BuildingChargeEffect_g_tc_members[3]._annotations._defaultValue._u.long_value = 0;
|
|
BuildingChargeEffect_g_tc_members[3]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
BuildingChargeEffect_g_tc_members[3]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
BuildingChargeEffect_g_tc_members[3]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
BuildingChargeEffect_g_tc_members[3]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
BuildingChargeEffect_g_tc_members[4]._annotations._defaultValue._d = RTI_XCDR_TK_BOOLEAN;
|
|
BuildingChargeEffect_g_tc_members[4]._annotations._defaultValue._u.boolean_value = 0;
|
|
BuildingChargeEffect_g_tc_members[5]._annotations._defaultValue._d = RTI_XCDR_TK_BOOLEAN;
|
|
BuildingChargeEffect_g_tc_members[5]._annotations._defaultValue._u.boolean_value = 0;
|
|
|
|
BuildingChargeEffect_g_tc._data._typeCode = (RTICdrTypeCode *)&::rti::topic::dynamic_type< ::ProjectDataManagement::PdmBase >::get().native(); /* Base class */
|
|
|
|
BuildingChargeEffect_g_tc._data._sampleAccessInfo = sample_access_info();
|
|
BuildingChargeEffect_g_tc._data._typePlugin = type_plugin_info();
|
|
|
|
is_initialized.store(true, std::memory_order_release);
|
|
|
|
return &BuildingChargeEffect_g_tc;
|
|
}
|
|
|
|
static RTIXCdrSampleAccessInfo * sample_access_info()
|
|
{
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
::ProjectDataManagement::BuildingChargeEffect *sample;
|
|
|
|
static RTIXCdrMemberAccessInfo BuildingChargeEffect_g_memberAccessInfos[6] =
|
|
{RTIXCdrMemberAccessInfo_INITIALIZER};
|
|
|
|
static RTIXCdrSampleAccessInfo BuildingChargeEffect_g_sampleAccessInfo =
|
|
RTIXCdrSampleAccessInfo_INITIALIZER;
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return (RTIXCdrSampleAccessInfo*) &BuildingChargeEffect_g_sampleAccessInfo;
|
|
}
|
|
|
|
RTIXCdrHeap_allocateStruct(
|
|
&sample,
|
|
::ProjectDataManagement::BuildingChargeEffect);
|
|
if (sample == NULL) {
|
|
return NULL;
|
|
}
|
|
|
|
BuildingChargeEffect_g_memberAccessInfos[0].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->chargeTypeId - (char *)sample);
|
|
|
|
BuildingChargeEffect_g_memberAccessInfos[1].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->destructiveFactor - (char *)sample);
|
|
|
|
BuildingChargeEffect_g_memberAccessInfos[2].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->penetrationFactor - (char *)sample);
|
|
|
|
BuildingChargeEffect_g_memberAccessInfos[3].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->hitSound - (char *)sample);
|
|
|
|
BuildingChargeEffect_g_memberAccessInfos[4].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->difcueLight - (char *)sample);
|
|
|
|
BuildingChargeEffect_g_memberAccessInfos[5].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->difcuePyro - (char *)sample);
|
|
|
|
BuildingChargeEffect_g_sampleAccessInfo.memberAccessInfos =
|
|
BuildingChargeEffect_g_memberAccessInfos;
|
|
|
|
{
|
|
size_t candidateTypeSize = sizeof(::ProjectDataManagement::BuildingChargeEffect);
|
|
|
|
if (candidateTypeSize > RTIXCdrLong_MAX) {
|
|
BuildingChargeEffect_g_sampleAccessInfo.typeSize[0] =
|
|
RTIXCdrLong_MAX;
|
|
} else {
|
|
BuildingChargeEffect_g_sampleAccessInfo.typeSize[0] =
|
|
(RTIXCdrUnsignedLong) candidateTypeSize;
|
|
}
|
|
}
|
|
|
|
BuildingChargeEffect_g_sampleAccessInfo.useGetMemberValueOnlyWithRef =
|
|
RTI_XCDR_TRUE;
|
|
|
|
BuildingChargeEffect_g_sampleAccessInfo.getMemberValuePointerFcn =
|
|
interpreter::get_aggregation_value_pointer< ::ProjectDataManagement::BuildingChargeEffect >;
|
|
|
|
BuildingChargeEffect_g_sampleAccessInfo.languageBinding =
|
|
RTI_XCDR_TYPE_BINDING_CPP_11_STL ;
|
|
|
|
RTIXCdrHeap_freeStruct(sample);
|
|
is_initialized.store(true, std::memory_order_release);
|
|
return (RTIXCdrSampleAccessInfo*) &BuildingChargeEffect_g_sampleAccessInfo;
|
|
}
|
|
static RTIXCdrTypePlugin * type_plugin_info()
|
|
{
|
|
static RTIXCdrTypePlugin BuildingChargeEffect_g_typePlugin =
|
|
{
|
|
NULL, /* serialize */
|
|
NULL, /* serialize_key */
|
|
NULL, /* deserialize_sample */
|
|
NULL, /* deserialize_key_sample */
|
|
NULL, /* skip */
|
|
NULL, /* get_serialized_sample_size */
|
|
NULL, /* get_serialized_sample_max_size_ex */
|
|
NULL, /* get_serialized_key_max_size_ex */
|
|
NULL, /* get_serialized_sample_min_size */
|
|
NULL, /* serialized_sample_to_key */
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL
|
|
};
|
|
|
|
return &BuildingChargeEffect_g_typePlugin;
|
|
}
|
|
}; // native_type_code
|
|
|
|
const ::dds::core::xtypes::StructType& dynamic_type< ::ProjectDataManagement::BuildingChargeEffect >::get()
|
|
{
|
|
return static_cast<const ::dds::core::xtypes::StructType&>(
|
|
::rti::core::native_conversions::cast_from_native< ::dds::core::xtypes::DynamicType >(
|
|
*(native_type_code< ::ProjectDataManagement::BuildingChargeEffect >::get())));
|
|
}
|
|
|
|
template<>
|
|
struct native_type_code< ::ProjectDataManagement::CanComponentString > {
|
|
|
|
static DDS_TypeCode * get()
|
|
{
|
|
using namespace ::rti::topic::interpreter;
|
|
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
static DDS_TypeCode_Member CanComponentString_g_tc_members[3]=
|
|
{
|
|
|
|
{
|
|
(char *)"pdm_bitMask",/* Member name */
|
|
{
|
|
2,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"canDeviceId",/* Member name */
|
|
{
|
|
3,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"subDeviceId",/* Member name */
|
|
{
|
|
4,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
}
|
|
};
|
|
|
|
static DDS_TypeCode CanComponentString_g_tc =
|
|
{{
|
|
DDS_TK_VALUE, /* Kind */
|
|
DDS_BOOLEAN_FALSE, /* Ignored */
|
|
-1, /*Ignored*/
|
|
(char *)"ProjectDataManagement::CanComponentString", /* Name */
|
|
NULL, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
3, /* Number of members */
|
|
CanComponentString_g_tc_members, /* Members */
|
|
DDS_VM_NONE, /* Ignored */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER,
|
|
DDS_BOOLEAN_TRUE, /* _isCopyable */
|
|
NULL, /* _sampleAccessInfo: assigned later */
|
|
NULL /* _typePlugin: assigned later */
|
|
}}; /* Type code for CanComponentString*/
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return &CanComponentString_g_tc;
|
|
}
|
|
|
|
CanComponentString_g_tc._data._annotations._allowedDataRepresentationMask = 5;
|
|
|
|
CanComponentString_g_tc_members[0]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_longlong;
|
|
CanComponentString_g_tc_members[1]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
CanComponentString_g_tc_members[2]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
|
|
/* Initialize the values for member annotations. */
|
|
CanComponentString_g_tc_members[0]._annotations._defaultValue._d = RTI_XCDR_TK_LONGLONG;
|
|
CanComponentString_g_tc_members[0]._annotations._defaultValue._u.long_long_value = 0ll;
|
|
CanComponentString_g_tc_members[0]._annotations._minValue._d = RTI_XCDR_TK_LONGLONG;
|
|
CanComponentString_g_tc_members[0]._annotations._minValue._u.long_long_value = RTIXCdrLongLong_MIN;
|
|
CanComponentString_g_tc_members[0]._annotations._maxValue._d = RTI_XCDR_TK_LONGLONG;
|
|
CanComponentString_g_tc_members[0]._annotations._maxValue._u.long_long_value = RTIXCdrLongLong_MAX;
|
|
CanComponentString_g_tc_members[1]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
CanComponentString_g_tc_members[1]._annotations._defaultValue._u.long_value = 0;
|
|
CanComponentString_g_tc_members[1]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
CanComponentString_g_tc_members[1]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
CanComponentString_g_tc_members[1]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
CanComponentString_g_tc_members[1]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
CanComponentString_g_tc_members[2]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
CanComponentString_g_tc_members[2]._annotations._defaultValue._u.long_value = 0;
|
|
CanComponentString_g_tc_members[2]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
CanComponentString_g_tc_members[2]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
CanComponentString_g_tc_members[2]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
CanComponentString_g_tc_members[2]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
|
|
CanComponentString_g_tc._data._typeCode = (RTICdrTypeCode *)&::rti::topic::dynamic_type< ::ProjectDataManagement::PdmBaseName >::get().native(); /* Base class */
|
|
|
|
CanComponentString_g_tc._data._sampleAccessInfo = sample_access_info();
|
|
CanComponentString_g_tc._data._typePlugin = type_plugin_info();
|
|
|
|
is_initialized.store(true, std::memory_order_release);
|
|
|
|
return &CanComponentString_g_tc;
|
|
}
|
|
|
|
static RTIXCdrSampleAccessInfo * sample_access_info()
|
|
{
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
::ProjectDataManagement::CanComponentString *sample;
|
|
|
|
static RTIXCdrMemberAccessInfo CanComponentString_g_memberAccessInfos[3] =
|
|
{RTIXCdrMemberAccessInfo_INITIALIZER};
|
|
|
|
static RTIXCdrSampleAccessInfo CanComponentString_g_sampleAccessInfo =
|
|
RTIXCdrSampleAccessInfo_INITIALIZER;
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return (RTIXCdrSampleAccessInfo*) &CanComponentString_g_sampleAccessInfo;
|
|
}
|
|
|
|
RTIXCdrHeap_allocateStruct(
|
|
&sample,
|
|
::ProjectDataManagement::CanComponentString);
|
|
if (sample == NULL) {
|
|
return NULL;
|
|
}
|
|
|
|
CanComponentString_g_memberAccessInfos[0].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->pdm_bitMask - (char *)sample);
|
|
|
|
CanComponentString_g_memberAccessInfos[1].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->canDeviceId - (char *)sample);
|
|
|
|
CanComponentString_g_memberAccessInfos[2].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->subDeviceId - (char *)sample);
|
|
|
|
CanComponentString_g_sampleAccessInfo.memberAccessInfos =
|
|
CanComponentString_g_memberAccessInfos;
|
|
|
|
{
|
|
size_t candidateTypeSize = sizeof(::ProjectDataManagement::CanComponentString);
|
|
|
|
if (candidateTypeSize > RTIXCdrLong_MAX) {
|
|
CanComponentString_g_sampleAccessInfo.typeSize[0] =
|
|
RTIXCdrLong_MAX;
|
|
} else {
|
|
CanComponentString_g_sampleAccessInfo.typeSize[0] =
|
|
(RTIXCdrUnsignedLong) candidateTypeSize;
|
|
}
|
|
}
|
|
|
|
CanComponentString_g_sampleAccessInfo.useGetMemberValueOnlyWithRef =
|
|
RTI_XCDR_TRUE;
|
|
|
|
CanComponentString_g_sampleAccessInfo.getMemberValuePointerFcn =
|
|
interpreter::get_aggregation_value_pointer< ::ProjectDataManagement::CanComponentString >;
|
|
|
|
CanComponentString_g_sampleAccessInfo.languageBinding =
|
|
RTI_XCDR_TYPE_BINDING_CPP_11_STL ;
|
|
|
|
RTIXCdrHeap_freeStruct(sample);
|
|
is_initialized.store(true, std::memory_order_release);
|
|
return (RTIXCdrSampleAccessInfo*) &CanComponentString_g_sampleAccessInfo;
|
|
}
|
|
static RTIXCdrTypePlugin * type_plugin_info()
|
|
{
|
|
static RTIXCdrTypePlugin CanComponentString_g_typePlugin =
|
|
{
|
|
NULL, /* serialize */
|
|
NULL, /* serialize_key */
|
|
NULL, /* deserialize_sample */
|
|
NULL, /* deserialize_key_sample */
|
|
NULL, /* skip */
|
|
NULL, /* get_serialized_sample_size */
|
|
NULL, /* get_serialized_sample_max_size_ex */
|
|
NULL, /* get_serialized_key_max_size_ex */
|
|
NULL, /* get_serialized_sample_min_size */
|
|
NULL, /* serialized_sample_to_key */
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL
|
|
};
|
|
|
|
return &CanComponentString_g_typePlugin;
|
|
}
|
|
}; // native_type_code
|
|
|
|
const ::dds::core::xtypes::StructType& dynamic_type< ::ProjectDataManagement::CanComponentString >::get()
|
|
{
|
|
return static_cast<const ::dds::core::xtypes::StructType&>(
|
|
::rti::core::native_conversions::cast_from_native< ::dds::core::xtypes::DynamicType >(
|
|
*(native_type_code< ::ProjectDataManagement::CanComponentString >::get())));
|
|
}
|
|
|
|
template<>
|
|
struct native_type_code< ::ProjectDataManagement::CasEffect > {
|
|
|
|
static DDS_TypeCode * get()
|
|
{
|
|
using namespace ::rti::topic::interpreter;
|
|
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
static DDS_TypeCode_Member CasEffect_g_tc_members[3]=
|
|
{
|
|
|
|
{
|
|
(char *)"severityType",/* Member name */
|
|
{
|
|
0,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"iedClass",/* Member name */
|
|
{
|
|
1,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"impactRadius",/* Member name */
|
|
{
|
|
2,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
}
|
|
};
|
|
|
|
static DDS_TypeCode CasEffect_g_tc =
|
|
{{
|
|
DDS_TK_STRUCT, /* Kind */
|
|
DDS_BOOLEAN_FALSE, /* Ignored */
|
|
-1, /*Ignored*/
|
|
(char *)"ProjectDataManagement::CasEffect", /* Name */
|
|
NULL, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
3, /* Number of members */
|
|
CasEffect_g_tc_members, /* Members */
|
|
DDS_VM_NONE, /* Ignored */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER,
|
|
DDS_BOOLEAN_TRUE, /* _isCopyable */
|
|
NULL, /* _sampleAccessInfo: assigned later */
|
|
NULL /* _typePlugin: assigned later */
|
|
}}; /* Type code for CasEffect*/
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return &CasEffect_g_tc;
|
|
}
|
|
|
|
CasEffect_g_tc._data._annotations._allowedDataRepresentationMask = 5;
|
|
|
|
CasEffect_g_tc_members[0]._representation._typeCode = (RTICdrTypeCode *)&::rti::topic::dynamic_type< ::ProjectDataManagement::SeverityType>::get().native();
|
|
CasEffect_g_tc_members[1]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
CasEffect_g_tc_members[2]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
|
|
/* Initialize the values for member annotations. */
|
|
CasEffect_g_tc_members[0]._annotations._defaultValue._d = RTI_XCDR_TK_ENUM;
|
|
CasEffect_g_tc_members[0]._annotations._defaultValue._u.enumerated_value = 1;
|
|
CasEffect_g_tc_members[1]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
CasEffect_g_tc_members[1]._annotations._defaultValue._u.long_value = 0;
|
|
CasEffect_g_tc_members[1]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
CasEffect_g_tc_members[1]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
CasEffect_g_tc_members[1]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
CasEffect_g_tc_members[1]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
CasEffect_g_tc_members[2]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
CasEffect_g_tc_members[2]._annotations._defaultValue._u.long_value = 0;
|
|
CasEffect_g_tc_members[2]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
CasEffect_g_tc_members[2]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
CasEffect_g_tc_members[2]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
CasEffect_g_tc_members[2]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
|
|
CasEffect_g_tc._data._sampleAccessInfo = sample_access_info();
|
|
CasEffect_g_tc._data._typePlugin = type_plugin_info();
|
|
|
|
is_initialized.store(true, std::memory_order_release);
|
|
|
|
return &CasEffect_g_tc;
|
|
}
|
|
|
|
static RTIXCdrSampleAccessInfo * sample_access_info()
|
|
{
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
::ProjectDataManagement::CasEffect *sample;
|
|
|
|
static RTIXCdrMemberAccessInfo CasEffect_g_memberAccessInfos[3] =
|
|
{RTIXCdrMemberAccessInfo_INITIALIZER};
|
|
|
|
static RTIXCdrSampleAccessInfo CasEffect_g_sampleAccessInfo =
|
|
RTIXCdrSampleAccessInfo_INITIALIZER;
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return (RTIXCdrSampleAccessInfo*) &CasEffect_g_sampleAccessInfo;
|
|
}
|
|
|
|
RTIXCdrHeap_allocateStruct(
|
|
&sample,
|
|
::ProjectDataManagement::CasEffect);
|
|
if (sample == NULL) {
|
|
return NULL;
|
|
}
|
|
|
|
CasEffect_g_memberAccessInfos[0].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->severityType - (char *)sample);
|
|
|
|
CasEffect_g_memberAccessInfos[1].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->iedClass - (char *)sample);
|
|
|
|
CasEffect_g_memberAccessInfos[2].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->impactRadius - (char *)sample);
|
|
|
|
CasEffect_g_sampleAccessInfo.memberAccessInfos =
|
|
CasEffect_g_memberAccessInfos;
|
|
|
|
{
|
|
size_t candidateTypeSize = sizeof(::ProjectDataManagement::CasEffect);
|
|
|
|
if (candidateTypeSize > RTIXCdrLong_MAX) {
|
|
CasEffect_g_sampleAccessInfo.typeSize[0] =
|
|
RTIXCdrLong_MAX;
|
|
} else {
|
|
CasEffect_g_sampleAccessInfo.typeSize[0] =
|
|
(RTIXCdrUnsignedLong) candidateTypeSize;
|
|
}
|
|
}
|
|
|
|
CasEffect_g_sampleAccessInfo.useGetMemberValueOnlyWithRef =
|
|
RTI_XCDR_TRUE;
|
|
|
|
CasEffect_g_sampleAccessInfo.getMemberValuePointerFcn =
|
|
interpreter::get_aggregation_value_pointer< ::ProjectDataManagement::CasEffect >;
|
|
|
|
CasEffect_g_sampleAccessInfo.languageBinding =
|
|
RTI_XCDR_TYPE_BINDING_CPP_11_STL ;
|
|
|
|
RTIXCdrHeap_freeStruct(sample);
|
|
is_initialized.store(true, std::memory_order_release);
|
|
return (RTIXCdrSampleAccessInfo*) &CasEffect_g_sampleAccessInfo;
|
|
}
|
|
static RTIXCdrTypePlugin * type_plugin_info()
|
|
{
|
|
static RTIXCdrTypePlugin CasEffect_g_typePlugin =
|
|
{
|
|
NULL, /* serialize */
|
|
NULL, /* serialize_key */
|
|
NULL, /* deserialize_sample */
|
|
NULL, /* deserialize_key_sample */
|
|
NULL, /* skip */
|
|
NULL, /* get_serialized_sample_size */
|
|
NULL, /* get_serialized_sample_max_size_ex */
|
|
NULL, /* get_serialized_key_max_size_ex */
|
|
NULL, /* get_serialized_sample_min_size */
|
|
NULL, /* serialized_sample_to_key */
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL
|
|
};
|
|
|
|
return &CasEffect_g_typePlugin;
|
|
}
|
|
}; // native_type_code
|
|
|
|
const ::dds::core::xtypes::StructType& dynamic_type< ::ProjectDataManagement::CasEffect >::get()
|
|
{
|
|
return static_cast<const ::dds::core::xtypes::StructType&>(
|
|
::rti::core::native_conversions::cast_from_native< ::dds::core::xtypes::DynamicType >(
|
|
*(native_type_code< ::ProjectDataManagement::CasEffect >::get())));
|
|
}
|
|
|
|
template<>
|
|
struct native_type_code< ::ProjectDataManagement::ChargeType > {
|
|
|
|
static DDS_TypeCode * get()
|
|
{
|
|
using namespace ::rti::topic::interpreter;
|
|
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
static DDS_TypeCode ChargeType_g_tc_shortName_string;
|
|
static DDS_TypeCode ChargeType_g_tc_predefinedName_string;
|
|
static DDS_TypeCode ChargeType_g_tc_disEntity_string;
|
|
static DDS_TypeCode ChargeType_g_tc_properties_string;
|
|
|
|
static DDS_TypeCode_Member ChargeType_g_tc_members[5]=
|
|
{
|
|
|
|
{
|
|
(char *)"shortName",/* Member name */
|
|
{
|
|
2,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"predefinedName",/* Member name */
|
|
{
|
|
3,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"disEntity",/* Member name */
|
|
{
|
|
4,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"properties",/* Member name */
|
|
{
|
|
5,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"legacyId",/* Member name */
|
|
{
|
|
6,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
}
|
|
};
|
|
|
|
static DDS_TypeCode ChargeType_g_tc =
|
|
{{
|
|
DDS_TK_VALUE, /* Kind */
|
|
DDS_BOOLEAN_FALSE, /* Ignored */
|
|
-1, /*Ignored*/
|
|
(char *)"ProjectDataManagement::ChargeType", /* Name */
|
|
NULL, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
5, /* Number of members */
|
|
ChargeType_g_tc_members, /* Members */
|
|
DDS_VM_NONE, /* Ignored */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER,
|
|
DDS_BOOLEAN_TRUE, /* _isCopyable */
|
|
NULL, /* _sampleAccessInfo: assigned later */
|
|
NULL /* _typePlugin: assigned later */
|
|
}}; /* Type code for ChargeType*/
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return &ChargeType_g_tc;
|
|
}
|
|
|
|
ChargeType_g_tc_shortName_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
ChargeType_g_tc_predefinedName_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
ChargeType_g_tc_disEntity_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
ChargeType_g_tc_properties_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
|
|
ChargeType_g_tc._data._annotations._allowedDataRepresentationMask = 5;
|
|
|
|
ChargeType_g_tc_members[0]._representation._typeCode = (RTICdrTypeCode *)&ChargeType_g_tc_shortName_string;
|
|
ChargeType_g_tc_members[1]._representation._typeCode = (RTICdrTypeCode *)&ChargeType_g_tc_predefinedName_string;
|
|
ChargeType_g_tc_members[2]._representation._typeCode = (RTICdrTypeCode *)&ChargeType_g_tc_disEntity_string;
|
|
ChargeType_g_tc_members[3]._representation._typeCode = (RTICdrTypeCode *)&ChargeType_g_tc_properties_string;
|
|
ChargeType_g_tc_members[4]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
|
|
/* Initialize the values for member annotations. */
|
|
ChargeType_g_tc_members[0]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
ChargeType_g_tc_members[0]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
ChargeType_g_tc_members[1]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
ChargeType_g_tc_members[1]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
ChargeType_g_tc_members[2]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
ChargeType_g_tc_members[2]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
ChargeType_g_tc_members[3]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
ChargeType_g_tc_members[3]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
ChargeType_g_tc_members[4]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
ChargeType_g_tc_members[4]._annotations._defaultValue._u.long_value = 0;
|
|
ChargeType_g_tc_members[4]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
ChargeType_g_tc_members[4]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
ChargeType_g_tc_members[4]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
ChargeType_g_tc_members[4]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
|
|
ChargeType_g_tc._data._typeCode = (RTICdrTypeCode *)&::rti::topic::dynamic_type< ::ProjectDataManagement::PdmBaseName >::get().native(); /* Base class */
|
|
|
|
ChargeType_g_tc._data._sampleAccessInfo = sample_access_info();
|
|
ChargeType_g_tc._data._typePlugin = type_plugin_info();
|
|
|
|
is_initialized.store(true, std::memory_order_release);
|
|
|
|
return &ChargeType_g_tc;
|
|
}
|
|
|
|
static RTIXCdrSampleAccessInfo * sample_access_info()
|
|
{
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
::ProjectDataManagement::ChargeType *sample;
|
|
|
|
static RTIXCdrMemberAccessInfo ChargeType_g_memberAccessInfos[5] =
|
|
{RTIXCdrMemberAccessInfo_INITIALIZER};
|
|
|
|
static RTIXCdrSampleAccessInfo ChargeType_g_sampleAccessInfo =
|
|
RTIXCdrSampleAccessInfo_INITIALIZER;
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return (RTIXCdrSampleAccessInfo*) &ChargeType_g_sampleAccessInfo;
|
|
}
|
|
|
|
RTIXCdrHeap_allocateStruct(
|
|
&sample,
|
|
::ProjectDataManagement::ChargeType);
|
|
if (sample == NULL) {
|
|
return NULL;
|
|
}
|
|
|
|
ChargeType_g_memberAccessInfos[0].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->shortName - (char *)sample);
|
|
|
|
ChargeType_g_memberAccessInfos[1].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->predefinedName - (char *)sample);
|
|
|
|
ChargeType_g_memberAccessInfos[2].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->disEntity - (char *)sample);
|
|
|
|
ChargeType_g_memberAccessInfos[3].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->properties - (char *)sample);
|
|
|
|
ChargeType_g_memberAccessInfos[4].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->legacyId - (char *)sample);
|
|
|
|
ChargeType_g_sampleAccessInfo.memberAccessInfos =
|
|
ChargeType_g_memberAccessInfos;
|
|
|
|
{
|
|
size_t candidateTypeSize = sizeof(::ProjectDataManagement::ChargeType);
|
|
|
|
if (candidateTypeSize > RTIXCdrLong_MAX) {
|
|
ChargeType_g_sampleAccessInfo.typeSize[0] =
|
|
RTIXCdrLong_MAX;
|
|
} else {
|
|
ChargeType_g_sampleAccessInfo.typeSize[0] =
|
|
(RTIXCdrUnsignedLong) candidateTypeSize;
|
|
}
|
|
}
|
|
|
|
ChargeType_g_sampleAccessInfo.useGetMemberValueOnlyWithRef =
|
|
RTI_XCDR_TRUE;
|
|
|
|
ChargeType_g_sampleAccessInfo.getMemberValuePointerFcn =
|
|
interpreter::get_aggregation_value_pointer< ::ProjectDataManagement::ChargeType >;
|
|
|
|
ChargeType_g_sampleAccessInfo.languageBinding =
|
|
RTI_XCDR_TYPE_BINDING_CPP_11_STL ;
|
|
|
|
RTIXCdrHeap_freeStruct(sample);
|
|
is_initialized.store(true, std::memory_order_release);
|
|
return (RTIXCdrSampleAccessInfo*) &ChargeType_g_sampleAccessInfo;
|
|
}
|
|
static RTIXCdrTypePlugin * type_plugin_info()
|
|
{
|
|
static RTIXCdrTypePlugin ChargeType_g_typePlugin =
|
|
{
|
|
NULL, /* serialize */
|
|
NULL, /* serialize_key */
|
|
NULL, /* deserialize_sample */
|
|
NULL, /* deserialize_key_sample */
|
|
NULL, /* skip */
|
|
NULL, /* get_serialized_sample_size */
|
|
NULL, /* get_serialized_sample_max_size_ex */
|
|
NULL, /* get_serialized_key_max_size_ex */
|
|
NULL, /* get_serialized_sample_min_size */
|
|
NULL, /* serialized_sample_to_key */
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL
|
|
};
|
|
|
|
return &ChargeType_g_typePlugin;
|
|
}
|
|
}; // native_type_code
|
|
|
|
const ::dds::core::xtypes::StructType& dynamic_type< ::ProjectDataManagement::ChargeType >::get()
|
|
{
|
|
return static_cast<const ::dds::core::xtypes::StructType&>(
|
|
::rti::core::native_conversions::cast_from_native< ::dds::core::xtypes::DynamicType >(
|
|
*(native_type_code< ::ProjectDataManagement::ChargeType >::get())));
|
|
}
|
|
|
|
template<>
|
|
struct native_type_code< ::ProjectDataManagement::ChargeTypeIgniterTypeIgniterFunction > {
|
|
|
|
static DDS_TypeCode * get()
|
|
{
|
|
using namespace ::rti::topic::interpreter;
|
|
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
static DDS_TypeCode ChargeTypeIgniterTypeIgniterFunction_g_tc_impactArea_string;
|
|
static DDS_TypeCode ChargeTypeIgniterTypeIgniterFunction_g_tc_properties_string;
|
|
|
|
static DDS_TypeCode_Member ChargeTypeIgniterTypeIgniterFunction_g_tc_members[9]=
|
|
{
|
|
|
|
{
|
|
(char *)"chargeTypeId",/* Member name */
|
|
{
|
|
1,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"igniterTypeId",/* Member name */
|
|
{
|
|
2,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"igniterFunctionId",/* Member name */
|
|
{
|
|
3,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"igniterFunctionBaseId",/* Member name */
|
|
{
|
|
4,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"impactArea",/* Member name */
|
|
{
|
|
5,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"impactRadius",/* Member name */
|
|
{
|
|
6,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"hazardDistance",/* Member name */
|
|
{
|
|
7,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"chargeLegacyId",/* Member name */
|
|
{
|
|
8,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"properties",/* Member name */
|
|
{
|
|
9,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
}
|
|
};
|
|
|
|
static DDS_TypeCode ChargeTypeIgniterTypeIgniterFunction_g_tc =
|
|
{{
|
|
DDS_TK_VALUE, /* Kind */
|
|
DDS_BOOLEAN_FALSE, /* Ignored */
|
|
-1, /*Ignored*/
|
|
(char *)"ProjectDataManagement::ChargeTypeIgniterTypeIgniterFunction", /* Name */
|
|
NULL, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
9, /* Number of members */
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members, /* Members */
|
|
DDS_VM_NONE, /* Ignored */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER,
|
|
DDS_BOOLEAN_TRUE, /* _isCopyable */
|
|
NULL, /* _sampleAccessInfo: assigned later */
|
|
NULL /* _typePlugin: assigned later */
|
|
}}; /* Type code for ChargeTypeIgniterTypeIgniterFunction*/
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return &ChargeTypeIgniterTypeIgniterFunction_g_tc;
|
|
}
|
|
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_impactArea_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_properties_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc._data._annotations._allowedDataRepresentationMask = 5;
|
|
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[0]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[1]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[2]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[3]._representation._typeCode = (RTICdrTypeCode *)&::rti::topic::dynamic_type< ::ProjectDataManagement::IgniterFunctionBase>::get().native();
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[4]._representation._typeCode = (RTICdrTypeCode *)&ChargeTypeIgniterTypeIgniterFunction_g_tc_impactArea_string;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[5]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[6]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[7]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[8]._representation._typeCode = (RTICdrTypeCode *)&ChargeTypeIgniterTypeIgniterFunction_g_tc_properties_string;
|
|
|
|
/* Initialize the values for member annotations. */
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[0]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[0]._annotations._defaultValue._u.long_value = 0;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[0]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[0]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[0]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[0]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[1]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[1]._annotations._defaultValue._u.long_value = 0;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[1]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[1]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[1]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[1]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[2]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[2]._annotations._defaultValue._u.long_value = 0;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[2]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[2]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[2]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[2]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[3]._annotations._defaultValue._d = RTI_XCDR_TK_ENUM;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[3]._annotations._defaultValue._u.enumerated_value = 0;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[4]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[4]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[5]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[5]._annotations._defaultValue._u.long_value = 0;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[5]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[5]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[5]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[5]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[6]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[6]._annotations._defaultValue._u.long_value = 0;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[6]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[6]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[6]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[6]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[7]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[7]._annotations._defaultValue._u.long_value = 0;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[7]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[7]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[7]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[7]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[8]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc_members[8]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc._data._typeCode = (RTICdrTypeCode *)&::rti::topic::dynamic_type< ::ProjectDataManagement::PdmBase >::get().native(); /* Base class */
|
|
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc._data._sampleAccessInfo = sample_access_info();
|
|
ChargeTypeIgniterTypeIgniterFunction_g_tc._data._typePlugin = type_plugin_info();
|
|
|
|
is_initialized.store(true, std::memory_order_release);
|
|
|
|
return &ChargeTypeIgniterTypeIgniterFunction_g_tc;
|
|
}
|
|
|
|
static RTIXCdrSampleAccessInfo * sample_access_info()
|
|
{
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
::ProjectDataManagement::ChargeTypeIgniterTypeIgniterFunction *sample;
|
|
|
|
static RTIXCdrMemberAccessInfo ChargeTypeIgniterTypeIgniterFunction_g_memberAccessInfos[9] =
|
|
{RTIXCdrMemberAccessInfo_INITIALIZER};
|
|
|
|
static RTIXCdrSampleAccessInfo ChargeTypeIgniterTypeIgniterFunction_g_sampleAccessInfo =
|
|
RTIXCdrSampleAccessInfo_INITIALIZER;
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return (RTIXCdrSampleAccessInfo*) &ChargeTypeIgniterTypeIgniterFunction_g_sampleAccessInfo;
|
|
}
|
|
|
|
RTIXCdrHeap_allocateStruct(
|
|
&sample,
|
|
::ProjectDataManagement::ChargeTypeIgniterTypeIgniterFunction);
|
|
if (sample == NULL) {
|
|
return NULL;
|
|
}
|
|
|
|
ChargeTypeIgniterTypeIgniterFunction_g_memberAccessInfos[0].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->chargeTypeId - (char *)sample);
|
|
|
|
ChargeTypeIgniterTypeIgniterFunction_g_memberAccessInfos[1].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->igniterTypeId - (char *)sample);
|
|
|
|
ChargeTypeIgniterTypeIgniterFunction_g_memberAccessInfos[2].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->igniterFunctionId - (char *)sample);
|
|
|
|
ChargeTypeIgniterTypeIgniterFunction_g_memberAccessInfos[3].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->igniterFunctionBaseId - (char *)sample);
|
|
|
|
ChargeTypeIgniterTypeIgniterFunction_g_memberAccessInfos[4].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->impactArea - (char *)sample);
|
|
|
|
ChargeTypeIgniterTypeIgniterFunction_g_memberAccessInfos[5].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->impactRadius - (char *)sample);
|
|
|
|
ChargeTypeIgniterTypeIgniterFunction_g_memberAccessInfos[6].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->hazardDistance - (char *)sample);
|
|
|
|
ChargeTypeIgniterTypeIgniterFunction_g_memberAccessInfos[7].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->chargeLegacyId - (char *)sample);
|
|
|
|
ChargeTypeIgniterTypeIgniterFunction_g_memberAccessInfos[8].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->properties - (char *)sample);
|
|
|
|
ChargeTypeIgniterTypeIgniterFunction_g_sampleAccessInfo.memberAccessInfos =
|
|
ChargeTypeIgniterTypeIgniterFunction_g_memberAccessInfos;
|
|
|
|
{
|
|
size_t candidateTypeSize = sizeof(::ProjectDataManagement::ChargeTypeIgniterTypeIgniterFunction);
|
|
|
|
if (candidateTypeSize > RTIXCdrLong_MAX) {
|
|
ChargeTypeIgniterTypeIgniterFunction_g_sampleAccessInfo.typeSize[0] =
|
|
RTIXCdrLong_MAX;
|
|
} else {
|
|
ChargeTypeIgniterTypeIgniterFunction_g_sampleAccessInfo.typeSize[0] =
|
|
(RTIXCdrUnsignedLong) candidateTypeSize;
|
|
}
|
|
}
|
|
|
|
ChargeTypeIgniterTypeIgniterFunction_g_sampleAccessInfo.useGetMemberValueOnlyWithRef =
|
|
RTI_XCDR_TRUE;
|
|
|
|
ChargeTypeIgniterTypeIgniterFunction_g_sampleAccessInfo.getMemberValuePointerFcn =
|
|
interpreter::get_aggregation_value_pointer< ::ProjectDataManagement::ChargeTypeIgniterTypeIgniterFunction >;
|
|
|
|
ChargeTypeIgniterTypeIgniterFunction_g_sampleAccessInfo.languageBinding =
|
|
RTI_XCDR_TYPE_BINDING_CPP_11_STL ;
|
|
|
|
RTIXCdrHeap_freeStruct(sample);
|
|
is_initialized.store(true, std::memory_order_release);
|
|
return (RTIXCdrSampleAccessInfo*) &ChargeTypeIgniterTypeIgniterFunction_g_sampleAccessInfo;
|
|
}
|
|
static RTIXCdrTypePlugin * type_plugin_info()
|
|
{
|
|
static RTIXCdrTypePlugin ChargeTypeIgniterTypeIgniterFunction_g_typePlugin =
|
|
{
|
|
NULL, /* serialize */
|
|
NULL, /* serialize_key */
|
|
NULL, /* deserialize_sample */
|
|
NULL, /* deserialize_key_sample */
|
|
NULL, /* skip */
|
|
NULL, /* get_serialized_sample_size */
|
|
NULL, /* get_serialized_sample_max_size_ex */
|
|
NULL, /* get_serialized_key_max_size_ex */
|
|
NULL, /* get_serialized_sample_min_size */
|
|
NULL, /* serialized_sample_to_key */
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL
|
|
};
|
|
|
|
return &ChargeTypeIgniterTypeIgniterFunction_g_typePlugin;
|
|
}
|
|
}; // native_type_code
|
|
|
|
const ::dds::core::xtypes::StructType& dynamic_type< ::ProjectDataManagement::ChargeTypeIgniterTypeIgniterFunction >::get()
|
|
{
|
|
return static_cast<const ::dds::core::xtypes::StructType&>(
|
|
::rti::core::native_conversions::cast_from_native< ::dds::core::xtypes::DynamicType >(
|
|
*(native_type_code< ::ProjectDataManagement::ChargeTypeIgniterTypeIgniterFunction >::get())));
|
|
}
|
|
|
|
template<>
|
|
struct native_type_code< ::ProjectDataManagement::ChargeTypeLoadType > {
|
|
|
|
static DDS_TypeCode * get()
|
|
{
|
|
using namespace ::rti::topic::interpreter;
|
|
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
static DDS_TypeCode ChargeTypeLoadType_g_tc_numbers_sequence;
|
|
static DDS_TypeCode ChargeTypeLoadType_g_tc_properties_string;
|
|
|
|
static DDS_TypeCode_Member ChargeTypeLoadType_g_tc_members[4]=
|
|
{
|
|
|
|
{
|
|
(char *)"chargeTypeId",/* Member name */
|
|
{
|
|
1,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"loadTypeId",/* Member name */
|
|
{
|
|
2,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"numbers",/* Member name */
|
|
{
|
|
3,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"properties",/* Member name */
|
|
{
|
|
4,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
}
|
|
};
|
|
|
|
static DDS_TypeCode ChargeTypeLoadType_g_tc =
|
|
{{
|
|
DDS_TK_VALUE, /* Kind */
|
|
DDS_BOOLEAN_FALSE, /* Ignored */
|
|
-1, /*Ignored*/
|
|
(char *)"ProjectDataManagement::ChargeTypeLoadType", /* Name */
|
|
NULL, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
4, /* Number of members */
|
|
ChargeTypeLoadType_g_tc_members, /* Members */
|
|
DDS_VM_NONE, /* Ignored */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER,
|
|
DDS_BOOLEAN_TRUE, /* _isCopyable */
|
|
NULL, /* _sampleAccessInfo: assigned later */
|
|
NULL /* _typePlugin: assigned later */
|
|
}}; /* Type code for ChargeTypeLoadType*/
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return &ChargeTypeLoadType_g_tc;
|
|
}
|
|
|
|
ChargeTypeLoadType_g_tc_numbers_sequence = initialize_sequence_typecode< ::omg::types::sequence< int32_t > >(RTIXCdrLong_MAX);
|
|
ChargeTypeLoadType_g_tc_properties_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
|
|
ChargeTypeLoadType_g_tc._data._annotations._allowedDataRepresentationMask = 5;
|
|
|
|
ChargeTypeLoadType_g_tc_numbers_sequence._data._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
ChargeTypeLoadType_g_tc_members[0]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
ChargeTypeLoadType_g_tc_members[1]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
ChargeTypeLoadType_g_tc_members[2]._representation._typeCode = (RTICdrTypeCode *)& ChargeTypeLoadType_g_tc_numbers_sequence;
|
|
ChargeTypeLoadType_g_tc_members[3]._representation._typeCode = (RTICdrTypeCode *)&ChargeTypeLoadType_g_tc_properties_string;
|
|
|
|
/* Initialize the values for member annotations. */
|
|
ChargeTypeLoadType_g_tc_members[0]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
ChargeTypeLoadType_g_tc_members[0]._annotations._defaultValue._u.long_value = 0;
|
|
ChargeTypeLoadType_g_tc_members[0]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
ChargeTypeLoadType_g_tc_members[0]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
ChargeTypeLoadType_g_tc_members[0]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
ChargeTypeLoadType_g_tc_members[0]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
ChargeTypeLoadType_g_tc_members[1]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
ChargeTypeLoadType_g_tc_members[1]._annotations._defaultValue._u.long_value = 0;
|
|
ChargeTypeLoadType_g_tc_members[1]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
ChargeTypeLoadType_g_tc_members[1]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
ChargeTypeLoadType_g_tc_members[1]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
ChargeTypeLoadType_g_tc_members[1]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
ChargeTypeLoadType_g_tc_members[3]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
ChargeTypeLoadType_g_tc_members[3]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
|
|
ChargeTypeLoadType_g_tc._data._typeCode = (RTICdrTypeCode *)&::rti::topic::dynamic_type< ::ProjectDataManagement::PdmBase >::get().native(); /* Base class */
|
|
|
|
ChargeTypeLoadType_g_tc._data._sampleAccessInfo = sample_access_info();
|
|
ChargeTypeLoadType_g_tc._data._typePlugin = type_plugin_info();
|
|
|
|
is_initialized.store(true, std::memory_order_release);
|
|
|
|
return &ChargeTypeLoadType_g_tc;
|
|
}
|
|
|
|
static RTIXCdrSampleAccessInfo * sample_access_info()
|
|
{
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
::ProjectDataManagement::ChargeTypeLoadType *sample;
|
|
|
|
static RTIXCdrMemberAccessInfo ChargeTypeLoadType_g_memberAccessInfos[4] =
|
|
{RTIXCdrMemberAccessInfo_INITIALIZER};
|
|
|
|
static RTIXCdrSampleAccessInfo ChargeTypeLoadType_g_sampleAccessInfo =
|
|
RTIXCdrSampleAccessInfo_INITIALIZER;
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return (RTIXCdrSampleAccessInfo*) &ChargeTypeLoadType_g_sampleAccessInfo;
|
|
}
|
|
|
|
RTIXCdrHeap_allocateStruct(
|
|
&sample,
|
|
::ProjectDataManagement::ChargeTypeLoadType);
|
|
if (sample == NULL) {
|
|
return NULL;
|
|
}
|
|
|
|
ChargeTypeLoadType_g_memberAccessInfos[0].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->chargeTypeId - (char *)sample);
|
|
|
|
ChargeTypeLoadType_g_memberAccessInfos[1].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->loadTypeId - (char *)sample);
|
|
|
|
ChargeTypeLoadType_g_memberAccessInfos[2].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->numbers - (char *)sample);
|
|
|
|
ChargeTypeLoadType_g_memberAccessInfos[3].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->properties - (char *)sample);
|
|
|
|
ChargeTypeLoadType_g_sampleAccessInfo.memberAccessInfos =
|
|
ChargeTypeLoadType_g_memberAccessInfos;
|
|
|
|
{
|
|
size_t candidateTypeSize = sizeof(::ProjectDataManagement::ChargeTypeLoadType);
|
|
|
|
if (candidateTypeSize > RTIXCdrLong_MAX) {
|
|
ChargeTypeLoadType_g_sampleAccessInfo.typeSize[0] =
|
|
RTIXCdrLong_MAX;
|
|
} else {
|
|
ChargeTypeLoadType_g_sampleAccessInfo.typeSize[0] =
|
|
(RTIXCdrUnsignedLong) candidateTypeSize;
|
|
}
|
|
}
|
|
|
|
ChargeTypeLoadType_g_sampleAccessInfo.useGetMemberValueOnlyWithRef =
|
|
RTI_XCDR_TRUE;
|
|
|
|
ChargeTypeLoadType_g_sampleAccessInfo.getMemberValuePointerFcn =
|
|
interpreter::get_aggregation_value_pointer< ::ProjectDataManagement::ChargeTypeLoadType >;
|
|
|
|
ChargeTypeLoadType_g_sampleAccessInfo.languageBinding =
|
|
RTI_XCDR_TYPE_BINDING_CPP_11_STL ;
|
|
|
|
RTIXCdrHeap_freeStruct(sample);
|
|
is_initialized.store(true, std::memory_order_release);
|
|
return (RTIXCdrSampleAccessInfo*) &ChargeTypeLoadType_g_sampleAccessInfo;
|
|
}
|
|
static RTIXCdrTypePlugin * type_plugin_info()
|
|
{
|
|
static RTIXCdrTypePlugin ChargeTypeLoadType_g_typePlugin =
|
|
{
|
|
NULL, /* serialize */
|
|
NULL, /* serialize_key */
|
|
NULL, /* deserialize_sample */
|
|
NULL, /* deserialize_key_sample */
|
|
NULL, /* skip */
|
|
NULL, /* get_serialized_sample_size */
|
|
NULL, /* get_serialized_sample_max_size_ex */
|
|
NULL, /* get_serialized_key_max_size_ex */
|
|
NULL, /* get_serialized_sample_min_size */
|
|
NULL, /* serialized_sample_to_key */
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL
|
|
};
|
|
|
|
return &ChargeTypeLoadType_g_typePlugin;
|
|
}
|
|
}; // native_type_code
|
|
|
|
const ::dds::core::xtypes::StructType& dynamic_type< ::ProjectDataManagement::ChargeTypeLoadType >::get()
|
|
{
|
|
return static_cast<const ::dds::core::xtypes::StructType&>(
|
|
::rti::core::native_conversions::cast_from_native< ::dds::core::xtypes::DynamicType >(
|
|
*(native_type_code< ::ProjectDataManagement::ChargeTypeLoadType >::get())));
|
|
}
|
|
|
|
template<>
|
|
struct native_type_code< ::ProjectDataManagement::EquipmentSystemEventFilter > {
|
|
|
|
static DDS_TypeCode * get()
|
|
{
|
|
using namespace ::rti::topic::interpreter;
|
|
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
static DDS_TypeCode_Member EquipmentSystemEventFilter_g_tc_members[4]=
|
|
{
|
|
|
|
{
|
|
(char *)"equipmentFunctionId",/* Member name */
|
|
{
|
|
1,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"subDeviceId",/* Member name */
|
|
{
|
|
2,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"deviceSpecificCode",/* Member name */
|
|
{
|
|
3,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"hgrMineSearchFilterType",/* Member name */
|
|
{
|
|
4,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
}
|
|
};
|
|
|
|
static DDS_TypeCode EquipmentSystemEventFilter_g_tc =
|
|
{{
|
|
DDS_TK_VALUE, /* Kind */
|
|
DDS_BOOLEAN_FALSE, /* Ignored */
|
|
-1, /*Ignored*/
|
|
(char *)"ProjectDataManagement::EquipmentSystemEventFilter", /* Name */
|
|
NULL, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
4, /* Number of members */
|
|
EquipmentSystemEventFilter_g_tc_members, /* Members */
|
|
DDS_VM_NONE, /* Ignored */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER,
|
|
DDS_BOOLEAN_TRUE, /* _isCopyable */
|
|
NULL, /* _sampleAccessInfo: assigned later */
|
|
NULL /* _typePlugin: assigned later */
|
|
}}; /* Type code for EquipmentSystemEventFilter*/
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return &EquipmentSystemEventFilter_g_tc;
|
|
}
|
|
|
|
EquipmentSystemEventFilter_g_tc._data._annotations._allowedDataRepresentationMask = 5;
|
|
|
|
EquipmentSystemEventFilter_g_tc_members[0]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
EquipmentSystemEventFilter_g_tc_members[1]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
EquipmentSystemEventFilter_g_tc_members[2]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
EquipmentSystemEventFilter_g_tc_members[3]._representation._typeCode = (RTICdrTypeCode *)&::rti::topic::dynamic_type< ::ProjectDataManagement::HgrMineSearchFilterType>::get().native();
|
|
|
|
/* Initialize the values for member annotations. */
|
|
EquipmentSystemEventFilter_g_tc_members[0]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
EquipmentSystemEventFilter_g_tc_members[0]._annotations._defaultValue._u.long_value = 0;
|
|
EquipmentSystemEventFilter_g_tc_members[0]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
EquipmentSystemEventFilter_g_tc_members[0]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
EquipmentSystemEventFilter_g_tc_members[0]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
EquipmentSystemEventFilter_g_tc_members[0]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
EquipmentSystemEventFilter_g_tc_members[1]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
EquipmentSystemEventFilter_g_tc_members[1]._annotations._defaultValue._u.long_value = 0;
|
|
EquipmentSystemEventFilter_g_tc_members[1]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
EquipmentSystemEventFilter_g_tc_members[1]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
EquipmentSystemEventFilter_g_tc_members[1]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
EquipmentSystemEventFilter_g_tc_members[1]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
EquipmentSystemEventFilter_g_tc_members[2]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
EquipmentSystemEventFilter_g_tc_members[2]._annotations._defaultValue._u.long_value = 0;
|
|
EquipmentSystemEventFilter_g_tc_members[2]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
EquipmentSystemEventFilter_g_tc_members[2]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
EquipmentSystemEventFilter_g_tc_members[2]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
EquipmentSystemEventFilter_g_tc_members[2]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
EquipmentSystemEventFilter_g_tc_members[3]._annotations._defaultValue._d = RTI_XCDR_TK_ENUM;
|
|
EquipmentSystemEventFilter_g_tc_members[3]._annotations._defaultValue._u.enumerated_value = 0;
|
|
|
|
EquipmentSystemEventFilter_g_tc._data._typeCode = (RTICdrTypeCode *)&::rti::topic::dynamic_type< ::ProjectDataManagement::PdmBase >::get().native(); /* Base class */
|
|
|
|
EquipmentSystemEventFilter_g_tc._data._sampleAccessInfo = sample_access_info();
|
|
EquipmentSystemEventFilter_g_tc._data._typePlugin = type_plugin_info();
|
|
|
|
is_initialized.store(true, std::memory_order_release);
|
|
|
|
return &EquipmentSystemEventFilter_g_tc;
|
|
}
|
|
|
|
static RTIXCdrSampleAccessInfo * sample_access_info()
|
|
{
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
::ProjectDataManagement::EquipmentSystemEventFilter *sample;
|
|
|
|
static RTIXCdrMemberAccessInfo EquipmentSystemEventFilter_g_memberAccessInfos[4] =
|
|
{RTIXCdrMemberAccessInfo_INITIALIZER};
|
|
|
|
static RTIXCdrSampleAccessInfo EquipmentSystemEventFilter_g_sampleAccessInfo =
|
|
RTIXCdrSampleAccessInfo_INITIALIZER;
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return (RTIXCdrSampleAccessInfo*) &EquipmentSystemEventFilter_g_sampleAccessInfo;
|
|
}
|
|
|
|
RTIXCdrHeap_allocateStruct(
|
|
&sample,
|
|
::ProjectDataManagement::EquipmentSystemEventFilter);
|
|
if (sample == NULL) {
|
|
return NULL;
|
|
}
|
|
|
|
EquipmentSystemEventFilter_g_memberAccessInfos[0].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->equipmentFunctionId - (char *)sample);
|
|
|
|
EquipmentSystemEventFilter_g_memberAccessInfos[1].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->subDeviceId - (char *)sample);
|
|
|
|
EquipmentSystemEventFilter_g_memberAccessInfos[2].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->deviceSpecificCode - (char *)sample);
|
|
|
|
EquipmentSystemEventFilter_g_memberAccessInfos[3].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->hgrMineSearchFilterType - (char *)sample);
|
|
|
|
EquipmentSystemEventFilter_g_sampleAccessInfo.memberAccessInfos =
|
|
EquipmentSystemEventFilter_g_memberAccessInfos;
|
|
|
|
{
|
|
size_t candidateTypeSize = sizeof(::ProjectDataManagement::EquipmentSystemEventFilter);
|
|
|
|
if (candidateTypeSize > RTIXCdrLong_MAX) {
|
|
EquipmentSystemEventFilter_g_sampleAccessInfo.typeSize[0] =
|
|
RTIXCdrLong_MAX;
|
|
} else {
|
|
EquipmentSystemEventFilter_g_sampleAccessInfo.typeSize[0] =
|
|
(RTIXCdrUnsignedLong) candidateTypeSize;
|
|
}
|
|
}
|
|
|
|
EquipmentSystemEventFilter_g_sampleAccessInfo.useGetMemberValueOnlyWithRef =
|
|
RTI_XCDR_TRUE;
|
|
|
|
EquipmentSystemEventFilter_g_sampleAccessInfo.getMemberValuePointerFcn =
|
|
interpreter::get_aggregation_value_pointer< ::ProjectDataManagement::EquipmentSystemEventFilter >;
|
|
|
|
EquipmentSystemEventFilter_g_sampleAccessInfo.languageBinding =
|
|
RTI_XCDR_TYPE_BINDING_CPP_11_STL ;
|
|
|
|
RTIXCdrHeap_freeStruct(sample);
|
|
is_initialized.store(true, std::memory_order_release);
|
|
return (RTIXCdrSampleAccessInfo*) &EquipmentSystemEventFilter_g_sampleAccessInfo;
|
|
}
|
|
static RTIXCdrTypePlugin * type_plugin_info()
|
|
{
|
|
static RTIXCdrTypePlugin EquipmentSystemEventFilter_g_typePlugin =
|
|
{
|
|
NULL, /* serialize */
|
|
NULL, /* serialize_key */
|
|
NULL, /* deserialize_sample */
|
|
NULL, /* deserialize_key_sample */
|
|
NULL, /* skip */
|
|
NULL, /* get_serialized_sample_size */
|
|
NULL, /* get_serialized_sample_max_size_ex */
|
|
NULL, /* get_serialized_key_max_size_ex */
|
|
NULL, /* get_serialized_sample_min_size */
|
|
NULL, /* serialized_sample_to_key */
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL
|
|
};
|
|
|
|
return &EquipmentSystemEventFilter_g_typePlugin;
|
|
}
|
|
}; // native_type_code
|
|
|
|
const ::dds::core::xtypes::StructType& dynamic_type< ::ProjectDataManagement::EquipmentSystemEventFilter >::get()
|
|
{
|
|
return static_cast<const ::dds::core::xtypes::StructType&>(
|
|
::rti::core::native_conversions::cast_from_native< ::dds::core::xtypes::DynamicType >(
|
|
*(native_type_code< ::ProjectDataManagement::EquipmentSystemEventFilter >::get())));
|
|
}
|
|
|
|
template<>
|
|
struct native_type_code< ::ProjectDataManagement::EventFilterHgrMineSearch > {
|
|
|
|
static DDS_TypeCode * get()
|
|
{
|
|
using namespace ::rti::topic::interpreter;
|
|
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
static DDS_TypeCode_Member EventFilterHgrMineSearch_g_tc_members[2]=
|
|
{
|
|
|
|
{
|
|
(char *)"chargeTypeId",/* Member name */
|
|
{
|
|
1,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"hgrMineSearchFilterType",/* Member name */
|
|
{
|
|
2,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
}
|
|
};
|
|
|
|
static DDS_TypeCode EventFilterHgrMineSearch_g_tc =
|
|
{{
|
|
DDS_TK_VALUE, /* Kind */
|
|
DDS_BOOLEAN_FALSE, /* Ignored */
|
|
-1, /*Ignored*/
|
|
(char *)"ProjectDataManagement::EventFilterHgrMineSearch", /* Name */
|
|
NULL, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
2, /* Number of members */
|
|
EventFilterHgrMineSearch_g_tc_members, /* Members */
|
|
DDS_VM_NONE, /* Ignored */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER,
|
|
DDS_BOOLEAN_TRUE, /* _isCopyable */
|
|
NULL, /* _sampleAccessInfo: assigned later */
|
|
NULL /* _typePlugin: assigned later */
|
|
}}; /* Type code for EventFilterHgrMineSearch*/
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return &EventFilterHgrMineSearch_g_tc;
|
|
}
|
|
|
|
EventFilterHgrMineSearch_g_tc._data._annotations._allowedDataRepresentationMask = 5;
|
|
|
|
EventFilterHgrMineSearch_g_tc_members[0]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
EventFilterHgrMineSearch_g_tc_members[1]._representation._typeCode = (RTICdrTypeCode *)&::rti::topic::dynamic_type< ::ProjectDataManagement::HgrMineSearchFilterType>::get().native();
|
|
|
|
/* Initialize the values for member annotations. */
|
|
EventFilterHgrMineSearch_g_tc_members[0]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
EventFilterHgrMineSearch_g_tc_members[0]._annotations._defaultValue._u.long_value = 0;
|
|
EventFilterHgrMineSearch_g_tc_members[0]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
EventFilterHgrMineSearch_g_tc_members[0]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
EventFilterHgrMineSearch_g_tc_members[0]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
EventFilterHgrMineSearch_g_tc_members[0]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
EventFilterHgrMineSearch_g_tc_members[1]._annotations._defaultValue._d = RTI_XCDR_TK_ENUM;
|
|
EventFilterHgrMineSearch_g_tc_members[1]._annotations._defaultValue._u.enumerated_value = 0;
|
|
|
|
EventFilterHgrMineSearch_g_tc._data._typeCode = (RTICdrTypeCode *)&::rti::topic::dynamic_type< ::ProjectDataManagement::PdmBase >::get().native(); /* Base class */
|
|
|
|
EventFilterHgrMineSearch_g_tc._data._sampleAccessInfo = sample_access_info();
|
|
EventFilterHgrMineSearch_g_tc._data._typePlugin = type_plugin_info();
|
|
|
|
is_initialized.store(true, std::memory_order_release);
|
|
|
|
return &EventFilterHgrMineSearch_g_tc;
|
|
}
|
|
|
|
static RTIXCdrSampleAccessInfo * sample_access_info()
|
|
{
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
::ProjectDataManagement::EventFilterHgrMineSearch *sample;
|
|
|
|
static RTIXCdrMemberAccessInfo EventFilterHgrMineSearch_g_memberAccessInfos[2] =
|
|
{RTIXCdrMemberAccessInfo_INITIALIZER};
|
|
|
|
static RTIXCdrSampleAccessInfo EventFilterHgrMineSearch_g_sampleAccessInfo =
|
|
RTIXCdrSampleAccessInfo_INITIALIZER;
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return (RTIXCdrSampleAccessInfo*) &EventFilterHgrMineSearch_g_sampleAccessInfo;
|
|
}
|
|
|
|
RTIXCdrHeap_allocateStruct(
|
|
&sample,
|
|
::ProjectDataManagement::EventFilterHgrMineSearch);
|
|
if (sample == NULL) {
|
|
return NULL;
|
|
}
|
|
|
|
EventFilterHgrMineSearch_g_memberAccessInfos[0].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->chargeTypeId - (char *)sample);
|
|
|
|
EventFilterHgrMineSearch_g_memberAccessInfos[1].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->hgrMineSearchFilterType - (char *)sample);
|
|
|
|
EventFilterHgrMineSearch_g_sampleAccessInfo.memberAccessInfos =
|
|
EventFilterHgrMineSearch_g_memberAccessInfos;
|
|
|
|
{
|
|
size_t candidateTypeSize = sizeof(::ProjectDataManagement::EventFilterHgrMineSearch);
|
|
|
|
if (candidateTypeSize > RTIXCdrLong_MAX) {
|
|
EventFilterHgrMineSearch_g_sampleAccessInfo.typeSize[0] =
|
|
RTIXCdrLong_MAX;
|
|
} else {
|
|
EventFilterHgrMineSearch_g_sampleAccessInfo.typeSize[0] =
|
|
(RTIXCdrUnsignedLong) candidateTypeSize;
|
|
}
|
|
}
|
|
|
|
EventFilterHgrMineSearch_g_sampleAccessInfo.useGetMemberValueOnlyWithRef =
|
|
RTI_XCDR_TRUE;
|
|
|
|
EventFilterHgrMineSearch_g_sampleAccessInfo.getMemberValuePointerFcn =
|
|
interpreter::get_aggregation_value_pointer< ::ProjectDataManagement::EventFilterHgrMineSearch >;
|
|
|
|
EventFilterHgrMineSearch_g_sampleAccessInfo.languageBinding =
|
|
RTI_XCDR_TYPE_BINDING_CPP_11_STL ;
|
|
|
|
RTIXCdrHeap_freeStruct(sample);
|
|
is_initialized.store(true, std::memory_order_release);
|
|
return (RTIXCdrSampleAccessInfo*) &EventFilterHgrMineSearch_g_sampleAccessInfo;
|
|
}
|
|
static RTIXCdrTypePlugin * type_plugin_info()
|
|
{
|
|
static RTIXCdrTypePlugin EventFilterHgrMineSearch_g_typePlugin =
|
|
{
|
|
NULL, /* serialize */
|
|
NULL, /* serialize_key */
|
|
NULL, /* deserialize_sample */
|
|
NULL, /* deserialize_key_sample */
|
|
NULL, /* skip */
|
|
NULL, /* get_serialized_sample_size */
|
|
NULL, /* get_serialized_sample_max_size_ex */
|
|
NULL, /* get_serialized_key_max_size_ex */
|
|
NULL, /* get_serialized_sample_min_size */
|
|
NULL, /* serialized_sample_to_key */
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL
|
|
};
|
|
|
|
return &EventFilterHgrMineSearch_g_typePlugin;
|
|
}
|
|
}; // native_type_code
|
|
|
|
const ::dds::core::xtypes::StructType& dynamic_type< ::ProjectDataManagement::EventFilterHgrMineSearch >::get()
|
|
{
|
|
return static_cast<const ::dds::core::xtypes::StructType&>(
|
|
::rti::core::native_conversions::cast_from_native< ::dds::core::xtypes::DynamicType >(
|
|
*(native_type_code< ::ProjectDataManagement::EventFilterHgrMineSearch >::get())));
|
|
}
|
|
|
|
template<>
|
|
struct native_type_code< ::ProjectDataManagement::FirePurpose > {
|
|
|
|
static DDS_TypeCode * get()
|
|
{
|
|
using namespace ::rti::topic::interpreter;
|
|
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
static DDS_TypeCode FirePurpose_g_tc_description_string;
|
|
static DDS_TypeCode FirePurpose_g_tc_properties_string;
|
|
|
|
static DDS_TypeCode_Member FirePurpose_g_tc_members[2]=
|
|
{
|
|
|
|
{
|
|
(char *)"description",/* Member name */
|
|
{
|
|
2,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"properties",/* Member name */
|
|
{
|
|
3,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
}
|
|
};
|
|
|
|
static DDS_TypeCode FirePurpose_g_tc =
|
|
{{
|
|
DDS_TK_VALUE, /* Kind */
|
|
DDS_BOOLEAN_FALSE, /* Ignored */
|
|
-1, /*Ignored*/
|
|
(char *)"ProjectDataManagement::FirePurpose", /* Name */
|
|
NULL, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
2, /* Number of members */
|
|
FirePurpose_g_tc_members, /* Members */
|
|
DDS_VM_NONE, /* Ignored */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER,
|
|
DDS_BOOLEAN_TRUE, /* _isCopyable */
|
|
NULL, /* _sampleAccessInfo: assigned later */
|
|
NULL /* _typePlugin: assigned later */
|
|
}}; /* Type code for FirePurpose*/
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return &FirePurpose_g_tc;
|
|
}
|
|
|
|
FirePurpose_g_tc_description_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
FirePurpose_g_tc_properties_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
|
|
FirePurpose_g_tc._data._annotations._allowedDataRepresentationMask = 5;
|
|
|
|
FirePurpose_g_tc_members[0]._representation._typeCode = (RTICdrTypeCode *)&FirePurpose_g_tc_description_string;
|
|
FirePurpose_g_tc_members[1]._representation._typeCode = (RTICdrTypeCode *)&FirePurpose_g_tc_properties_string;
|
|
|
|
/* Initialize the values for member annotations. */
|
|
FirePurpose_g_tc_members[0]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
FirePurpose_g_tc_members[0]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
FirePurpose_g_tc_members[1]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
FirePurpose_g_tc_members[1]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
|
|
FirePurpose_g_tc._data._typeCode = (RTICdrTypeCode *)&::rti::topic::dynamic_type< ::ProjectDataManagement::PdmBaseName >::get().native(); /* Base class */
|
|
|
|
FirePurpose_g_tc._data._sampleAccessInfo = sample_access_info();
|
|
FirePurpose_g_tc._data._typePlugin = type_plugin_info();
|
|
|
|
is_initialized.store(true, std::memory_order_release);
|
|
|
|
return &FirePurpose_g_tc;
|
|
}
|
|
|
|
static RTIXCdrSampleAccessInfo * sample_access_info()
|
|
{
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
::ProjectDataManagement::FirePurpose *sample;
|
|
|
|
static RTIXCdrMemberAccessInfo FirePurpose_g_memberAccessInfos[2] =
|
|
{RTIXCdrMemberAccessInfo_INITIALIZER};
|
|
|
|
static RTIXCdrSampleAccessInfo FirePurpose_g_sampleAccessInfo =
|
|
RTIXCdrSampleAccessInfo_INITIALIZER;
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return (RTIXCdrSampleAccessInfo*) &FirePurpose_g_sampleAccessInfo;
|
|
}
|
|
|
|
RTIXCdrHeap_allocateStruct(
|
|
&sample,
|
|
::ProjectDataManagement::FirePurpose);
|
|
if (sample == NULL) {
|
|
return NULL;
|
|
}
|
|
|
|
FirePurpose_g_memberAccessInfos[0].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->description - (char *)sample);
|
|
|
|
FirePurpose_g_memberAccessInfos[1].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->properties - (char *)sample);
|
|
|
|
FirePurpose_g_sampleAccessInfo.memberAccessInfos =
|
|
FirePurpose_g_memberAccessInfos;
|
|
|
|
{
|
|
size_t candidateTypeSize = sizeof(::ProjectDataManagement::FirePurpose);
|
|
|
|
if (candidateTypeSize > RTIXCdrLong_MAX) {
|
|
FirePurpose_g_sampleAccessInfo.typeSize[0] =
|
|
RTIXCdrLong_MAX;
|
|
} else {
|
|
FirePurpose_g_sampleAccessInfo.typeSize[0] =
|
|
(RTIXCdrUnsignedLong) candidateTypeSize;
|
|
}
|
|
}
|
|
|
|
FirePurpose_g_sampleAccessInfo.useGetMemberValueOnlyWithRef =
|
|
RTI_XCDR_TRUE;
|
|
|
|
FirePurpose_g_sampleAccessInfo.getMemberValuePointerFcn =
|
|
interpreter::get_aggregation_value_pointer< ::ProjectDataManagement::FirePurpose >;
|
|
|
|
FirePurpose_g_sampleAccessInfo.languageBinding =
|
|
RTI_XCDR_TYPE_BINDING_CPP_11_STL ;
|
|
|
|
RTIXCdrHeap_freeStruct(sample);
|
|
is_initialized.store(true, std::memory_order_release);
|
|
return (RTIXCdrSampleAccessInfo*) &FirePurpose_g_sampleAccessInfo;
|
|
}
|
|
static RTIXCdrTypePlugin * type_plugin_info()
|
|
{
|
|
static RTIXCdrTypePlugin FirePurpose_g_typePlugin =
|
|
{
|
|
NULL, /* serialize */
|
|
NULL, /* serialize_key */
|
|
NULL, /* deserialize_sample */
|
|
NULL, /* deserialize_key_sample */
|
|
NULL, /* skip */
|
|
NULL, /* get_serialized_sample_size */
|
|
NULL, /* get_serialized_sample_max_size_ex */
|
|
NULL, /* get_serialized_key_max_size_ex */
|
|
NULL, /* get_serialized_sample_min_size */
|
|
NULL, /* serialized_sample_to_key */
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL
|
|
};
|
|
|
|
return &FirePurpose_g_typePlugin;
|
|
}
|
|
}; // native_type_code
|
|
|
|
const ::dds::core::xtypes::StructType& dynamic_type< ::ProjectDataManagement::FirePurpose >::get()
|
|
{
|
|
return static_cast<const ::dds::core::xtypes::StructType&>(
|
|
::rti::core::native_conversions::cast_from_native< ::dds::core::xtypes::DynamicType >(
|
|
*(native_type_code< ::ProjectDataManagement::FirePurpose >::get())));
|
|
}
|
|
|
|
template<>
|
|
struct native_type_code< ::ProjectDataManagement::GearType > {
|
|
|
|
static DDS_TypeCode * get()
|
|
{
|
|
using namespace ::rti::topic::interpreter;
|
|
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
static DDS_TypeCode GearType_g_tc_properties_string;
|
|
|
|
static DDS_TypeCode_Member GearType_g_tc_members[3]=
|
|
{
|
|
|
|
{
|
|
(char *)"gearClassId",/* Member name */
|
|
{
|
|
2,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"tasCode",/* Member name */
|
|
{
|
|
3,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"properties",/* Member name */
|
|
{
|
|
4,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
}
|
|
};
|
|
|
|
static DDS_TypeCode GearType_g_tc =
|
|
{{
|
|
DDS_TK_VALUE, /* Kind */
|
|
DDS_BOOLEAN_FALSE, /* Ignored */
|
|
-1, /*Ignored*/
|
|
(char *)"ProjectDataManagement::GearType", /* Name */
|
|
NULL, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
3, /* Number of members */
|
|
GearType_g_tc_members, /* Members */
|
|
DDS_VM_NONE, /* Ignored */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER,
|
|
DDS_BOOLEAN_TRUE, /* _isCopyable */
|
|
NULL, /* _sampleAccessInfo: assigned later */
|
|
NULL /* _typePlugin: assigned later */
|
|
}}; /* Type code for GearType*/
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return &GearType_g_tc;
|
|
}
|
|
|
|
GearType_g_tc_properties_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
|
|
GearType_g_tc._data._annotations._allowedDataRepresentationMask = 5;
|
|
|
|
GearType_g_tc_members[0]._representation._typeCode = (RTICdrTypeCode *)&::rti::topic::dynamic_type< ::ProjectDataManagement::GearClass>::get().native();
|
|
GearType_g_tc_members[1]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
GearType_g_tc_members[2]._representation._typeCode = (RTICdrTypeCode *)&GearType_g_tc_properties_string;
|
|
|
|
/* Initialize the values for member annotations. */
|
|
GearType_g_tc_members[0]._annotations._defaultValue._d = RTI_XCDR_TK_ENUM;
|
|
GearType_g_tc_members[0]._annotations._defaultValue._u.enumerated_value = 0;
|
|
GearType_g_tc_members[1]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
GearType_g_tc_members[1]._annotations._defaultValue._u.long_value = 0;
|
|
GearType_g_tc_members[1]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
GearType_g_tc_members[1]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
GearType_g_tc_members[1]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
GearType_g_tc_members[1]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
GearType_g_tc_members[2]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
GearType_g_tc_members[2]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
|
|
GearType_g_tc._data._typeCode = (RTICdrTypeCode *)&::rti::topic::dynamic_type< ::ProjectDataManagement::PdmBaseName >::get().native(); /* Base class */
|
|
|
|
GearType_g_tc._data._sampleAccessInfo = sample_access_info();
|
|
GearType_g_tc._data._typePlugin = type_plugin_info();
|
|
|
|
is_initialized.store(true, std::memory_order_release);
|
|
|
|
return &GearType_g_tc;
|
|
}
|
|
|
|
static RTIXCdrSampleAccessInfo * sample_access_info()
|
|
{
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
::ProjectDataManagement::GearType *sample;
|
|
|
|
static RTIXCdrMemberAccessInfo GearType_g_memberAccessInfos[3] =
|
|
{RTIXCdrMemberAccessInfo_INITIALIZER};
|
|
|
|
static RTIXCdrSampleAccessInfo GearType_g_sampleAccessInfo =
|
|
RTIXCdrSampleAccessInfo_INITIALIZER;
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return (RTIXCdrSampleAccessInfo*) &GearType_g_sampleAccessInfo;
|
|
}
|
|
|
|
RTIXCdrHeap_allocateStruct(
|
|
&sample,
|
|
::ProjectDataManagement::GearType);
|
|
if (sample == NULL) {
|
|
return NULL;
|
|
}
|
|
|
|
GearType_g_memberAccessInfos[0].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->gearClassId - (char *)sample);
|
|
|
|
GearType_g_memberAccessInfos[1].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->tasCode - (char *)sample);
|
|
|
|
GearType_g_memberAccessInfos[2].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->properties - (char *)sample);
|
|
|
|
GearType_g_sampleAccessInfo.memberAccessInfos =
|
|
GearType_g_memberAccessInfos;
|
|
|
|
{
|
|
size_t candidateTypeSize = sizeof(::ProjectDataManagement::GearType);
|
|
|
|
if (candidateTypeSize > RTIXCdrLong_MAX) {
|
|
GearType_g_sampleAccessInfo.typeSize[0] =
|
|
RTIXCdrLong_MAX;
|
|
} else {
|
|
GearType_g_sampleAccessInfo.typeSize[0] =
|
|
(RTIXCdrUnsignedLong) candidateTypeSize;
|
|
}
|
|
}
|
|
|
|
GearType_g_sampleAccessInfo.useGetMemberValueOnlyWithRef =
|
|
RTI_XCDR_TRUE;
|
|
|
|
GearType_g_sampleAccessInfo.getMemberValuePointerFcn =
|
|
interpreter::get_aggregation_value_pointer< ::ProjectDataManagement::GearType >;
|
|
|
|
GearType_g_sampleAccessInfo.languageBinding =
|
|
RTI_XCDR_TYPE_BINDING_CPP_11_STL ;
|
|
|
|
RTIXCdrHeap_freeStruct(sample);
|
|
is_initialized.store(true, std::memory_order_release);
|
|
return (RTIXCdrSampleAccessInfo*) &GearType_g_sampleAccessInfo;
|
|
}
|
|
static RTIXCdrTypePlugin * type_plugin_info()
|
|
{
|
|
static RTIXCdrTypePlugin GearType_g_typePlugin =
|
|
{
|
|
NULL, /* serialize */
|
|
NULL, /* serialize_key */
|
|
NULL, /* deserialize_sample */
|
|
NULL, /* deserialize_key_sample */
|
|
NULL, /* skip */
|
|
NULL, /* get_serialized_sample_size */
|
|
NULL, /* get_serialized_sample_max_size_ex */
|
|
NULL, /* get_serialized_key_max_size_ex */
|
|
NULL, /* get_serialized_sample_min_size */
|
|
NULL, /* serialized_sample_to_key */
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL
|
|
};
|
|
|
|
return &GearType_g_typePlugin;
|
|
}
|
|
}; // native_type_code
|
|
|
|
const ::dds::core::xtypes::StructType& dynamic_type< ::ProjectDataManagement::GearType >::get()
|
|
{
|
|
return static_cast<const ::dds::core::xtypes::StructType&>(
|
|
::rti::core::native_conversions::cast_from_native< ::dds::core::xtypes::DynamicType >(
|
|
*(native_type_code< ::ProjectDataManagement::GearType >::get())));
|
|
}
|
|
|
|
template<>
|
|
struct native_type_code< ::ProjectDataManagement::GearTypeChargeType > {
|
|
|
|
static DDS_TypeCode * get()
|
|
{
|
|
using namespace ::rti::topic::interpreter;
|
|
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
static DDS_TypeCode GearTypeChargeType_g_tc_properties_string;
|
|
|
|
static DDS_TypeCode_Member GearTypeChargeType_g_tc_members[4]=
|
|
{
|
|
|
|
{
|
|
(char *)"chargeTypeId",/* Member name */
|
|
{
|
|
1,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"maxRange",/* Member name */
|
|
{
|
|
2,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"gearTypeId",/* Member name */
|
|
{
|
|
3,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"properties",/* Member name */
|
|
{
|
|
4,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
}
|
|
};
|
|
|
|
static DDS_TypeCode GearTypeChargeType_g_tc =
|
|
{{
|
|
DDS_TK_VALUE, /* Kind */
|
|
DDS_BOOLEAN_FALSE, /* Ignored */
|
|
-1, /*Ignored*/
|
|
(char *)"ProjectDataManagement::GearTypeChargeType", /* Name */
|
|
NULL, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
4, /* Number of members */
|
|
GearTypeChargeType_g_tc_members, /* Members */
|
|
DDS_VM_NONE, /* Ignored */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER,
|
|
DDS_BOOLEAN_TRUE, /* _isCopyable */
|
|
NULL, /* _sampleAccessInfo: assigned later */
|
|
NULL /* _typePlugin: assigned later */
|
|
}}; /* Type code for GearTypeChargeType*/
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return &GearTypeChargeType_g_tc;
|
|
}
|
|
|
|
GearTypeChargeType_g_tc_properties_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
|
|
GearTypeChargeType_g_tc._data._annotations._allowedDataRepresentationMask = 5;
|
|
|
|
GearTypeChargeType_g_tc_members[0]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
GearTypeChargeType_g_tc_members[1]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
GearTypeChargeType_g_tc_members[2]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
GearTypeChargeType_g_tc_members[3]._representation._typeCode = (RTICdrTypeCode *)&GearTypeChargeType_g_tc_properties_string;
|
|
|
|
/* Initialize the values for member annotations. */
|
|
GearTypeChargeType_g_tc_members[0]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
GearTypeChargeType_g_tc_members[0]._annotations._defaultValue._u.long_value = 0;
|
|
GearTypeChargeType_g_tc_members[0]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
GearTypeChargeType_g_tc_members[0]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
GearTypeChargeType_g_tc_members[0]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
GearTypeChargeType_g_tc_members[0]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
GearTypeChargeType_g_tc_members[1]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
GearTypeChargeType_g_tc_members[1]._annotations._defaultValue._u.long_value = 0;
|
|
GearTypeChargeType_g_tc_members[1]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
GearTypeChargeType_g_tc_members[1]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
GearTypeChargeType_g_tc_members[1]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
GearTypeChargeType_g_tc_members[1]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
GearTypeChargeType_g_tc_members[2]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
GearTypeChargeType_g_tc_members[2]._annotations._defaultValue._u.long_value = 0;
|
|
GearTypeChargeType_g_tc_members[2]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
GearTypeChargeType_g_tc_members[2]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
GearTypeChargeType_g_tc_members[2]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
GearTypeChargeType_g_tc_members[2]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
GearTypeChargeType_g_tc_members[3]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
GearTypeChargeType_g_tc_members[3]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
|
|
GearTypeChargeType_g_tc._data._typeCode = (RTICdrTypeCode *)&::rti::topic::dynamic_type< ::ProjectDataManagement::PdmBase >::get().native(); /* Base class */
|
|
|
|
GearTypeChargeType_g_tc._data._sampleAccessInfo = sample_access_info();
|
|
GearTypeChargeType_g_tc._data._typePlugin = type_plugin_info();
|
|
|
|
is_initialized.store(true, std::memory_order_release);
|
|
|
|
return &GearTypeChargeType_g_tc;
|
|
}
|
|
|
|
static RTIXCdrSampleAccessInfo * sample_access_info()
|
|
{
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
::ProjectDataManagement::GearTypeChargeType *sample;
|
|
|
|
static RTIXCdrMemberAccessInfo GearTypeChargeType_g_memberAccessInfos[4] =
|
|
{RTIXCdrMemberAccessInfo_INITIALIZER};
|
|
|
|
static RTIXCdrSampleAccessInfo GearTypeChargeType_g_sampleAccessInfo =
|
|
RTIXCdrSampleAccessInfo_INITIALIZER;
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return (RTIXCdrSampleAccessInfo*) &GearTypeChargeType_g_sampleAccessInfo;
|
|
}
|
|
|
|
RTIXCdrHeap_allocateStruct(
|
|
&sample,
|
|
::ProjectDataManagement::GearTypeChargeType);
|
|
if (sample == NULL) {
|
|
return NULL;
|
|
}
|
|
|
|
GearTypeChargeType_g_memberAccessInfos[0].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->chargeTypeId - (char *)sample);
|
|
|
|
GearTypeChargeType_g_memberAccessInfos[1].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->maxRange - (char *)sample);
|
|
|
|
GearTypeChargeType_g_memberAccessInfos[2].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->gearTypeId - (char *)sample);
|
|
|
|
GearTypeChargeType_g_memberAccessInfos[3].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->properties - (char *)sample);
|
|
|
|
GearTypeChargeType_g_sampleAccessInfo.memberAccessInfos =
|
|
GearTypeChargeType_g_memberAccessInfos;
|
|
|
|
{
|
|
size_t candidateTypeSize = sizeof(::ProjectDataManagement::GearTypeChargeType);
|
|
|
|
if (candidateTypeSize > RTIXCdrLong_MAX) {
|
|
GearTypeChargeType_g_sampleAccessInfo.typeSize[0] =
|
|
RTIXCdrLong_MAX;
|
|
} else {
|
|
GearTypeChargeType_g_sampleAccessInfo.typeSize[0] =
|
|
(RTIXCdrUnsignedLong) candidateTypeSize;
|
|
}
|
|
}
|
|
|
|
GearTypeChargeType_g_sampleAccessInfo.useGetMemberValueOnlyWithRef =
|
|
RTI_XCDR_TRUE;
|
|
|
|
GearTypeChargeType_g_sampleAccessInfo.getMemberValuePointerFcn =
|
|
interpreter::get_aggregation_value_pointer< ::ProjectDataManagement::GearTypeChargeType >;
|
|
|
|
GearTypeChargeType_g_sampleAccessInfo.languageBinding =
|
|
RTI_XCDR_TYPE_BINDING_CPP_11_STL ;
|
|
|
|
RTIXCdrHeap_freeStruct(sample);
|
|
is_initialized.store(true, std::memory_order_release);
|
|
return (RTIXCdrSampleAccessInfo*) &GearTypeChargeType_g_sampleAccessInfo;
|
|
}
|
|
static RTIXCdrTypePlugin * type_plugin_info()
|
|
{
|
|
static RTIXCdrTypePlugin GearTypeChargeType_g_typePlugin =
|
|
{
|
|
NULL, /* serialize */
|
|
NULL, /* serialize_key */
|
|
NULL, /* deserialize_sample */
|
|
NULL, /* deserialize_key_sample */
|
|
NULL, /* skip */
|
|
NULL, /* get_serialized_sample_size */
|
|
NULL, /* get_serialized_sample_max_size_ex */
|
|
NULL, /* get_serialized_key_max_size_ex */
|
|
NULL, /* get_serialized_sample_min_size */
|
|
NULL, /* serialized_sample_to_key */
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL
|
|
};
|
|
|
|
return &GearTypeChargeType_g_typePlugin;
|
|
}
|
|
}; // native_type_code
|
|
|
|
const ::dds::core::xtypes::StructType& dynamic_type< ::ProjectDataManagement::GearTypeChargeType >::get()
|
|
{
|
|
return static_cast<const ::dds::core::xtypes::StructType&>(
|
|
::rti::core::native_conversions::cast_from_native< ::dds::core::xtypes::DynamicType >(
|
|
*(native_type_code< ::ProjectDataManagement::GearTypeChargeType >::get())));
|
|
}
|
|
|
|
template<>
|
|
struct native_type_code< ::ProjectDataManagement::IgniterFunction > {
|
|
|
|
static DDS_TypeCode * get()
|
|
{
|
|
using namespace ::rti::topic::interpreter;
|
|
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
static DDS_TypeCode IgniterFunction_g_tc_shortName_string;
|
|
static DDS_TypeCode IgniterFunction_g_tc_properties_string;
|
|
|
|
static DDS_TypeCode_Member IgniterFunction_g_tc_members[2]=
|
|
{
|
|
|
|
{
|
|
(char *)"shortName",/* Member name */
|
|
{
|
|
2,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"properties",/* Member name */
|
|
{
|
|
3,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
}
|
|
};
|
|
|
|
static DDS_TypeCode IgniterFunction_g_tc =
|
|
{{
|
|
DDS_TK_VALUE, /* Kind */
|
|
DDS_BOOLEAN_FALSE, /* Ignored */
|
|
-1, /*Ignored*/
|
|
(char *)"ProjectDataManagement::IgniterFunction", /* Name */
|
|
NULL, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
2, /* Number of members */
|
|
IgniterFunction_g_tc_members, /* Members */
|
|
DDS_VM_NONE, /* Ignored */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER,
|
|
DDS_BOOLEAN_TRUE, /* _isCopyable */
|
|
NULL, /* _sampleAccessInfo: assigned later */
|
|
NULL /* _typePlugin: assigned later */
|
|
}}; /* Type code for IgniterFunction*/
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return &IgniterFunction_g_tc;
|
|
}
|
|
|
|
IgniterFunction_g_tc_shortName_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
IgniterFunction_g_tc_properties_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
|
|
IgniterFunction_g_tc._data._annotations._allowedDataRepresentationMask = 5;
|
|
|
|
IgniterFunction_g_tc_members[0]._representation._typeCode = (RTICdrTypeCode *)&IgniterFunction_g_tc_shortName_string;
|
|
IgniterFunction_g_tc_members[1]._representation._typeCode = (RTICdrTypeCode *)&IgniterFunction_g_tc_properties_string;
|
|
|
|
/* Initialize the values for member annotations. */
|
|
IgniterFunction_g_tc_members[0]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
IgniterFunction_g_tc_members[0]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
IgniterFunction_g_tc_members[1]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
IgniterFunction_g_tc_members[1]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
|
|
IgniterFunction_g_tc._data._typeCode = (RTICdrTypeCode *)&::rti::topic::dynamic_type< ::ProjectDataManagement::PdmBaseName >::get().native(); /* Base class */
|
|
|
|
IgniterFunction_g_tc._data._sampleAccessInfo = sample_access_info();
|
|
IgniterFunction_g_tc._data._typePlugin = type_plugin_info();
|
|
|
|
is_initialized.store(true, std::memory_order_release);
|
|
|
|
return &IgniterFunction_g_tc;
|
|
}
|
|
|
|
static RTIXCdrSampleAccessInfo * sample_access_info()
|
|
{
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
::ProjectDataManagement::IgniterFunction *sample;
|
|
|
|
static RTIXCdrMemberAccessInfo IgniterFunction_g_memberAccessInfos[2] =
|
|
{RTIXCdrMemberAccessInfo_INITIALIZER};
|
|
|
|
static RTIXCdrSampleAccessInfo IgniterFunction_g_sampleAccessInfo =
|
|
RTIXCdrSampleAccessInfo_INITIALIZER;
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return (RTIXCdrSampleAccessInfo*) &IgniterFunction_g_sampleAccessInfo;
|
|
}
|
|
|
|
RTIXCdrHeap_allocateStruct(
|
|
&sample,
|
|
::ProjectDataManagement::IgniterFunction);
|
|
if (sample == NULL) {
|
|
return NULL;
|
|
}
|
|
|
|
IgniterFunction_g_memberAccessInfos[0].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->shortName - (char *)sample);
|
|
|
|
IgniterFunction_g_memberAccessInfos[1].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->properties - (char *)sample);
|
|
|
|
IgniterFunction_g_sampleAccessInfo.memberAccessInfos =
|
|
IgniterFunction_g_memberAccessInfos;
|
|
|
|
{
|
|
size_t candidateTypeSize = sizeof(::ProjectDataManagement::IgniterFunction);
|
|
|
|
if (candidateTypeSize > RTIXCdrLong_MAX) {
|
|
IgniterFunction_g_sampleAccessInfo.typeSize[0] =
|
|
RTIXCdrLong_MAX;
|
|
} else {
|
|
IgniterFunction_g_sampleAccessInfo.typeSize[0] =
|
|
(RTIXCdrUnsignedLong) candidateTypeSize;
|
|
}
|
|
}
|
|
|
|
IgniterFunction_g_sampleAccessInfo.useGetMemberValueOnlyWithRef =
|
|
RTI_XCDR_TRUE;
|
|
|
|
IgniterFunction_g_sampleAccessInfo.getMemberValuePointerFcn =
|
|
interpreter::get_aggregation_value_pointer< ::ProjectDataManagement::IgniterFunction >;
|
|
|
|
IgniterFunction_g_sampleAccessInfo.languageBinding =
|
|
RTI_XCDR_TYPE_BINDING_CPP_11_STL ;
|
|
|
|
RTIXCdrHeap_freeStruct(sample);
|
|
is_initialized.store(true, std::memory_order_release);
|
|
return (RTIXCdrSampleAccessInfo*) &IgniterFunction_g_sampleAccessInfo;
|
|
}
|
|
static RTIXCdrTypePlugin * type_plugin_info()
|
|
{
|
|
static RTIXCdrTypePlugin IgniterFunction_g_typePlugin =
|
|
{
|
|
NULL, /* serialize */
|
|
NULL, /* serialize_key */
|
|
NULL, /* deserialize_sample */
|
|
NULL, /* deserialize_key_sample */
|
|
NULL, /* skip */
|
|
NULL, /* get_serialized_sample_size */
|
|
NULL, /* get_serialized_sample_max_size_ex */
|
|
NULL, /* get_serialized_key_max_size_ex */
|
|
NULL, /* get_serialized_sample_min_size */
|
|
NULL, /* serialized_sample_to_key */
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL
|
|
};
|
|
|
|
return &IgniterFunction_g_typePlugin;
|
|
}
|
|
}; // native_type_code
|
|
|
|
const ::dds::core::xtypes::StructType& dynamic_type< ::ProjectDataManagement::IgniterFunction >::get()
|
|
{
|
|
return static_cast<const ::dds::core::xtypes::StructType&>(
|
|
::rti::core::native_conversions::cast_from_native< ::dds::core::xtypes::DynamicType >(
|
|
*(native_type_code< ::ProjectDataManagement::IgniterFunction >::get())));
|
|
}
|
|
|
|
template<>
|
|
struct native_type_code< ::ProjectDataManagement::IgniterType > {
|
|
|
|
static DDS_TypeCode * get()
|
|
{
|
|
using namespace ::rti::topic::interpreter;
|
|
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
static DDS_TypeCode IgniterType_g_tc_shortName_string;
|
|
static DDS_TypeCode IgniterType_g_tc_properties_string;
|
|
|
|
static DDS_TypeCode_Member IgniterType_g_tc_members[2]=
|
|
{
|
|
|
|
{
|
|
(char *)"shortName",/* Member name */
|
|
{
|
|
2,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"properties",/* Member name */
|
|
{
|
|
3,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
}
|
|
};
|
|
|
|
static DDS_TypeCode IgniterType_g_tc =
|
|
{{
|
|
DDS_TK_VALUE, /* Kind */
|
|
DDS_BOOLEAN_FALSE, /* Ignored */
|
|
-1, /*Ignored*/
|
|
(char *)"ProjectDataManagement::IgniterType", /* Name */
|
|
NULL, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
2, /* Number of members */
|
|
IgniterType_g_tc_members, /* Members */
|
|
DDS_VM_NONE, /* Ignored */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER,
|
|
DDS_BOOLEAN_TRUE, /* _isCopyable */
|
|
NULL, /* _sampleAccessInfo: assigned later */
|
|
NULL /* _typePlugin: assigned later */
|
|
}}; /* Type code for IgniterType*/
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return &IgniterType_g_tc;
|
|
}
|
|
|
|
IgniterType_g_tc_shortName_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
IgniterType_g_tc_properties_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
|
|
IgniterType_g_tc._data._annotations._allowedDataRepresentationMask = 5;
|
|
|
|
IgniterType_g_tc_members[0]._representation._typeCode = (RTICdrTypeCode *)&IgniterType_g_tc_shortName_string;
|
|
IgniterType_g_tc_members[1]._representation._typeCode = (RTICdrTypeCode *)&IgniterType_g_tc_properties_string;
|
|
|
|
/* Initialize the values for member annotations. */
|
|
IgniterType_g_tc_members[0]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
IgniterType_g_tc_members[0]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
IgniterType_g_tc_members[1]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
IgniterType_g_tc_members[1]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
|
|
IgniterType_g_tc._data._typeCode = (RTICdrTypeCode *)&::rti::topic::dynamic_type< ::ProjectDataManagement::PdmBaseName >::get().native(); /* Base class */
|
|
|
|
IgniterType_g_tc._data._sampleAccessInfo = sample_access_info();
|
|
IgniterType_g_tc._data._typePlugin = type_plugin_info();
|
|
|
|
is_initialized.store(true, std::memory_order_release);
|
|
|
|
return &IgniterType_g_tc;
|
|
}
|
|
|
|
static RTIXCdrSampleAccessInfo * sample_access_info()
|
|
{
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
::ProjectDataManagement::IgniterType *sample;
|
|
|
|
static RTIXCdrMemberAccessInfo IgniterType_g_memberAccessInfos[2] =
|
|
{RTIXCdrMemberAccessInfo_INITIALIZER};
|
|
|
|
static RTIXCdrSampleAccessInfo IgniterType_g_sampleAccessInfo =
|
|
RTIXCdrSampleAccessInfo_INITIALIZER;
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return (RTIXCdrSampleAccessInfo*) &IgniterType_g_sampleAccessInfo;
|
|
}
|
|
|
|
RTIXCdrHeap_allocateStruct(
|
|
&sample,
|
|
::ProjectDataManagement::IgniterType);
|
|
if (sample == NULL) {
|
|
return NULL;
|
|
}
|
|
|
|
IgniterType_g_memberAccessInfos[0].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->shortName - (char *)sample);
|
|
|
|
IgniterType_g_memberAccessInfos[1].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->properties - (char *)sample);
|
|
|
|
IgniterType_g_sampleAccessInfo.memberAccessInfos =
|
|
IgniterType_g_memberAccessInfos;
|
|
|
|
{
|
|
size_t candidateTypeSize = sizeof(::ProjectDataManagement::IgniterType);
|
|
|
|
if (candidateTypeSize > RTIXCdrLong_MAX) {
|
|
IgniterType_g_sampleAccessInfo.typeSize[0] =
|
|
RTIXCdrLong_MAX;
|
|
} else {
|
|
IgniterType_g_sampleAccessInfo.typeSize[0] =
|
|
(RTIXCdrUnsignedLong) candidateTypeSize;
|
|
}
|
|
}
|
|
|
|
IgniterType_g_sampleAccessInfo.useGetMemberValueOnlyWithRef =
|
|
RTI_XCDR_TRUE;
|
|
|
|
IgniterType_g_sampleAccessInfo.getMemberValuePointerFcn =
|
|
interpreter::get_aggregation_value_pointer< ::ProjectDataManagement::IgniterType >;
|
|
|
|
IgniterType_g_sampleAccessInfo.languageBinding =
|
|
RTI_XCDR_TYPE_BINDING_CPP_11_STL ;
|
|
|
|
RTIXCdrHeap_freeStruct(sample);
|
|
is_initialized.store(true, std::memory_order_release);
|
|
return (RTIXCdrSampleAccessInfo*) &IgniterType_g_sampleAccessInfo;
|
|
}
|
|
static RTIXCdrTypePlugin * type_plugin_info()
|
|
{
|
|
static RTIXCdrTypePlugin IgniterType_g_typePlugin =
|
|
{
|
|
NULL, /* serialize */
|
|
NULL, /* serialize_key */
|
|
NULL, /* deserialize_sample */
|
|
NULL, /* deserialize_key_sample */
|
|
NULL, /* skip */
|
|
NULL, /* get_serialized_sample_size */
|
|
NULL, /* get_serialized_sample_max_size_ex */
|
|
NULL, /* get_serialized_key_max_size_ex */
|
|
NULL, /* get_serialized_sample_min_size */
|
|
NULL, /* serialized_sample_to_key */
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL
|
|
};
|
|
|
|
return &IgniterType_g_typePlugin;
|
|
}
|
|
}; // native_type_code
|
|
|
|
const ::dds::core::xtypes::StructType& dynamic_type< ::ProjectDataManagement::IgniterType >::get()
|
|
{
|
|
return static_cast<const ::dds::core::xtypes::StructType&>(
|
|
::rti::core::native_conversions::cast_from_native< ::dds::core::xtypes::DynamicType >(
|
|
*(native_type_code< ::ProjectDataManagement::IgniterType >::get())));
|
|
}
|
|
|
|
template<>
|
|
struct native_type_code< ::ProjectDataManagement::InsertUpdateTranslationRequest > {
|
|
|
|
static DDS_TypeCode * get()
|
|
{
|
|
using namespace ::rti::topic::interpreter;
|
|
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
static DDS_TypeCode InsertUpdateTranslationRequest_g_tc_isoCode_string;
|
|
static DDS_TypeCode InsertUpdateTranslationRequest_g_tc_ctx_string;
|
|
static DDS_TypeCode InsertUpdateTranslationRequest_g_tc_key_string;
|
|
static DDS_TypeCode InsertUpdateTranslationRequest_g_tc_disambiguation_string;
|
|
static DDS_TypeCode InsertUpdateTranslationRequest_g_tc_translation_string;
|
|
|
|
static DDS_TypeCode_Member InsertUpdateTranslationRequest_g_tc_members[5]=
|
|
{
|
|
|
|
{
|
|
(char *)"isoCode",/* Member name */
|
|
{
|
|
0,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"ctx",/* Member name */
|
|
{
|
|
1,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"key",/* Member name */
|
|
{
|
|
2,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"disambiguation",/* Member name */
|
|
{
|
|
3,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"translation",/* Member name */
|
|
{
|
|
4,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
}
|
|
};
|
|
|
|
static DDS_TypeCode InsertUpdateTranslationRequest_g_tc =
|
|
{{
|
|
DDS_TK_STRUCT, /* Kind */
|
|
DDS_BOOLEAN_FALSE, /* Ignored */
|
|
-1, /*Ignored*/
|
|
(char *)"ProjectDataManagement::InsertUpdateTranslationRequest", /* Name */
|
|
NULL, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
5, /* Number of members */
|
|
InsertUpdateTranslationRequest_g_tc_members, /* Members */
|
|
DDS_VM_NONE, /* Ignored */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER,
|
|
DDS_BOOLEAN_TRUE, /* _isCopyable */
|
|
NULL, /* _sampleAccessInfo: assigned later */
|
|
NULL /* _typePlugin: assigned later */
|
|
}}; /* Type code for InsertUpdateTranslationRequest*/
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return &InsertUpdateTranslationRequest_g_tc;
|
|
}
|
|
|
|
InsertUpdateTranslationRequest_g_tc_isoCode_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
InsertUpdateTranslationRequest_g_tc_ctx_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
InsertUpdateTranslationRequest_g_tc_key_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
InsertUpdateTranslationRequest_g_tc_disambiguation_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
InsertUpdateTranslationRequest_g_tc_translation_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
|
|
InsertUpdateTranslationRequest_g_tc._data._annotations._allowedDataRepresentationMask = 5;
|
|
|
|
InsertUpdateTranslationRequest_g_tc_members[0]._representation._typeCode = (RTICdrTypeCode *)&InsertUpdateTranslationRequest_g_tc_isoCode_string;
|
|
InsertUpdateTranslationRequest_g_tc_members[1]._representation._typeCode = (RTICdrTypeCode *)&InsertUpdateTranslationRequest_g_tc_ctx_string;
|
|
InsertUpdateTranslationRequest_g_tc_members[2]._representation._typeCode = (RTICdrTypeCode *)&InsertUpdateTranslationRequest_g_tc_key_string;
|
|
InsertUpdateTranslationRequest_g_tc_members[3]._representation._typeCode = (RTICdrTypeCode *)&InsertUpdateTranslationRequest_g_tc_disambiguation_string;
|
|
InsertUpdateTranslationRequest_g_tc_members[4]._representation._typeCode = (RTICdrTypeCode *)&InsertUpdateTranslationRequest_g_tc_translation_string;
|
|
|
|
/* Initialize the values for member annotations. */
|
|
InsertUpdateTranslationRequest_g_tc_members[0]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
InsertUpdateTranslationRequest_g_tc_members[0]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
InsertUpdateTranslationRequest_g_tc_members[1]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
InsertUpdateTranslationRequest_g_tc_members[1]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
InsertUpdateTranslationRequest_g_tc_members[2]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
InsertUpdateTranslationRequest_g_tc_members[2]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
InsertUpdateTranslationRequest_g_tc_members[3]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
InsertUpdateTranslationRequest_g_tc_members[3]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
InsertUpdateTranslationRequest_g_tc_members[4]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
InsertUpdateTranslationRequest_g_tc_members[4]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
|
|
InsertUpdateTranslationRequest_g_tc._data._sampleAccessInfo = sample_access_info();
|
|
InsertUpdateTranslationRequest_g_tc._data._typePlugin = type_plugin_info();
|
|
|
|
is_initialized.store(true, std::memory_order_release);
|
|
|
|
return &InsertUpdateTranslationRequest_g_tc;
|
|
}
|
|
|
|
static RTIXCdrSampleAccessInfo * sample_access_info()
|
|
{
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
::ProjectDataManagement::InsertUpdateTranslationRequest *sample;
|
|
|
|
static RTIXCdrMemberAccessInfo InsertUpdateTranslationRequest_g_memberAccessInfos[5] =
|
|
{RTIXCdrMemberAccessInfo_INITIALIZER};
|
|
|
|
static RTIXCdrSampleAccessInfo InsertUpdateTranslationRequest_g_sampleAccessInfo =
|
|
RTIXCdrSampleAccessInfo_INITIALIZER;
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return (RTIXCdrSampleAccessInfo*) &InsertUpdateTranslationRequest_g_sampleAccessInfo;
|
|
}
|
|
|
|
RTIXCdrHeap_allocateStruct(
|
|
&sample,
|
|
::ProjectDataManagement::InsertUpdateTranslationRequest);
|
|
if (sample == NULL) {
|
|
return NULL;
|
|
}
|
|
|
|
InsertUpdateTranslationRequest_g_memberAccessInfos[0].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->isoCode - (char *)sample);
|
|
|
|
InsertUpdateTranslationRequest_g_memberAccessInfos[1].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->ctx - (char *)sample);
|
|
|
|
InsertUpdateTranslationRequest_g_memberAccessInfos[2].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->key - (char *)sample);
|
|
|
|
InsertUpdateTranslationRequest_g_memberAccessInfos[3].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->disambiguation - (char *)sample);
|
|
|
|
InsertUpdateTranslationRequest_g_memberAccessInfos[4].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->translation - (char *)sample);
|
|
|
|
InsertUpdateTranslationRequest_g_sampleAccessInfo.memberAccessInfos =
|
|
InsertUpdateTranslationRequest_g_memberAccessInfos;
|
|
|
|
{
|
|
size_t candidateTypeSize = sizeof(::ProjectDataManagement::InsertUpdateTranslationRequest);
|
|
|
|
if (candidateTypeSize > RTIXCdrLong_MAX) {
|
|
InsertUpdateTranslationRequest_g_sampleAccessInfo.typeSize[0] =
|
|
RTIXCdrLong_MAX;
|
|
} else {
|
|
InsertUpdateTranslationRequest_g_sampleAccessInfo.typeSize[0] =
|
|
(RTIXCdrUnsignedLong) candidateTypeSize;
|
|
}
|
|
}
|
|
|
|
InsertUpdateTranslationRequest_g_sampleAccessInfo.useGetMemberValueOnlyWithRef =
|
|
RTI_XCDR_TRUE;
|
|
|
|
InsertUpdateTranslationRequest_g_sampleAccessInfo.getMemberValuePointerFcn =
|
|
interpreter::get_aggregation_value_pointer< ::ProjectDataManagement::InsertUpdateTranslationRequest >;
|
|
|
|
InsertUpdateTranslationRequest_g_sampleAccessInfo.languageBinding =
|
|
RTI_XCDR_TYPE_BINDING_CPP_11_STL ;
|
|
|
|
RTIXCdrHeap_freeStruct(sample);
|
|
is_initialized.store(true, std::memory_order_release);
|
|
return (RTIXCdrSampleAccessInfo*) &InsertUpdateTranslationRequest_g_sampleAccessInfo;
|
|
}
|
|
static RTIXCdrTypePlugin * type_plugin_info()
|
|
{
|
|
static RTIXCdrTypePlugin InsertUpdateTranslationRequest_g_typePlugin =
|
|
{
|
|
NULL, /* serialize */
|
|
NULL, /* serialize_key */
|
|
NULL, /* deserialize_sample */
|
|
NULL, /* deserialize_key_sample */
|
|
NULL, /* skip */
|
|
NULL, /* get_serialized_sample_size */
|
|
NULL, /* get_serialized_sample_max_size_ex */
|
|
NULL, /* get_serialized_key_max_size_ex */
|
|
NULL, /* get_serialized_sample_min_size */
|
|
NULL, /* serialized_sample_to_key */
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL
|
|
};
|
|
|
|
return &InsertUpdateTranslationRequest_g_typePlugin;
|
|
}
|
|
}; // native_type_code
|
|
|
|
const ::dds::core::xtypes::StructType& dynamic_type< ::ProjectDataManagement::InsertUpdateTranslationRequest >::get()
|
|
{
|
|
return static_cast<const ::dds::core::xtypes::StructType&>(
|
|
::rti::core::native_conversions::cast_from_native< ::dds::core::xtypes::DynamicType >(
|
|
*(native_type_code< ::ProjectDataManagement::InsertUpdateTranslationRequest >::get())));
|
|
}
|
|
|
|
template<>
|
|
struct native_type_code< ::ProjectDataManagement::LanguageHmi > {
|
|
|
|
static DDS_TypeCode * get()
|
|
{
|
|
using namespace ::rti::topic::interpreter;
|
|
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
static DDS_TypeCode LanguageHmi_g_tc_isoCode_string;
|
|
static DDS_TypeCode LanguageHmi_g_tc_dbLocale_string;
|
|
|
|
static DDS_TypeCode_Member LanguageHmi_g_tc_members[2]=
|
|
{
|
|
|
|
{
|
|
(char *)"isoCode",/* Member name */
|
|
{
|
|
2,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"dbLocale",/* Member name */
|
|
{
|
|
3,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
}
|
|
};
|
|
|
|
static DDS_TypeCode LanguageHmi_g_tc =
|
|
{{
|
|
DDS_TK_VALUE, /* Kind */
|
|
DDS_BOOLEAN_FALSE, /* Ignored */
|
|
-1, /*Ignored*/
|
|
(char *)"ProjectDataManagement::LanguageHmi", /* Name */
|
|
NULL, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
2, /* Number of members */
|
|
LanguageHmi_g_tc_members, /* Members */
|
|
DDS_VM_NONE, /* Ignored */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER,
|
|
DDS_BOOLEAN_TRUE, /* _isCopyable */
|
|
NULL, /* _sampleAccessInfo: assigned later */
|
|
NULL /* _typePlugin: assigned later */
|
|
}}; /* Type code for LanguageHmi*/
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return &LanguageHmi_g_tc;
|
|
}
|
|
|
|
LanguageHmi_g_tc_isoCode_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
LanguageHmi_g_tc_dbLocale_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
|
|
LanguageHmi_g_tc._data._annotations._allowedDataRepresentationMask = 5;
|
|
|
|
LanguageHmi_g_tc_members[0]._representation._typeCode = (RTICdrTypeCode *)&LanguageHmi_g_tc_isoCode_string;
|
|
LanguageHmi_g_tc_members[1]._representation._typeCode = (RTICdrTypeCode *)&LanguageHmi_g_tc_dbLocale_string;
|
|
|
|
/* Initialize the values for member annotations. */
|
|
LanguageHmi_g_tc_members[0]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
LanguageHmi_g_tc_members[0]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
LanguageHmi_g_tc_members[1]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
LanguageHmi_g_tc_members[1]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
|
|
LanguageHmi_g_tc._data._typeCode = (RTICdrTypeCode *)&::rti::topic::dynamic_type< ::ProjectDataManagement::PdmBaseName >::get().native(); /* Base class */
|
|
|
|
LanguageHmi_g_tc._data._sampleAccessInfo = sample_access_info();
|
|
LanguageHmi_g_tc._data._typePlugin = type_plugin_info();
|
|
|
|
is_initialized.store(true, std::memory_order_release);
|
|
|
|
return &LanguageHmi_g_tc;
|
|
}
|
|
|
|
static RTIXCdrSampleAccessInfo * sample_access_info()
|
|
{
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
::ProjectDataManagement::LanguageHmi *sample;
|
|
|
|
static RTIXCdrMemberAccessInfo LanguageHmi_g_memberAccessInfos[2] =
|
|
{RTIXCdrMemberAccessInfo_INITIALIZER};
|
|
|
|
static RTIXCdrSampleAccessInfo LanguageHmi_g_sampleAccessInfo =
|
|
RTIXCdrSampleAccessInfo_INITIALIZER;
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return (RTIXCdrSampleAccessInfo*) &LanguageHmi_g_sampleAccessInfo;
|
|
}
|
|
|
|
RTIXCdrHeap_allocateStruct(
|
|
&sample,
|
|
::ProjectDataManagement::LanguageHmi);
|
|
if (sample == NULL) {
|
|
return NULL;
|
|
}
|
|
|
|
LanguageHmi_g_memberAccessInfos[0].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->isoCode - (char *)sample);
|
|
|
|
LanguageHmi_g_memberAccessInfos[1].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->dbLocale - (char *)sample);
|
|
|
|
LanguageHmi_g_sampleAccessInfo.memberAccessInfos =
|
|
LanguageHmi_g_memberAccessInfos;
|
|
|
|
{
|
|
size_t candidateTypeSize = sizeof(::ProjectDataManagement::LanguageHmi);
|
|
|
|
if (candidateTypeSize > RTIXCdrLong_MAX) {
|
|
LanguageHmi_g_sampleAccessInfo.typeSize[0] =
|
|
RTIXCdrLong_MAX;
|
|
} else {
|
|
LanguageHmi_g_sampleAccessInfo.typeSize[0] =
|
|
(RTIXCdrUnsignedLong) candidateTypeSize;
|
|
}
|
|
}
|
|
|
|
LanguageHmi_g_sampleAccessInfo.useGetMemberValueOnlyWithRef =
|
|
RTI_XCDR_TRUE;
|
|
|
|
LanguageHmi_g_sampleAccessInfo.getMemberValuePointerFcn =
|
|
interpreter::get_aggregation_value_pointer< ::ProjectDataManagement::LanguageHmi >;
|
|
|
|
LanguageHmi_g_sampleAccessInfo.languageBinding =
|
|
RTI_XCDR_TYPE_BINDING_CPP_11_STL ;
|
|
|
|
RTIXCdrHeap_freeStruct(sample);
|
|
is_initialized.store(true, std::memory_order_release);
|
|
return (RTIXCdrSampleAccessInfo*) &LanguageHmi_g_sampleAccessInfo;
|
|
}
|
|
static RTIXCdrTypePlugin * type_plugin_info()
|
|
{
|
|
static RTIXCdrTypePlugin LanguageHmi_g_typePlugin =
|
|
{
|
|
NULL, /* serialize */
|
|
NULL, /* serialize_key */
|
|
NULL, /* deserialize_sample */
|
|
NULL, /* deserialize_key_sample */
|
|
NULL, /* skip */
|
|
NULL, /* get_serialized_sample_size */
|
|
NULL, /* get_serialized_sample_max_size_ex */
|
|
NULL, /* get_serialized_key_max_size_ex */
|
|
NULL, /* get_serialized_sample_min_size */
|
|
NULL, /* serialized_sample_to_key */
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL
|
|
};
|
|
|
|
return &LanguageHmi_g_typePlugin;
|
|
}
|
|
}; // native_type_code
|
|
|
|
const ::dds::core::xtypes::StructType& dynamic_type< ::ProjectDataManagement::LanguageHmi >::get()
|
|
{
|
|
return static_cast<const ::dds::core::xtypes::StructType&>(
|
|
::rti::core::native_conversions::cast_from_native< ::dds::core::xtypes::DynamicType >(
|
|
*(native_type_code< ::ProjectDataManagement::LanguageHmi >::get())));
|
|
}
|
|
|
|
template<>
|
|
struct native_type_code< ::ProjectDataManagement::LanguageXdu > {
|
|
|
|
static DDS_TypeCode * get()
|
|
{
|
|
using namespace ::rti::topic::interpreter;
|
|
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
static DDS_TypeCode LanguageXdu_g_tc_isoCode_string;
|
|
|
|
static DDS_TypeCode_Member LanguageXdu_g_tc_members[1]=
|
|
{
|
|
|
|
{
|
|
(char *)"isoCode",/* Member name */
|
|
{
|
|
2,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
}
|
|
};
|
|
|
|
static DDS_TypeCode LanguageXdu_g_tc =
|
|
{{
|
|
DDS_TK_VALUE, /* Kind */
|
|
DDS_BOOLEAN_FALSE, /* Ignored */
|
|
-1, /*Ignored*/
|
|
(char *)"ProjectDataManagement::LanguageXdu", /* Name */
|
|
NULL, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
1, /* Number of members */
|
|
LanguageXdu_g_tc_members, /* Members */
|
|
DDS_VM_NONE, /* Ignored */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER,
|
|
DDS_BOOLEAN_TRUE, /* _isCopyable */
|
|
NULL, /* _sampleAccessInfo: assigned later */
|
|
NULL /* _typePlugin: assigned later */
|
|
}}; /* Type code for LanguageXdu*/
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return &LanguageXdu_g_tc;
|
|
}
|
|
|
|
LanguageXdu_g_tc_isoCode_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
|
|
LanguageXdu_g_tc._data._annotations._allowedDataRepresentationMask = 5;
|
|
|
|
LanguageXdu_g_tc_members[0]._representation._typeCode = (RTICdrTypeCode *)&LanguageXdu_g_tc_isoCode_string;
|
|
|
|
/* Initialize the values for member annotations. */
|
|
LanguageXdu_g_tc_members[0]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
LanguageXdu_g_tc_members[0]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
|
|
LanguageXdu_g_tc._data._typeCode = (RTICdrTypeCode *)&::rti::topic::dynamic_type< ::ProjectDataManagement::PdmBaseName >::get().native(); /* Base class */
|
|
|
|
LanguageXdu_g_tc._data._sampleAccessInfo = sample_access_info();
|
|
LanguageXdu_g_tc._data._typePlugin = type_plugin_info();
|
|
|
|
is_initialized.store(true, std::memory_order_release);
|
|
|
|
return &LanguageXdu_g_tc;
|
|
}
|
|
|
|
static RTIXCdrSampleAccessInfo * sample_access_info()
|
|
{
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
::ProjectDataManagement::LanguageXdu *sample;
|
|
|
|
static RTIXCdrMemberAccessInfo LanguageXdu_g_memberAccessInfos[1] =
|
|
{RTIXCdrMemberAccessInfo_INITIALIZER};
|
|
|
|
static RTIXCdrSampleAccessInfo LanguageXdu_g_sampleAccessInfo =
|
|
RTIXCdrSampleAccessInfo_INITIALIZER;
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return (RTIXCdrSampleAccessInfo*) &LanguageXdu_g_sampleAccessInfo;
|
|
}
|
|
|
|
RTIXCdrHeap_allocateStruct(
|
|
&sample,
|
|
::ProjectDataManagement::LanguageXdu);
|
|
if (sample == NULL) {
|
|
return NULL;
|
|
}
|
|
|
|
LanguageXdu_g_memberAccessInfos[0].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->isoCode - (char *)sample);
|
|
|
|
LanguageXdu_g_sampleAccessInfo.memberAccessInfos =
|
|
LanguageXdu_g_memberAccessInfos;
|
|
|
|
{
|
|
size_t candidateTypeSize = sizeof(::ProjectDataManagement::LanguageXdu);
|
|
|
|
if (candidateTypeSize > RTIXCdrLong_MAX) {
|
|
LanguageXdu_g_sampleAccessInfo.typeSize[0] =
|
|
RTIXCdrLong_MAX;
|
|
} else {
|
|
LanguageXdu_g_sampleAccessInfo.typeSize[0] =
|
|
(RTIXCdrUnsignedLong) candidateTypeSize;
|
|
}
|
|
}
|
|
|
|
LanguageXdu_g_sampleAccessInfo.useGetMemberValueOnlyWithRef =
|
|
RTI_XCDR_TRUE;
|
|
|
|
LanguageXdu_g_sampleAccessInfo.getMemberValuePointerFcn =
|
|
interpreter::get_aggregation_value_pointer< ::ProjectDataManagement::LanguageXdu >;
|
|
|
|
LanguageXdu_g_sampleAccessInfo.languageBinding =
|
|
RTI_XCDR_TYPE_BINDING_CPP_11_STL ;
|
|
|
|
RTIXCdrHeap_freeStruct(sample);
|
|
is_initialized.store(true, std::memory_order_release);
|
|
return (RTIXCdrSampleAccessInfo*) &LanguageXdu_g_sampleAccessInfo;
|
|
}
|
|
static RTIXCdrTypePlugin * type_plugin_info()
|
|
{
|
|
static RTIXCdrTypePlugin LanguageXdu_g_typePlugin =
|
|
{
|
|
NULL, /* serialize */
|
|
NULL, /* serialize_key */
|
|
NULL, /* deserialize_sample */
|
|
NULL, /* deserialize_key_sample */
|
|
NULL, /* skip */
|
|
NULL, /* get_serialized_sample_size */
|
|
NULL, /* get_serialized_sample_max_size_ex */
|
|
NULL, /* get_serialized_key_max_size_ex */
|
|
NULL, /* get_serialized_sample_min_size */
|
|
NULL, /* serialized_sample_to_key */
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL
|
|
};
|
|
|
|
return &LanguageXdu_g_typePlugin;
|
|
}
|
|
}; // native_type_code
|
|
|
|
const ::dds::core::xtypes::StructType& dynamic_type< ::ProjectDataManagement::LanguageXdu >::get()
|
|
{
|
|
return static_cast<const ::dds::core::xtypes::StructType&>(
|
|
::rti::core::native_conversions::cast_from_native< ::dds::core::xtypes::DynamicType >(
|
|
*(native_type_code< ::ProjectDataManagement::LanguageXdu >::get())));
|
|
}
|
|
|
|
template<>
|
|
struct native_type_code< ::ProjectDataManagement::LoadType > {
|
|
|
|
static DDS_TypeCode * get()
|
|
{
|
|
using namespace ::rti::topic::interpreter;
|
|
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
static DDS_TypeCode LoadType_g_tc_shortName_string;
|
|
static DDS_TypeCode LoadType_g_tc_properties_string;
|
|
|
|
static DDS_TypeCode_Member LoadType_g_tc_members[2]=
|
|
{
|
|
|
|
{
|
|
(char *)"shortName",/* Member name */
|
|
{
|
|
2,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"properties",/* Member name */
|
|
{
|
|
3,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
}
|
|
};
|
|
|
|
static DDS_TypeCode LoadType_g_tc =
|
|
{{
|
|
DDS_TK_VALUE, /* Kind */
|
|
DDS_BOOLEAN_FALSE, /* Ignored */
|
|
-1, /*Ignored*/
|
|
(char *)"ProjectDataManagement::LoadType", /* Name */
|
|
NULL, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
2, /* Number of members */
|
|
LoadType_g_tc_members, /* Members */
|
|
DDS_VM_NONE, /* Ignored */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER,
|
|
DDS_BOOLEAN_TRUE, /* _isCopyable */
|
|
NULL, /* _sampleAccessInfo: assigned later */
|
|
NULL /* _typePlugin: assigned later */
|
|
}}; /* Type code for LoadType*/
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return &LoadType_g_tc;
|
|
}
|
|
|
|
LoadType_g_tc_shortName_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
LoadType_g_tc_properties_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
|
|
LoadType_g_tc._data._annotations._allowedDataRepresentationMask = 5;
|
|
|
|
LoadType_g_tc_members[0]._representation._typeCode = (RTICdrTypeCode *)&LoadType_g_tc_shortName_string;
|
|
LoadType_g_tc_members[1]._representation._typeCode = (RTICdrTypeCode *)&LoadType_g_tc_properties_string;
|
|
|
|
/* Initialize the values for member annotations. */
|
|
LoadType_g_tc_members[0]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
LoadType_g_tc_members[0]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
LoadType_g_tc_members[1]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
LoadType_g_tc_members[1]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
|
|
LoadType_g_tc._data._typeCode = (RTICdrTypeCode *)&::rti::topic::dynamic_type< ::ProjectDataManagement::PdmBaseName >::get().native(); /* Base class */
|
|
|
|
LoadType_g_tc._data._sampleAccessInfo = sample_access_info();
|
|
LoadType_g_tc._data._typePlugin = type_plugin_info();
|
|
|
|
is_initialized.store(true, std::memory_order_release);
|
|
|
|
return &LoadType_g_tc;
|
|
}
|
|
|
|
static RTIXCdrSampleAccessInfo * sample_access_info()
|
|
{
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
::ProjectDataManagement::LoadType *sample;
|
|
|
|
static RTIXCdrMemberAccessInfo LoadType_g_memberAccessInfos[2] =
|
|
{RTIXCdrMemberAccessInfo_INITIALIZER};
|
|
|
|
static RTIXCdrSampleAccessInfo LoadType_g_sampleAccessInfo =
|
|
RTIXCdrSampleAccessInfo_INITIALIZER;
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return (RTIXCdrSampleAccessInfo*) &LoadType_g_sampleAccessInfo;
|
|
}
|
|
|
|
RTIXCdrHeap_allocateStruct(
|
|
&sample,
|
|
::ProjectDataManagement::LoadType);
|
|
if (sample == NULL) {
|
|
return NULL;
|
|
}
|
|
|
|
LoadType_g_memberAccessInfos[0].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->shortName - (char *)sample);
|
|
|
|
LoadType_g_memberAccessInfos[1].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->properties - (char *)sample);
|
|
|
|
LoadType_g_sampleAccessInfo.memberAccessInfos =
|
|
LoadType_g_memberAccessInfos;
|
|
|
|
{
|
|
size_t candidateTypeSize = sizeof(::ProjectDataManagement::LoadType);
|
|
|
|
if (candidateTypeSize > RTIXCdrLong_MAX) {
|
|
LoadType_g_sampleAccessInfo.typeSize[0] =
|
|
RTIXCdrLong_MAX;
|
|
} else {
|
|
LoadType_g_sampleAccessInfo.typeSize[0] =
|
|
(RTIXCdrUnsignedLong) candidateTypeSize;
|
|
}
|
|
}
|
|
|
|
LoadType_g_sampleAccessInfo.useGetMemberValueOnlyWithRef =
|
|
RTI_XCDR_TRUE;
|
|
|
|
LoadType_g_sampleAccessInfo.getMemberValuePointerFcn =
|
|
interpreter::get_aggregation_value_pointer< ::ProjectDataManagement::LoadType >;
|
|
|
|
LoadType_g_sampleAccessInfo.languageBinding =
|
|
RTI_XCDR_TYPE_BINDING_CPP_11_STL ;
|
|
|
|
RTIXCdrHeap_freeStruct(sample);
|
|
is_initialized.store(true, std::memory_order_release);
|
|
return (RTIXCdrSampleAccessInfo*) &LoadType_g_sampleAccessInfo;
|
|
}
|
|
static RTIXCdrTypePlugin * type_plugin_info()
|
|
{
|
|
static RTIXCdrTypePlugin LoadType_g_typePlugin =
|
|
{
|
|
NULL, /* serialize */
|
|
NULL, /* serialize_key */
|
|
NULL, /* deserialize_sample */
|
|
NULL, /* deserialize_key_sample */
|
|
NULL, /* skip */
|
|
NULL, /* get_serialized_sample_size */
|
|
NULL, /* get_serialized_sample_max_size_ex */
|
|
NULL, /* get_serialized_key_max_size_ex */
|
|
NULL, /* get_serialized_sample_min_size */
|
|
NULL, /* serialized_sample_to_key */
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL
|
|
};
|
|
|
|
return &LoadType_g_typePlugin;
|
|
}
|
|
}; // native_type_code
|
|
|
|
const ::dds::core::xtypes::StructType& dynamic_type< ::ProjectDataManagement::LoadType >::get()
|
|
{
|
|
return static_cast<const ::dds::core::xtypes::StructType&>(
|
|
::rti::core::native_conversions::cast_from_native< ::dds::core::xtypes::DynamicType >(
|
|
*(native_type_code< ::ProjectDataManagement::LoadType >::get())));
|
|
}
|
|
|
|
template<>
|
|
struct native_type_code< ::ProjectDataManagement::NuclearPreset > {
|
|
|
|
static DDS_TypeCode * get()
|
|
{
|
|
using namespace ::rti::topic::interpreter;
|
|
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
static DDS_TypeCode_Member NuclearPreset_g_tc_members[4]=
|
|
{
|
|
|
|
{
|
|
(char *)"detonationValue",/* Member name */
|
|
{
|
|
2,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"impactRadius",/* Member name */
|
|
{
|
|
3,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"borderLengthInner",/* Member name */
|
|
{
|
|
4,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"borderLengthOuter",/* Member name */
|
|
{
|
|
5,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
}
|
|
};
|
|
|
|
static DDS_TypeCode NuclearPreset_g_tc =
|
|
{{
|
|
DDS_TK_VALUE, /* Kind */
|
|
DDS_BOOLEAN_FALSE, /* Ignored */
|
|
-1, /*Ignored*/
|
|
(char *)"ProjectDataManagement::NuclearPreset", /* Name */
|
|
NULL, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
4, /* Number of members */
|
|
NuclearPreset_g_tc_members, /* Members */
|
|
DDS_VM_NONE, /* Ignored */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER,
|
|
DDS_BOOLEAN_TRUE, /* _isCopyable */
|
|
NULL, /* _sampleAccessInfo: assigned later */
|
|
NULL /* _typePlugin: assigned later */
|
|
}}; /* Type code for NuclearPreset*/
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return &NuclearPreset_g_tc;
|
|
}
|
|
|
|
NuclearPreset_g_tc._data._annotations._allowedDataRepresentationMask = 5;
|
|
|
|
NuclearPreset_g_tc_members[0]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_double;
|
|
NuclearPreset_g_tc_members[1]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_double;
|
|
NuclearPreset_g_tc_members[2]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_double;
|
|
NuclearPreset_g_tc_members[3]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_double;
|
|
|
|
/* Initialize the values for member annotations. */
|
|
NuclearPreset_g_tc_members[0]._annotations._defaultValue._d = RTI_XCDR_TK_DOUBLE;
|
|
NuclearPreset_g_tc_members[0]._annotations._defaultValue._u.double_value = 0.0;
|
|
NuclearPreset_g_tc_members[0]._annotations._minValue._d = RTI_XCDR_TK_DOUBLE;
|
|
NuclearPreset_g_tc_members[0]._annotations._minValue._u.double_value = RTIXCdrDouble_MIN;
|
|
NuclearPreset_g_tc_members[0]._annotations._maxValue._d = RTI_XCDR_TK_DOUBLE;
|
|
NuclearPreset_g_tc_members[0]._annotations._maxValue._u.double_value = RTIXCdrDouble_MAX;
|
|
NuclearPreset_g_tc_members[1]._annotations._defaultValue._d = RTI_XCDR_TK_DOUBLE;
|
|
NuclearPreset_g_tc_members[1]._annotations._defaultValue._u.double_value = 0.0;
|
|
NuclearPreset_g_tc_members[1]._annotations._minValue._d = RTI_XCDR_TK_DOUBLE;
|
|
NuclearPreset_g_tc_members[1]._annotations._minValue._u.double_value = RTIXCdrDouble_MIN;
|
|
NuclearPreset_g_tc_members[1]._annotations._maxValue._d = RTI_XCDR_TK_DOUBLE;
|
|
NuclearPreset_g_tc_members[1]._annotations._maxValue._u.double_value = RTIXCdrDouble_MAX;
|
|
NuclearPreset_g_tc_members[2]._annotations._defaultValue._d = RTI_XCDR_TK_DOUBLE;
|
|
NuclearPreset_g_tc_members[2]._annotations._defaultValue._u.double_value = 0.0;
|
|
NuclearPreset_g_tc_members[2]._annotations._minValue._d = RTI_XCDR_TK_DOUBLE;
|
|
NuclearPreset_g_tc_members[2]._annotations._minValue._u.double_value = RTIXCdrDouble_MIN;
|
|
NuclearPreset_g_tc_members[2]._annotations._maxValue._d = RTI_XCDR_TK_DOUBLE;
|
|
NuclearPreset_g_tc_members[2]._annotations._maxValue._u.double_value = RTIXCdrDouble_MAX;
|
|
NuclearPreset_g_tc_members[3]._annotations._defaultValue._d = RTI_XCDR_TK_DOUBLE;
|
|
NuclearPreset_g_tc_members[3]._annotations._defaultValue._u.double_value = 0.0;
|
|
NuclearPreset_g_tc_members[3]._annotations._minValue._d = RTI_XCDR_TK_DOUBLE;
|
|
NuclearPreset_g_tc_members[3]._annotations._minValue._u.double_value = RTIXCdrDouble_MIN;
|
|
NuclearPreset_g_tc_members[3]._annotations._maxValue._d = RTI_XCDR_TK_DOUBLE;
|
|
NuclearPreset_g_tc_members[3]._annotations._maxValue._u.double_value = RTIXCdrDouble_MAX;
|
|
|
|
NuclearPreset_g_tc._data._typeCode = (RTICdrTypeCode *)&::rti::topic::dynamic_type< ::ProjectDataManagement::PdmBaseName >::get().native(); /* Base class */
|
|
|
|
NuclearPreset_g_tc._data._sampleAccessInfo = sample_access_info();
|
|
NuclearPreset_g_tc._data._typePlugin = type_plugin_info();
|
|
|
|
is_initialized.store(true, std::memory_order_release);
|
|
|
|
return &NuclearPreset_g_tc;
|
|
}
|
|
|
|
static RTIXCdrSampleAccessInfo * sample_access_info()
|
|
{
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
::ProjectDataManagement::NuclearPreset *sample;
|
|
|
|
static RTIXCdrMemberAccessInfo NuclearPreset_g_memberAccessInfos[4] =
|
|
{RTIXCdrMemberAccessInfo_INITIALIZER};
|
|
|
|
static RTIXCdrSampleAccessInfo NuclearPreset_g_sampleAccessInfo =
|
|
RTIXCdrSampleAccessInfo_INITIALIZER;
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return (RTIXCdrSampleAccessInfo*) &NuclearPreset_g_sampleAccessInfo;
|
|
}
|
|
|
|
RTIXCdrHeap_allocateStruct(
|
|
&sample,
|
|
::ProjectDataManagement::NuclearPreset);
|
|
if (sample == NULL) {
|
|
return NULL;
|
|
}
|
|
|
|
NuclearPreset_g_memberAccessInfos[0].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->detonationValue - (char *)sample);
|
|
|
|
NuclearPreset_g_memberAccessInfos[1].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->impactRadius - (char *)sample);
|
|
|
|
NuclearPreset_g_memberAccessInfos[2].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->borderLengthInner - (char *)sample);
|
|
|
|
NuclearPreset_g_memberAccessInfos[3].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->borderLengthOuter - (char *)sample);
|
|
|
|
NuclearPreset_g_sampleAccessInfo.memberAccessInfos =
|
|
NuclearPreset_g_memberAccessInfos;
|
|
|
|
{
|
|
size_t candidateTypeSize = sizeof(::ProjectDataManagement::NuclearPreset);
|
|
|
|
if (candidateTypeSize > RTIXCdrLong_MAX) {
|
|
NuclearPreset_g_sampleAccessInfo.typeSize[0] =
|
|
RTIXCdrLong_MAX;
|
|
} else {
|
|
NuclearPreset_g_sampleAccessInfo.typeSize[0] =
|
|
(RTIXCdrUnsignedLong) candidateTypeSize;
|
|
}
|
|
}
|
|
|
|
NuclearPreset_g_sampleAccessInfo.useGetMemberValueOnlyWithRef =
|
|
RTI_XCDR_TRUE;
|
|
|
|
NuclearPreset_g_sampleAccessInfo.getMemberValuePointerFcn =
|
|
interpreter::get_aggregation_value_pointer< ::ProjectDataManagement::NuclearPreset >;
|
|
|
|
NuclearPreset_g_sampleAccessInfo.languageBinding =
|
|
RTI_XCDR_TYPE_BINDING_CPP_11_STL ;
|
|
|
|
RTIXCdrHeap_freeStruct(sample);
|
|
is_initialized.store(true, std::memory_order_release);
|
|
return (RTIXCdrSampleAccessInfo*) &NuclearPreset_g_sampleAccessInfo;
|
|
}
|
|
static RTIXCdrTypePlugin * type_plugin_info()
|
|
{
|
|
static RTIXCdrTypePlugin NuclearPreset_g_typePlugin =
|
|
{
|
|
NULL, /* serialize */
|
|
NULL, /* serialize_key */
|
|
NULL, /* deserialize_sample */
|
|
NULL, /* deserialize_key_sample */
|
|
NULL, /* skip */
|
|
NULL, /* get_serialized_sample_size */
|
|
NULL, /* get_serialized_sample_max_size_ex */
|
|
NULL, /* get_serialized_key_max_size_ex */
|
|
NULL, /* get_serialized_sample_min_size */
|
|
NULL, /* serialized_sample_to_key */
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL
|
|
};
|
|
|
|
return &NuclearPreset_g_typePlugin;
|
|
}
|
|
}; // native_type_code
|
|
|
|
const ::dds::core::xtypes::StructType& dynamic_type< ::ProjectDataManagement::NuclearPreset >::get()
|
|
{
|
|
return static_cast<const ::dds::core::xtypes::StructType&>(
|
|
::rti::core::native_conversions::cast_from_native< ::dds::core::xtypes::DynamicType >(
|
|
*(native_type_code< ::ProjectDataManagement::NuclearPreset >::get())));
|
|
}
|
|
|
|
template<>
|
|
struct native_type_code< ::ProjectDataManagement::RadioGroup > {
|
|
|
|
static DDS_TypeCode * get()
|
|
{
|
|
using namespace ::rti::topic::interpreter;
|
|
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
static DDS_TypeCode RadioGroup_g_tc_radioHostname_string;
|
|
static DDS_TypeCode RadioGroup_g_tc_radioBackupHostname_string;
|
|
|
|
static DDS_TypeCode_Member RadioGroup_g_tc_members[8]=
|
|
{
|
|
|
|
{
|
|
(char *)"base_group",/* Member name */
|
|
{
|
|
2,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"issi",/* Member name */
|
|
{
|
|
3,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"group_issi1",/* Member name */
|
|
{
|
|
4,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"group_issi2",/* Member name */
|
|
{
|
|
5,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"radioHostname",/* Member name */
|
|
{
|
|
6,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"radioPort",/* Member name */
|
|
{
|
|
7,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"radioBackupHostname",/* Member name */
|
|
{
|
|
8,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"radioBackupPort",/* Member name */
|
|
{
|
|
9,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
}
|
|
};
|
|
|
|
static DDS_TypeCode RadioGroup_g_tc =
|
|
{{
|
|
DDS_TK_VALUE, /* Kind */
|
|
DDS_BOOLEAN_FALSE, /* Ignored */
|
|
-1, /*Ignored*/
|
|
(char *)"ProjectDataManagement::RadioGroup", /* Name */
|
|
NULL, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
8, /* Number of members */
|
|
RadioGroup_g_tc_members, /* Members */
|
|
DDS_VM_NONE, /* Ignored */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER,
|
|
DDS_BOOLEAN_TRUE, /* _isCopyable */
|
|
NULL, /* _sampleAccessInfo: assigned later */
|
|
NULL /* _typePlugin: assigned later */
|
|
}}; /* Type code for RadioGroup*/
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return &RadioGroup_g_tc;
|
|
}
|
|
|
|
RadioGroup_g_tc_radioHostname_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
RadioGroup_g_tc_radioBackupHostname_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
|
|
RadioGroup_g_tc._data._annotations._allowedDataRepresentationMask = 5;
|
|
|
|
RadioGroup_g_tc_members[0]._representation._typeCode = (RTICdrTypeCode *)&::rti::topic::interpreter::initialize_bool_typecode();
|
|
RadioGroup_g_tc_members[1]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
RadioGroup_g_tc_members[2]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
RadioGroup_g_tc_members[3]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
RadioGroup_g_tc_members[4]._representation._typeCode = (RTICdrTypeCode *)&RadioGroup_g_tc_radioHostname_string;
|
|
RadioGroup_g_tc_members[5]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
RadioGroup_g_tc_members[6]._representation._typeCode = (RTICdrTypeCode *)&RadioGroup_g_tc_radioBackupHostname_string;
|
|
RadioGroup_g_tc_members[7]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
|
|
/* Initialize the values for member annotations. */
|
|
RadioGroup_g_tc_members[0]._annotations._defaultValue._d = RTI_XCDR_TK_BOOLEAN;
|
|
RadioGroup_g_tc_members[0]._annotations._defaultValue._u.boolean_value = 0;
|
|
RadioGroup_g_tc_members[1]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
RadioGroup_g_tc_members[1]._annotations._defaultValue._u.long_value = 0;
|
|
RadioGroup_g_tc_members[1]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
RadioGroup_g_tc_members[1]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
RadioGroup_g_tc_members[1]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
RadioGroup_g_tc_members[1]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
RadioGroup_g_tc_members[2]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
RadioGroup_g_tc_members[2]._annotations._defaultValue._u.long_value = 0;
|
|
RadioGroup_g_tc_members[2]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
RadioGroup_g_tc_members[2]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
RadioGroup_g_tc_members[2]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
RadioGroup_g_tc_members[2]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
RadioGroup_g_tc_members[3]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
RadioGroup_g_tc_members[3]._annotations._defaultValue._u.long_value = 0;
|
|
RadioGroup_g_tc_members[3]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
RadioGroup_g_tc_members[3]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
RadioGroup_g_tc_members[3]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
RadioGroup_g_tc_members[3]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
RadioGroup_g_tc_members[4]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
RadioGroup_g_tc_members[4]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
RadioGroup_g_tc_members[5]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
RadioGroup_g_tc_members[5]._annotations._defaultValue._u.long_value = 0;
|
|
RadioGroup_g_tc_members[5]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
RadioGroup_g_tc_members[5]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
RadioGroup_g_tc_members[5]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
RadioGroup_g_tc_members[5]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
RadioGroup_g_tc_members[6]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
RadioGroup_g_tc_members[6]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
RadioGroup_g_tc_members[7]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
RadioGroup_g_tc_members[7]._annotations._defaultValue._u.long_value = 0;
|
|
RadioGroup_g_tc_members[7]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
RadioGroup_g_tc_members[7]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
RadioGroup_g_tc_members[7]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
RadioGroup_g_tc_members[7]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
|
|
RadioGroup_g_tc._data._typeCode = (RTICdrTypeCode *)&::rti::topic::dynamic_type< ::ProjectDataManagement::PdmBaseName >::get().native(); /* Base class */
|
|
|
|
RadioGroup_g_tc._data._sampleAccessInfo = sample_access_info();
|
|
RadioGroup_g_tc._data._typePlugin = type_plugin_info();
|
|
|
|
is_initialized.store(true, std::memory_order_release);
|
|
|
|
return &RadioGroup_g_tc;
|
|
}
|
|
|
|
static RTIXCdrSampleAccessInfo * sample_access_info()
|
|
{
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
::ProjectDataManagement::RadioGroup *sample;
|
|
|
|
static RTIXCdrMemberAccessInfo RadioGroup_g_memberAccessInfos[8] =
|
|
{RTIXCdrMemberAccessInfo_INITIALIZER};
|
|
|
|
static RTIXCdrSampleAccessInfo RadioGroup_g_sampleAccessInfo =
|
|
RTIXCdrSampleAccessInfo_INITIALIZER;
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return (RTIXCdrSampleAccessInfo*) &RadioGroup_g_sampleAccessInfo;
|
|
}
|
|
|
|
RTIXCdrHeap_allocateStruct(
|
|
&sample,
|
|
::ProjectDataManagement::RadioGroup);
|
|
if (sample == NULL) {
|
|
return NULL;
|
|
}
|
|
|
|
RadioGroup_g_memberAccessInfos[0].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->base_group - (char *)sample);
|
|
|
|
RadioGroup_g_memberAccessInfos[1].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->issi - (char *)sample);
|
|
|
|
RadioGroup_g_memberAccessInfos[2].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->group_issi1 - (char *)sample);
|
|
|
|
RadioGroup_g_memberAccessInfos[3].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->group_issi2 - (char *)sample);
|
|
|
|
RadioGroup_g_memberAccessInfos[4].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->radioHostname - (char *)sample);
|
|
|
|
RadioGroup_g_memberAccessInfos[5].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->radioPort - (char *)sample);
|
|
|
|
RadioGroup_g_memberAccessInfos[6].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->radioBackupHostname - (char *)sample);
|
|
|
|
RadioGroup_g_memberAccessInfos[7].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->radioBackupPort - (char *)sample);
|
|
|
|
RadioGroup_g_sampleAccessInfo.memberAccessInfos =
|
|
RadioGroup_g_memberAccessInfos;
|
|
|
|
{
|
|
size_t candidateTypeSize = sizeof(::ProjectDataManagement::RadioGroup);
|
|
|
|
if (candidateTypeSize > RTIXCdrLong_MAX) {
|
|
RadioGroup_g_sampleAccessInfo.typeSize[0] =
|
|
RTIXCdrLong_MAX;
|
|
} else {
|
|
RadioGroup_g_sampleAccessInfo.typeSize[0] =
|
|
(RTIXCdrUnsignedLong) candidateTypeSize;
|
|
}
|
|
}
|
|
|
|
RadioGroup_g_sampleAccessInfo.useGetMemberValueOnlyWithRef =
|
|
RTI_XCDR_TRUE;
|
|
|
|
RadioGroup_g_sampleAccessInfo.getMemberValuePointerFcn =
|
|
interpreter::get_aggregation_value_pointer< ::ProjectDataManagement::RadioGroup >;
|
|
|
|
RadioGroup_g_sampleAccessInfo.languageBinding =
|
|
RTI_XCDR_TYPE_BINDING_CPP_11_STL ;
|
|
|
|
RTIXCdrHeap_freeStruct(sample);
|
|
is_initialized.store(true, std::memory_order_release);
|
|
return (RTIXCdrSampleAccessInfo*) &RadioGroup_g_sampleAccessInfo;
|
|
}
|
|
static RTIXCdrTypePlugin * type_plugin_info()
|
|
{
|
|
static RTIXCdrTypePlugin RadioGroup_g_typePlugin =
|
|
{
|
|
NULL, /* serialize */
|
|
NULL, /* serialize_key */
|
|
NULL, /* deserialize_sample */
|
|
NULL, /* deserialize_key_sample */
|
|
NULL, /* skip */
|
|
NULL, /* get_serialized_sample_size */
|
|
NULL, /* get_serialized_sample_max_size_ex */
|
|
NULL, /* get_serialized_key_max_size_ex */
|
|
NULL, /* get_serialized_sample_min_size */
|
|
NULL, /* serialized_sample_to_key */
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL
|
|
};
|
|
|
|
return &RadioGroup_g_typePlugin;
|
|
}
|
|
}; // native_type_code
|
|
|
|
const ::dds::core::xtypes::StructType& dynamic_type< ::ProjectDataManagement::RadioGroup >::get()
|
|
{
|
|
return static_cast<const ::dds::core::xtypes::StructType&>(
|
|
::rti::core::native_conversions::cast_from_native< ::dds::core::xtypes::DynamicType >(
|
|
*(native_type_code< ::ProjectDataManagement::RadioGroup >::get())));
|
|
}
|
|
|
|
template<>
|
|
struct native_type_code< ::ProjectDataManagement::SanitationInjury > {
|
|
|
|
static DDS_TypeCode * get()
|
|
{
|
|
using namespace ::rti::topic::interpreter;
|
|
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
static DDS_TypeCode_Member SanitationInjury_g_tc_members[4]=
|
|
{
|
|
|
|
{
|
|
(char *)"kind",/* Member name */
|
|
{
|
|
2,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"place1",/* Member name */
|
|
{
|
|
3,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"place2",/* Member name */
|
|
{
|
|
4,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"vbg",/* Member name */
|
|
{
|
|
5,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
}
|
|
};
|
|
|
|
static DDS_TypeCode SanitationInjury_g_tc =
|
|
{{
|
|
DDS_TK_VALUE, /* Kind */
|
|
DDS_BOOLEAN_FALSE, /* Ignored */
|
|
-1, /*Ignored*/
|
|
(char *)"ProjectDataManagement::SanitationInjury", /* Name */
|
|
NULL, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
4, /* Number of members */
|
|
SanitationInjury_g_tc_members, /* Members */
|
|
DDS_VM_NONE, /* Ignored */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER,
|
|
DDS_BOOLEAN_TRUE, /* _isCopyable */
|
|
NULL, /* _sampleAccessInfo: assigned later */
|
|
NULL /* _typePlugin: assigned later */
|
|
}}; /* Type code for SanitationInjury*/
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return &SanitationInjury_g_tc;
|
|
}
|
|
|
|
SanitationInjury_g_tc._data._annotations._allowedDataRepresentationMask = 5;
|
|
|
|
SanitationInjury_g_tc_members[0]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
SanitationInjury_g_tc_members[1]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
SanitationInjury_g_tc_members[2]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
SanitationInjury_g_tc_members[3]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
|
|
/* Initialize the values for member annotations. */
|
|
SanitationInjury_g_tc_members[0]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
SanitationInjury_g_tc_members[0]._annotations._defaultValue._u.long_value = 0;
|
|
SanitationInjury_g_tc_members[0]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
SanitationInjury_g_tc_members[0]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
SanitationInjury_g_tc_members[0]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
SanitationInjury_g_tc_members[0]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
SanitationInjury_g_tc_members[1]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
SanitationInjury_g_tc_members[1]._annotations._defaultValue._u.long_value = 0;
|
|
SanitationInjury_g_tc_members[1]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
SanitationInjury_g_tc_members[1]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
SanitationInjury_g_tc_members[1]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
SanitationInjury_g_tc_members[1]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
SanitationInjury_g_tc_members[2]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
SanitationInjury_g_tc_members[2]._annotations._defaultValue._u.long_value = 0;
|
|
SanitationInjury_g_tc_members[2]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
SanitationInjury_g_tc_members[2]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
SanitationInjury_g_tc_members[2]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
SanitationInjury_g_tc_members[2]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
SanitationInjury_g_tc_members[3]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
SanitationInjury_g_tc_members[3]._annotations._defaultValue._u.long_value = 0;
|
|
SanitationInjury_g_tc_members[3]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
SanitationInjury_g_tc_members[3]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
SanitationInjury_g_tc_members[3]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
SanitationInjury_g_tc_members[3]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
|
|
SanitationInjury_g_tc._data._typeCode = (RTICdrTypeCode *)&::rti::topic::dynamic_type< ::ProjectDataManagement::PdmBaseName >::get().native(); /* Base class */
|
|
|
|
SanitationInjury_g_tc._data._sampleAccessInfo = sample_access_info();
|
|
SanitationInjury_g_tc._data._typePlugin = type_plugin_info();
|
|
|
|
is_initialized.store(true, std::memory_order_release);
|
|
|
|
return &SanitationInjury_g_tc;
|
|
}
|
|
|
|
static RTIXCdrSampleAccessInfo * sample_access_info()
|
|
{
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
::ProjectDataManagement::SanitationInjury *sample;
|
|
|
|
static RTIXCdrMemberAccessInfo SanitationInjury_g_memberAccessInfos[4] =
|
|
{RTIXCdrMemberAccessInfo_INITIALIZER};
|
|
|
|
static RTIXCdrSampleAccessInfo SanitationInjury_g_sampleAccessInfo =
|
|
RTIXCdrSampleAccessInfo_INITIALIZER;
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return (RTIXCdrSampleAccessInfo*) &SanitationInjury_g_sampleAccessInfo;
|
|
}
|
|
|
|
RTIXCdrHeap_allocateStruct(
|
|
&sample,
|
|
::ProjectDataManagement::SanitationInjury);
|
|
if (sample == NULL) {
|
|
return NULL;
|
|
}
|
|
|
|
SanitationInjury_g_memberAccessInfos[0].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->kind - (char *)sample);
|
|
|
|
SanitationInjury_g_memberAccessInfos[1].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->place1 - (char *)sample);
|
|
|
|
SanitationInjury_g_memberAccessInfos[2].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->place2 - (char *)sample);
|
|
|
|
SanitationInjury_g_memberAccessInfos[3].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->vbg - (char *)sample);
|
|
|
|
SanitationInjury_g_sampleAccessInfo.memberAccessInfos =
|
|
SanitationInjury_g_memberAccessInfos;
|
|
|
|
{
|
|
size_t candidateTypeSize = sizeof(::ProjectDataManagement::SanitationInjury);
|
|
|
|
if (candidateTypeSize > RTIXCdrLong_MAX) {
|
|
SanitationInjury_g_sampleAccessInfo.typeSize[0] =
|
|
RTIXCdrLong_MAX;
|
|
} else {
|
|
SanitationInjury_g_sampleAccessInfo.typeSize[0] =
|
|
(RTIXCdrUnsignedLong) candidateTypeSize;
|
|
}
|
|
}
|
|
|
|
SanitationInjury_g_sampleAccessInfo.useGetMemberValueOnlyWithRef =
|
|
RTI_XCDR_TRUE;
|
|
|
|
SanitationInjury_g_sampleAccessInfo.getMemberValuePointerFcn =
|
|
interpreter::get_aggregation_value_pointer< ::ProjectDataManagement::SanitationInjury >;
|
|
|
|
SanitationInjury_g_sampleAccessInfo.languageBinding =
|
|
RTI_XCDR_TYPE_BINDING_CPP_11_STL ;
|
|
|
|
RTIXCdrHeap_freeStruct(sample);
|
|
is_initialized.store(true, std::memory_order_release);
|
|
return (RTIXCdrSampleAccessInfo*) &SanitationInjury_g_sampleAccessInfo;
|
|
}
|
|
static RTIXCdrTypePlugin * type_plugin_info()
|
|
{
|
|
static RTIXCdrTypePlugin SanitationInjury_g_typePlugin =
|
|
{
|
|
NULL, /* serialize */
|
|
NULL, /* serialize_key */
|
|
NULL, /* deserialize_sample */
|
|
NULL, /* deserialize_key_sample */
|
|
NULL, /* skip */
|
|
NULL, /* get_serialized_sample_size */
|
|
NULL, /* get_serialized_sample_max_size_ex */
|
|
NULL, /* get_serialized_key_max_size_ex */
|
|
NULL, /* get_serialized_sample_min_size */
|
|
NULL, /* serialized_sample_to_key */
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL
|
|
};
|
|
|
|
return &SanitationInjury_g_typePlugin;
|
|
}
|
|
}; // native_type_code
|
|
|
|
const ::dds::core::xtypes::StructType& dynamic_type< ::ProjectDataManagement::SanitationInjury >::get()
|
|
{
|
|
return static_cast<const ::dds::core::xtypes::StructType&>(
|
|
::rti::core::native_conversions::cast_from_native< ::dds::core::xtypes::DynamicType >(
|
|
*(native_type_code< ::ProjectDataManagement::SanitationInjury >::get())));
|
|
}
|
|
|
|
template<>
|
|
struct native_type_code< ::ProjectDataManagement::SanitationInjuryKind > {
|
|
|
|
static DDS_TypeCode * get()
|
|
{
|
|
using namespace ::rti::topic::interpreter;
|
|
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
static DDS_TypeCode SanitationInjuryKind_g_tc_version_string;
|
|
|
|
static DDS_TypeCode_Member SanitationInjuryKind_g_tc_members[1]=
|
|
{
|
|
|
|
{
|
|
(char *)"version",/* Member name */
|
|
{
|
|
2,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
}
|
|
};
|
|
|
|
static DDS_TypeCode SanitationInjuryKind_g_tc =
|
|
{{
|
|
DDS_TK_VALUE, /* Kind */
|
|
DDS_BOOLEAN_FALSE, /* Ignored */
|
|
-1, /*Ignored*/
|
|
(char *)"ProjectDataManagement::SanitationInjuryKind", /* Name */
|
|
NULL, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
1, /* Number of members */
|
|
SanitationInjuryKind_g_tc_members, /* Members */
|
|
DDS_VM_NONE, /* Ignored */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER,
|
|
DDS_BOOLEAN_TRUE, /* _isCopyable */
|
|
NULL, /* _sampleAccessInfo: assigned later */
|
|
NULL /* _typePlugin: assigned later */
|
|
}}; /* Type code for SanitationInjuryKind*/
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return &SanitationInjuryKind_g_tc;
|
|
}
|
|
|
|
SanitationInjuryKind_g_tc_version_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
|
|
SanitationInjuryKind_g_tc._data._annotations._allowedDataRepresentationMask = 5;
|
|
|
|
SanitationInjuryKind_g_tc_members[0]._representation._typeCode = (RTICdrTypeCode *)&SanitationInjuryKind_g_tc_version_string;
|
|
|
|
/* Initialize the values for member annotations. */
|
|
SanitationInjuryKind_g_tc_members[0]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
SanitationInjuryKind_g_tc_members[0]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
|
|
SanitationInjuryKind_g_tc._data._typeCode = (RTICdrTypeCode *)&::rti::topic::dynamic_type< ::ProjectDataManagement::PdmBaseName >::get().native(); /* Base class */
|
|
|
|
SanitationInjuryKind_g_tc._data._sampleAccessInfo = sample_access_info();
|
|
SanitationInjuryKind_g_tc._data._typePlugin = type_plugin_info();
|
|
|
|
is_initialized.store(true, std::memory_order_release);
|
|
|
|
return &SanitationInjuryKind_g_tc;
|
|
}
|
|
|
|
static RTIXCdrSampleAccessInfo * sample_access_info()
|
|
{
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
::ProjectDataManagement::SanitationInjuryKind *sample;
|
|
|
|
static RTIXCdrMemberAccessInfo SanitationInjuryKind_g_memberAccessInfos[1] =
|
|
{RTIXCdrMemberAccessInfo_INITIALIZER};
|
|
|
|
static RTIXCdrSampleAccessInfo SanitationInjuryKind_g_sampleAccessInfo =
|
|
RTIXCdrSampleAccessInfo_INITIALIZER;
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return (RTIXCdrSampleAccessInfo*) &SanitationInjuryKind_g_sampleAccessInfo;
|
|
}
|
|
|
|
RTIXCdrHeap_allocateStruct(
|
|
&sample,
|
|
::ProjectDataManagement::SanitationInjuryKind);
|
|
if (sample == NULL) {
|
|
return NULL;
|
|
}
|
|
|
|
SanitationInjuryKind_g_memberAccessInfos[0].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->version - (char *)sample);
|
|
|
|
SanitationInjuryKind_g_sampleAccessInfo.memberAccessInfos =
|
|
SanitationInjuryKind_g_memberAccessInfos;
|
|
|
|
{
|
|
size_t candidateTypeSize = sizeof(::ProjectDataManagement::SanitationInjuryKind);
|
|
|
|
if (candidateTypeSize > RTIXCdrLong_MAX) {
|
|
SanitationInjuryKind_g_sampleAccessInfo.typeSize[0] =
|
|
RTIXCdrLong_MAX;
|
|
} else {
|
|
SanitationInjuryKind_g_sampleAccessInfo.typeSize[0] =
|
|
(RTIXCdrUnsignedLong) candidateTypeSize;
|
|
}
|
|
}
|
|
|
|
SanitationInjuryKind_g_sampleAccessInfo.useGetMemberValueOnlyWithRef =
|
|
RTI_XCDR_TRUE;
|
|
|
|
SanitationInjuryKind_g_sampleAccessInfo.getMemberValuePointerFcn =
|
|
interpreter::get_aggregation_value_pointer< ::ProjectDataManagement::SanitationInjuryKind >;
|
|
|
|
SanitationInjuryKind_g_sampleAccessInfo.languageBinding =
|
|
RTI_XCDR_TYPE_BINDING_CPP_11_STL ;
|
|
|
|
RTIXCdrHeap_freeStruct(sample);
|
|
is_initialized.store(true, std::memory_order_release);
|
|
return (RTIXCdrSampleAccessInfo*) &SanitationInjuryKind_g_sampleAccessInfo;
|
|
}
|
|
static RTIXCdrTypePlugin * type_plugin_info()
|
|
{
|
|
static RTIXCdrTypePlugin SanitationInjuryKind_g_typePlugin =
|
|
{
|
|
NULL, /* serialize */
|
|
NULL, /* serialize_key */
|
|
NULL, /* deserialize_sample */
|
|
NULL, /* deserialize_key_sample */
|
|
NULL, /* skip */
|
|
NULL, /* get_serialized_sample_size */
|
|
NULL, /* get_serialized_sample_max_size_ex */
|
|
NULL, /* get_serialized_key_max_size_ex */
|
|
NULL, /* get_serialized_sample_min_size */
|
|
NULL, /* serialized_sample_to_key */
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL
|
|
};
|
|
|
|
return &SanitationInjuryKind_g_typePlugin;
|
|
}
|
|
}; // native_type_code
|
|
|
|
const ::dds::core::xtypes::StructType& dynamic_type< ::ProjectDataManagement::SanitationInjuryKind >::get()
|
|
{
|
|
return static_cast<const ::dds::core::xtypes::StructType&>(
|
|
::rti::core::native_conversions::cast_from_native< ::dds::core::xtypes::DynamicType >(
|
|
*(native_type_code< ::ProjectDataManagement::SanitationInjuryKind >::get())));
|
|
}
|
|
|
|
template<>
|
|
struct native_type_code< ::ProjectDataManagement::SanitationInjuryPlace1 > {
|
|
|
|
static DDS_TypeCode * get()
|
|
{
|
|
using namespace ::rti::topic::interpreter;
|
|
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
static DDS_TypeCode SanitationInjuryPlace1_g_tc_version_string;
|
|
|
|
static DDS_TypeCode_Member SanitationInjuryPlace1_g_tc_members[1]=
|
|
{
|
|
|
|
{
|
|
(char *)"version",/* Member name */
|
|
{
|
|
2,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
}
|
|
};
|
|
|
|
static DDS_TypeCode SanitationInjuryPlace1_g_tc =
|
|
{{
|
|
DDS_TK_VALUE, /* Kind */
|
|
DDS_BOOLEAN_FALSE, /* Ignored */
|
|
-1, /*Ignored*/
|
|
(char *)"ProjectDataManagement::SanitationInjuryPlace1", /* Name */
|
|
NULL, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
1, /* Number of members */
|
|
SanitationInjuryPlace1_g_tc_members, /* Members */
|
|
DDS_VM_NONE, /* Ignored */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER,
|
|
DDS_BOOLEAN_TRUE, /* _isCopyable */
|
|
NULL, /* _sampleAccessInfo: assigned later */
|
|
NULL /* _typePlugin: assigned later */
|
|
}}; /* Type code for SanitationInjuryPlace1*/
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return &SanitationInjuryPlace1_g_tc;
|
|
}
|
|
|
|
SanitationInjuryPlace1_g_tc_version_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
|
|
SanitationInjuryPlace1_g_tc._data._annotations._allowedDataRepresentationMask = 5;
|
|
|
|
SanitationInjuryPlace1_g_tc_members[0]._representation._typeCode = (RTICdrTypeCode *)&SanitationInjuryPlace1_g_tc_version_string;
|
|
|
|
/* Initialize the values for member annotations. */
|
|
SanitationInjuryPlace1_g_tc_members[0]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
SanitationInjuryPlace1_g_tc_members[0]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
|
|
SanitationInjuryPlace1_g_tc._data._typeCode = (RTICdrTypeCode *)&::rti::topic::dynamic_type< ::ProjectDataManagement::PdmBaseName >::get().native(); /* Base class */
|
|
|
|
SanitationInjuryPlace1_g_tc._data._sampleAccessInfo = sample_access_info();
|
|
SanitationInjuryPlace1_g_tc._data._typePlugin = type_plugin_info();
|
|
|
|
is_initialized.store(true, std::memory_order_release);
|
|
|
|
return &SanitationInjuryPlace1_g_tc;
|
|
}
|
|
|
|
static RTIXCdrSampleAccessInfo * sample_access_info()
|
|
{
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
::ProjectDataManagement::SanitationInjuryPlace1 *sample;
|
|
|
|
static RTIXCdrMemberAccessInfo SanitationInjuryPlace1_g_memberAccessInfos[1] =
|
|
{RTIXCdrMemberAccessInfo_INITIALIZER};
|
|
|
|
static RTIXCdrSampleAccessInfo SanitationInjuryPlace1_g_sampleAccessInfo =
|
|
RTIXCdrSampleAccessInfo_INITIALIZER;
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return (RTIXCdrSampleAccessInfo*) &SanitationInjuryPlace1_g_sampleAccessInfo;
|
|
}
|
|
|
|
RTIXCdrHeap_allocateStruct(
|
|
&sample,
|
|
::ProjectDataManagement::SanitationInjuryPlace1);
|
|
if (sample == NULL) {
|
|
return NULL;
|
|
}
|
|
|
|
SanitationInjuryPlace1_g_memberAccessInfos[0].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->version - (char *)sample);
|
|
|
|
SanitationInjuryPlace1_g_sampleAccessInfo.memberAccessInfos =
|
|
SanitationInjuryPlace1_g_memberAccessInfos;
|
|
|
|
{
|
|
size_t candidateTypeSize = sizeof(::ProjectDataManagement::SanitationInjuryPlace1);
|
|
|
|
if (candidateTypeSize > RTIXCdrLong_MAX) {
|
|
SanitationInjuryPlace1_g_sampleAccessInfo.typeSize[0] =
|
|
RTIXCdrLong_MAX;
|
|
} else {
|
|
SanitationInjuryPlace1_g_sampleAccessInfo.typeSize[0] =
|
|
(RTIXCdrUnsignedLong) candidateTypeSize;
|
|
}
|
|
}
|
|
|
|
SanitationInjuryPlace1_g_sampleAccessInfo.useGetMemberValueOnlyWithRef =
|
|
RTI_XCDR_TRUE;
|
|
|
|
SanitationInjuryPlace1_g_sampleAccessInfo.getMemberValuePointerFcn =
|
|
interpreter::get_aggregation_value_pointer< ::ProjectDataManagement::SanitationInjuryPlace1 >;
|
|
|
|
SanitationInjuryPlace1_g_sampleAccessInfo.languageBinding =
|
|
RTI_XCDR_TYPE_BINDING_CPP_11_STL ;
|
|
|
|
RTIXCdrHeap_freeStruct(sample);
|
|
is_initialized.store(true, std::memory_order_release);
|
|
return (RTIXCdrSampleAccessInfo*) &SanitationInjuryPlace1_g_sampleAccessInfo;
|
|
}
|
|
static RTIXCdrTypePlugin * type_plugin_info()
|
|
{
|
|
static RTIXCdrTypePlugin SanitationInjuryPlace1_g_typePlugin =
|
|
{
|
|
NULL, /* serialize */
|
|
NULL, /* serialize_key */
|
|
NULL, /* deserialize_sample */
|
|
NULL, /* deserialize_key_sample */
|
|
NULL, /* skip */
|
|
NULL, /* get_serialized_sample_size */
|
|
NULL, /* get_serialized_sample_max_size_ex */
|
|
NULL, /* get_serialized_key_max_size_ex */
|
|
NULL, /* get_serialized_sample_min_size */
|
|
NULL, /* serialized_sample_to_key */
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL
|
|
};
|
|
|
|
return &SanitationInjuryPlace1_g_typePlugin;
|
|
}
|
|
}; // native_type_code
|
|
|
|
const ::dds::core::xtypes::StructType& dynamic_type< ::ProjectDataManagement::SanitationInjuryPlace1 >::get()
|
|
{
|
|
return static_cast<const ::dds::core::xtypes::StructType&>(
|
|
::rti::core::native_conversions::cast_from_native< ::dds::core::xtypes::DynamicType >(
|
|
*(native_type_code< ::ProjectDataManagement::SanitationInjuryPlace1 >::get())));
|
|
}
|
|
|
|
template<>
|
|
struct native_type_code< ::ProjectDataManagement::SanitationInjuryPlace2 > {
|
|
|
|
static DDS_TypeCode * get()
|
|
{
|
|
using namespace ::rti::topic::interpreter;
|
|
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
static DDS_TypeCode SanitationInjuryPlace2_g_tc_version_string;
|
|
|
|
static DDS_TypeCode_Member SanitationInjuryPlace2_g_tc_members[1]=
|
|
{
|
|
|
|
{
|
|
(char *)"version",/* Member name */
|
|
{
|
|
2,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
}
|
|
};
|
|
|
|
static DDS_TypeCode SanitationInjuryPlace2_g_tc =
|
|
{{
|
|
DDS_TK_VALUE, /* Kind */
|
|
DDS_BOOLEAN_FALSE, /* Ignored */
|
|
-1, /*Ignored*/
|
|
(char *)"ProjectDataManagement::SanitationInjuryPlace2", /* Name */
|
|
NULL, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
1, /* Number of members */
|
|
SanitationInjuryPlace2_g_tc_members, /* Members */
|
|
DDS_VM_NONE, /* Ignored */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER,
|
|
DDS_BOOLEAN_TRUE, /* _isCopyable */
|
|
NULL, /* _sampleAccessInfo: assigned later */
|
|
NULL /* _typePlugin: assigned later */
|
|
}}; /* Type code for SanitationInjuryPlace2*/
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return &SanitationInjuryPlace2_g_tc;
|
|
}
|
|
|
|
SanitationInjuryPlace2_g_tc_version_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
|
|
SanitationInjuryPlace2_g_tc._data._annotations._allowedDataRepresentationMask = 5;
|
|
|
|
SanitationInjuryPlace2_g_tc_members[0]._representation._typeCode = (RTICdrTypeCode *)&SanitationInjuryPlace2_g_tc_version_string;
|
|
|
|
/* Initialize the values for member annotations. */
|
|
SanitationInjuryPlace2_g_tc_members[0]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
SanitationInjuryPlace2_g_tc_members[0]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
|
|
SanitationInjuryPlace2_g_tc._data._typeCode = (RTICdrTypeCode *)&::rti::topic::dynamic_type< ::ProjectDataManagement::PdmBaseName >::get().native(); /* Base class */
|
|
|
|
SanitationInjuryPlace2_g_tc._data._sampleAccessInfo = sample_access_info();
|
|
SanitationInjuryPlace2_g_tc._data._typePlugin = type_plugin_info();
|
|
|
|
is_initialized.store(true, std::memory_order_release);
|
|
|
|
return &SanitationInjuryPlace2_g_tc;
|
|
}
|
|
|
|
static RTIXCdrSampleAccessInfo * sample_access_info()
|
|
{
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
::ProjectDataManagement::SanitationInjuryPlace2 *sample;
|
|
|
|
static RTIXCdrMemberAccessInfo SanitationInjuryPlace2_g_memberAccessInfos[1] =
|
|
{RTIXCdrMemberAccessInfo_INITIALIZER};
|
|
|
|
static RTIXCdrSampleAccessInfo SanitationInjuryPlace2_g_sampleAccessInfo =
|
|
RTIXCdrSampleAccessInfo_INITIALIZER;
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return (RTIXCdrSampleAccessInfo*) &SanitationInjuryPlace2_g_sampleAccessInfo;
|
|
}
|
|
|
|
RTIXCdrHeap_allocateStruct(
|
|
&sample,
|
|
::ProjectDataManagement::SanitationInjuryPlace2);
|
|
if (sample == NULL) {
|
|
return NULL;
|
|
}
|
|
|
|
SanitationInjuryPlace2_g_memberAccessInfos[0].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->version - (char *)sample);
|
|
|
|
SanitationInjuryPlace2_g_sampleAccessInfo.memberAccessInfos =
|
|
SanitationInjuryPlace2_g_memberAccessInfos;
|
|
|
|
{
|
|
size_t candidateTypeSize = sizeof(::ProjectDataManagement::SanitationInjuryPlace2);
|
|
|
|
if (candidateTypeSize > RTIXCdrLong_MAX) {
|
|
SanitationInjuryPlace2_g_sampleAccessInfo.typeSize[0] =
|
|
RTIXCdrLong_MAX;
|
|
} else {
|
|
SanitationInjuryPlace2_g_sampleAccessInfo.typeSize[0] =
|
|
(RTIXCdrUnsignedLong) candidateTypeSize;
|
|
}
|
|
}
|
|
|
|
SanitationInjuryPlace2_g_sampleAccessInfo.useGetMemberValueOnlyWithRef =
|
|
RTI_XCDR_TRUE;
|
|
|
|
SanitationInjuryPlace2_g_sampleAccessInfo.getMemberValuePointerFcn =
|
|
interpreter::get_aggregation_value_pointer< ::ProjectDataManagement::SanitationInjuryPlace2 >;
|
|
|
|
SanitationInjuryPlace2_g_sampleAccessInfo.languageBinding =
|
|
RTI_XCDR_TYPE_BINDING_CPP_11_STL ;
|
|
|
|
RTIXCdrHeap_freeStruct(sample);
|
|
is_initialized.store(true, std::memory_order_release);
|
|
return (RTIXCdrSampleAccessInfo*) &SanitationInjuryPlace2_g_sampleAccessInfo;
|
|
}
|
|
static RTIXCdrTypePlugin * type_plugin_info()
|
|
{
|
|
static RTIXCdrTypePlugin SanitationInjuryPlace2_g_typePlugin =
|
|
{
|
|
NULL, /* serialize */
|
|
NULL, /* serialize_key */
|
|
NULL, /* deserialize_sample */
|
|
NULL, /* deserialize_key_sample */
|
|
NULL, /* skip */
|
|
NULL, /* get_serialized_sample_size */
|
|
NULL, /* get_serialized_sample_max_size_ex */
|
|
NULL, /* get_serialized_key_max_size_ex */
|
|
NULL, /* get_serialized_sample_min_size */
|
|
NULL, /* serialized_sample_to_key */
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL
|
|
};
|
|
|
|
return &SanitationInjuryPlace2_g_typePlugin;
|
|
}
|
|
}; // native_type_code
|
|
|
|
const ::dds::core::xtypes::StructType& dynamic_type< ::ProjectDataManagement::SanitationInjuryPlace2 >::get()
|
|
{
|
|
return static_cast<const ::dds::core::xtypes::StructType&>(
|
|
::rti::core::native_conversions::cast_from_native< ::dds::core::xtypes::DynamicType >(
|
|
*(native_type_code< ::ProjectDataManagement::SanitationInjuryPlace2 >::get())));
|
|
}
|
|
|
|
template<>
|
|
struct native_type_code< ::ProjectDataManagement::SanitationMaterial > {
|
|
|
|
static DDS_TypeCode * get()
|
|
{
|
|
using namespace ::rti::topic::interpreter;
|
|
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
static DDS_TypeCode SanitationMaterial_g_tc_description_string;
|
|
static DDS_TypeCode SanitationMaterial_g_tc_version_string;
|
|
|
|
static DDS_TypeCode_Member SanitationMaterial_g_tc_members[2]=
|
|
{
|
|
|
|
{
|
|
(char *)"description",/* Member name */
|
|
{
|
|
2,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"version",/* Member name */
|
|
{
|
|
3,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
}
|
|
};
|
|
|
|
static DDS_TypeCode SanitationMaterial_g_tc =
|
|
{{
|
|
DDS_TK_VALUE, /* Kind */
|
|
DDS_BOOLEAN_FALSE, /* Ignored */
|
|
-1, /*Ignored*/
|
|
(char *)"ProjectDataManagement::SanitationMaterial", /* Name */
|
|
NULL, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
2, /* Number of members */
|
|
SanitationMaterial_g_tc_members, /* Members */
|
|
DDS_VM_NONE, /* Ignored */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER,
|
|
DDS_BOOLEAN_TRUE, /* _isCopyable */
|
|
NULL, /* _sampleAccessInfo: assigned later */
|
|
NULL /* _typePlugin: assigned later */
|
|
}}; /* Type code for SanitationMaterial*/
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return &SanitationMaterial_g_tc;
|
|
}
|
|
|
|
SanitationMaterial_g_tc_description_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
SanitationMaterial_g_tc_version_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
|
|
SanitationMaterial_g_tc._data._annotations._allowedDataRepresentationMask = 5;
|
|
|
|
SanitationMaterial_g_tc_members[0]._representation._typeCode = (RTICdrTypeCode *)&SanitationMaterial_g_tc_description_string;
|
|
SanitationMaterial_g_tc_members[1]._representation._typeCode = (RTICdrTypeCode *)&SanitationMaterial_g_tc_version_string;
|
|
|
|
/* Initialize the values for member annotations. */
|
|
SanitationMaterial_g_tc_members[0]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
SanitationMaterial_g_tc_members[0]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
SanitationMaterial_g_tc_members[1]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
SanitationMaterial_g_tc_members[1]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
|
|
SanitationMaterial_g_tc._data._typeCode = (RTICdrTypeCode *)&::rti::topic::dynamic_type< ::ProjectDataManagement::PdmBaseName >::get().native(); /* Base class */
|
|
|
|
SanitationMaterial_g_tc._data._sampleAccessInfo = sample_access_info();
|
|
SanitationMaterial_g_tc._data._typePlugin = type_plugin_info();
|
|
|
|
is_initialized.store(true, std::memory_order_release);
|
|
|
|
return &SanitationMaterial_g_tc;
|
|
}
|
|
|
|
static RTIXCdrSampleAccessInfo * sample_access_info()
|
|
{
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
::ProjectDataManagement::SanitationMaterial *sample;
|
|
|
|
static RTIXCdrMemberAccessInfo SanitationMaterial_g_memberAccessInfos[2] =
|
|
{RTIXCdrMemberAccessInfo_INITIALIZER};
|
|
|
|
static RTIXCdrSampleAccessInfo SanitationMaterial_g_sampleAccessInfo =
|
|
RTIXCdrSampleAccessInfo_INITIALIZER;
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return (RTIXCdrSampleAccessInfo*) &SanitationMaterial_g_sampleAccessInfo;
|
|
}
|
|
|
|
RTIXCdrHeap_allocateStruct(
|
|
&sample,
|
|
::ProjectDataManagement::SanitationMaterial);
|
|
if (sample == NULL) {
|
|
return NULL;
|
|
}
|
|
|
|
SanitationMaterial_g_memberAccessInfos[0].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->description - (char *)sample);
|
|
|
|
SanitationMaterial_g_memberAccessInfos[1].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->version - (char *)sample);
|
|
|
|
SanitationMaterial_g_sampleAccessInfo.memberAccessInfos =
|
|
SanitationMaterial_g_memberAccessInfos;
|
|
|
|
{
|
|
size_t candidateTypeSize = sizeof(::ProjectDataManagement::SanitationMaterial);
|
|
|
|
if (candidateTypeSize > RTIXCdrLong_MAX) {
|
|
SanitationMaterial_g_sampleAccessInfo.typeSize[0] =
|
|
RTIXCdrLong_MAX;
|
|
} else {
|
|
SanitationMaterial_g_sampleAccessInfo.typeSize[0] =
|
|
(RTIXCdrUnsignedLong) candidateTypeSize;
|
|
}
|
|
}
|
|
|
|
SanitationMaterial_g_sampleAccessInfo.useGetMemberValueOnlyWithRef =
|
|
RTI_XCDR_TRUE;
|
|
|
|
SanitationMaterial_g_sampleAccessInfo.getMemberValuePointerFcn =
|
|
interpreter::get_aggregation_value_pointer< ::ProjectDataManagement::SanitationMaterial >;
|
|
|
|
SanitationMaterial_g_sampleAccessInfo.languageBinding =
|
|
RTI_XCDR_TYPE_BINDING_CPP_11_STL ;
|
|
|
|
RTIXCdrHeap_freeStruct(sample);
|
|
is_initialized.store(true, std::memory_order_release);
|
|
return (RTIXCdrSampleAccessInfo*) &SanitationMaterial_g_sampleAccessInfo;
|
|
}
|
|
static RTIXCdrTypePlugin * type_plugin_info()
|
|
{
|
|
static RTIXCdrTypePlugin SanitationMaterial_g_typePlugin =
|
|
{
|
|
NULL, /* serialize */
|
|
NULL, /* serialize_key */
|
|
NULL, /* deserialize_sample */
|
|
NULL, /* deserialize_key_sample */
|
|
NULL, /* skip */
|
|
NULL, /* get_serialized_sample_size */
|
|
NULL, /* get_serialized_sample_max_size_ex */
|
|
NULL, /* get_serialized_key_max_size_ex */
|
|
NULL, /* get_serialized_sample_min_size */
|
|
NULL, /* serialized_sample_to_key */
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL
|
|
};
|
|
|
|
return &SanitationMaterial_g_typePlugin;
|
|
}
|
|
}; // native_type_code
|
|
|
|
const ::dds::core::xtypes::StructType& dynamic_type< ::ProjectDataManagement::SanitationMaterial >::get()
|
|
{
|
|
return static_cast<const ::dds::core::xtypes::StructType&>(
|
|
::rti::core::native_conversions::cast_from_native< ::dds::core::xtypes::DynamicType >(
|
|
*(native_type_code< ::ProjectDataManagement::SanitationMaterial >::get())));
|
|
}
|
|
|
|
template<>
|
|
struct native_type_code< ::ProjectDataManagement::SanitationProcedure > {
|
|
|
|
static DDS_TypeCode * get()
|
|
{
|
|
using namespace ::rti::topic::interpreter;
|
|
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
static DDS_TypeCode SanitationProcedure_g_tc_type_string;
|
|
static DDS_TypeCode SanitationProcedure_g_tc_longName_string;
|
|
static DDS_TypeCode SanitationProcedure_g_tc_version_string;
|
|
|
|
static DDS_TypeCode_Member SanitationProcedure_g_tc_members[6]=
|
|
{
|
|
|
|
{
|
|
(char *)"type",/* Member name */
|
|
{
|
|
2,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"pdm_typeId",/* Member name */
|
|
{
|
|
3,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"minimumQualification",/* Member name */
|
|
{
|
|
4,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"longName",/* Member name */
|
|
{
|
|
5,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"dataCode",/* Member name */
|
|
{
|
|
6,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"version",/* Member name */
|
|
{
|
|
7,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
}
|
|
};
|
|
|
|
static DDS_TypeCode SanitationProcedure_g_tc =
|
|
{{
|
|
DDS_TK_VALUE, /* Kind */
|
|
DDS_BOOLEAN_FALSE, /* Ignored */
|
|
-1, /*Ignored*/
|
|
(char *)"ProjectDataManagement::SanitationProcedure", /* Name */
|
|
NULL, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
6, /* Number of members */
|
|
SanitationProcedure_g_tc_members, /* Members */
|
|
DDS_VM_NONE, /* Ignored */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER,
|
|
DDS_BOOLEAN_TRUE, /* _isCopyable */
|
|
NULL, /* _sampleAccessInfo: assigned later */
|
|
NULL /* _typePlugin: assigned later */
|
|
}}; /* Type code for SanitationProcedure*/
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return &SanitationProcedure_g_tc;
|
|
}
|
|
|
|
SanitationProcedure_g_tc_type_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
SanitationProcedure_g_tc_longName_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
SanitationProcedure_g_tc_version_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
|
|
SanitationProcedure_g_tc._data._annotations._allowedDataRepresentationMask = 5;
|
|
|
|
SanitationProcedure_g_tc_members[0]._representation._typeCode = (RTICdrTypeCode *)&SanitationProcedure_g_tc_type_string;
|
|
SanitationProcedure_g_tc_members[1]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
SanitationProcedure_g_tc_members[2]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
SanitationProcedure_g_tc_members[3]._representation._typeCode = (RTICdrTypeCode *)&SanitationProcedure_g_tc_longName_string;
|
|
SanitationProcedure_g_tc_members[4]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_longlong;
|
|
SanitationProcedure_g_tc_members[5]._representation._typeCode = (RTICdrTypeCode *)&SanitationProcedure_g_tc_version_string;
|
|
|
|
/* Initialize the values for member annotations. */
|
|
SanitationProcedure_g_tc_members[0]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
SanitationProcedure_g_tc_members[0]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
SanitationProcedure_g_tc_members[1]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
SanitationProcedure_g_tc_members[1]._annotations._defaultValue._u.long_value = 0;
|
|
SanitationProcedure_g_tc_members[1]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
SanitationProcedure_g_tc_members[1]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
SanitationProcedure_g_tc_members[1]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
SanitationProcedure_g_tc_members[1]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
SanitationProcedure_g_tc_members[2]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
SanitationProcedure_g_tc_members[2]._annotations._defaultValue._u.long_value = 0;
|
|
SanitationProcedure_g_tc_members[2]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
SanitationProcedure_g_tc_members[2]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
SanitationProcedure_g_tc_members[2]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
SanitationProcedure_g_tc_members[2]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
SanitationProcedure_g_tc_members[3]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
SanitationProcedure_g_tc_members[3]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
SanitationProcedure_g_tc_members[4]._annotations._defaultValue._d = RTI_XCDR_TK_LONGLONG;
|
|
SanitationProcedure_g_tc_members[4]._annotations._defaultValue._u.long_long_value = 0ll;
|
|
SanitationProcedure_g_tc_members[4]._annotations._minValue._d = RTI_XCDR_TK_LONGLONG;
|
|
SanitationProcedure_g_tc_members[4]._annotations._minValue._u.long_long_value = RTIXCdrLongLong_MIN;
|
|
SanitationProcedure_g_tc_members[4]._annotations._maxValue._d = RTI_XCDR_TK_LONGLONG;
|
|
SanitationProcedure_g_tc_members[4]._annotations._maxValue._u.long_long_value = RTIXCdrLongLong_MAX;
|
|
SanitationProcedure_g_tc_members[5]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
SanitationProcedure_g_tc_members[5]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
|
|
SanitationProcedure_g_tc._data._typeCode = (RTICdrTypeCode *)&::rti::topic::dynamic_type< ::ProjectDataManagement::PdmBaseName >::get().native(); /* Base class */
|
|
|
|
SanitationProcedure_g_tc._data._sampleAccessInfo = sample_access_info();
|
|
SanitationProcedure_g_tc._data._typePlugin = type_plugin_info();
|
|
|
|
is_initialized.store(true, std::memory_order_release);
|
|
|
|
return &SanitationProcedure_g_tc;
|
|
}
|
|
|
|
static RTIXCdrSampleAccessInfo * sample_access_info()
|
|
{
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
::ProjectDataManagement::SanitationProcedure *sample;
|
|
|
|
static RTIXCdrMemberAccessInfo SanitationProcedure_g_memberAccessInfos[6] =
|
|
{RTIXCdrMemberAccessInfo_INITIALIZER};
|
|
|
|
static RTIXCdrSampleAccessInfo SanitationProcedure_g_sampleAccessInfo =
|
|
RTIXCdrSampleAccessInfo_INITIALIZER;
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return (RTIXCdrSampleAccessInfo*) &SanitationProcedure_g_sampleAccessInfo;
|
|
}
|
|
|
|
RTIXCdrHeap_allocateStruct(
|
|
&sample,
|
|
::ProjectDataManagement::SanitationProcedure);
|
|
if (sample == NULL) {
|
|
return NULL;
|
|
}
|
|
|
|
SanitationProcedure_g_memberAccessInfos[0].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->type - (char *)sample);
|
|
|
|
SanitationProcedure_g_memberAccessInfos[1].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->pdm_typeId - (char *)sample);
|
|
|
|
SanitationProcedure_g_memberAccessInfos[2].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->minimumQualification - (char *)sample);
|
|
|
|
SanitationProcedure_g_memberAccessInfos[3].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->longName - (char *)sample);
|
|
|
|
SanitationProcedure_g_memberAccessInfos[4].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->dataCode - (char *)sample);
|
|
|
|
SanitationProcedure_g_memberAccessInfos[5].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->version - (char *)sample);
|
|
|
|
SanitationProcedure_g_sampleAccessInfo.memberAccessInfos =
|
|
SanitationProcedure_g_memberAccessInfos;
|
|
|
|
{
|
|
size_t candidateTypeSize = sizeof(::ProjectDataManagement::SanitationProcedure);
|
|
|
|
if (candidateTypeSize > RTIXCdrLong_MAX) {
|
|
SanitationProcedure_g_sampleAccessInfo.typeSize[0] =
|
|
RTIXCdrLong_MAX;
|
|
} else {
|
|
SanitationProcedure_g_sampleAccessInfo.typeSize[0] =
|
|
(RTIXCdrUnsignedLong) candidateTypeSize;
|
|
}
|
|
}
|
|
|
|
SanitationProcedure_g_sampleAccessInfo.useGetMemberValueOnlyWithRef =
|
|
RTI_XCDR_TRUE;
|
|
|
|
SanitationProcedure_g_sampleAccessInfo.getMemberValuePointerFcn =
|
|
interpreter::get_aggregation_value_pointer< ::ProjectDataManagement::SanitationProcedure >;
|
|
|
|
SanitationProcedure_g_sampleAccessInfo.languageBinding =
|
|
RTI_XCDR_TYPE_BINDING_CPP_11_STL ;
|
|
|
|
RTIXCdrHeap_freeStruct(sample);
|
|
is_initialized.store(true, std::memory_order_release);
|
|
return (RTIXCdrSampleAccessInfo*) &SanitationProcedure_g_sampleAccessInfo;
|
|
}
|
|
static RTIXCdrTypePlugin * type_plugin_info()
|
|
{
|
|
static RTIXCdrTypePlugin SanitationProcedure_g_typePlugin =
|
|
{
|
|
NULL, /* serialize */
|
|
NULL, /* serialize_key */
|
|
NULL, /* deserialize_sample */
|
|
NULL, /* deserialize_key_sample */
|
|
NULL, /* skip */
|
|
NULL, /* get_serialized_sample_size */
|
|
NULL, /* get_serialized_sample_max_size_ex */
|
|
NULL, /* get_serialized_key_max_size_ex */
|
|
NULL, /* get_serialized_sample_min_size */
|
|
NULL, /* serialized_sample_to_key */
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL
|
|
};
|
|
|
|
return &SanitationProcedure_g_typePlugin;
|
|
}
|
|
}; // native_type_code
|
|
|
|
const ::dds::core::xtypes::StructType& dynamic_type< ::ProjectDataManagement::SanitationProcedure >::get()
|
|
{
|
|
return static_cast<const ::dds::core::xtypes::StructType&>(
|
|
::rti::core::native_conversions::cast_from_native< ::dds::core::xtypes::DynamicType >(
|
|
*(native_type_code< ::ProjectDataManagement::SanitationProcedure >::get())));
|
|
}
|
|
|
|
template<>
|
|
struct native_type_code< ::ProjectDataManagement::TargetSubType > {
|
|
|
|
static DDS_TypeCode * get()
|
|
{
|
|
using namespace ::rti::topic::interpreter;
|
|
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
static DDS_TypeCode TargetSubType_g_tc_abbreviation_string;
|
|
static DDS_TypeCode TargetSubType_g_tc_properties_string;
|
|
|
|
static DDS_TypeCode_Member TargetSubType_g_tc_members[2]=
|
|
{
|
|
|
|
{
|
|
(char *)"abbreviation",/* Member name */
|
|
{
|
|
2,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"properties",/* Member name */
|
|
{
|
|
3,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
}
|
|
};
|
|
|
|
static DDS_TypeCode TargetSubType_g_tc =
|
|
{{
|
|
DDS_TK_VALUE, /* Kind */
|
|
DDS_BOOLEAN_FALSE, /* Ignored */
|
|
-1, /*Ignored*/
|
|
(char *)"ProjectDataManagement::TargetSubType", /* Name */
|
|
NULL, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
2, /* Number of members */
|
|
TargetSubType_g_tc_members, /* Members */
|
|
DDS_VM_NONE, /* Ignored */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER,
|
|
DDS_BOOLEAN_TRUE, /* _isCopyable */
|
|
NULL, /* _sampleAccessInfo: assigned later */
|
|
NULL /* _typePlugin: assigned later */
|
|
}}; /* Type code for TargetSubType*/
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return &TargetSubType_g_tc;
|
|
}
|
|
|
|
TargetSubType_g_tc_abbreviation_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
TargetSubType_g_tc_properties_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
|
|
TargetSubType_g_tc._data._annotations._allowedDataRepresentationMask = 5;
|
|
|
|
TargetSubType_g_tc_members[0]._representation._typeCode = (RTICdrTypeCode *)&TargetSubType_g_tc_abbreviation_string;
|
|
TargetSubType_g_tc_members[1]._representation._typeCode = (RTICdrTypeCode *)&TargetSubType_g_tc_properties_string;
|
|
|
|
/* Initialize the values for member annotations. */
|
|
TargetSubType_g_tc_members[0]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
TargetSubType_g_tc_members[0]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
TargetSubType_g_tc_members[1]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
TargetSubType_g_tc_members[1]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
|
|
TargetSubType_g_tc._data._typeCode = (RTICdrTypeCode *)&::rti::topic::dynamic_type< ::ProjectDataManagement::PdmBaseName >::get().native(); /* Base class */
|
|
|
|
TargetSubType_g_tc._data._sampleAccessInfo = sample_access_info();
|
|
TargetSubType_g_tc._data._typePlugin = type_plugin_info();
|
|
|
|
is_initialized.store(true, std::memory_order_release);
|
|
|
|
return &TargetSubType_g_tc;
|
|
}
|
|
|
|
static RTIXCdrSampleAccessInfo * sample_access_info()
|
|
{
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
::ProjectDataManagement::TargetSubType *sample;
|
|
|
|
static RTIXCdrMemberAccessInfo TargetSubType_g_memberAccessInfos[2] =
|
|
{RTIXCdrMemberAccessInfo_INITIALIZER};
|
|
|
|
static RTIXCdrSampleAccessInfo TargetSubType_g_sampleAccessInfo =
|
|
RTIXCdrSampleAccessInfo_INITIALIZER;
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return (RTIXCdrSampleAccessInfo*) &TargetSubType_g_sampleAccessInfo;
|
|
}
|
|
|
|
RTIXCdrHeap_allocateStruct(
|
|
&sample,
|
|
::ProjectDataManagement::TargetSubType);
|
|
if (sample == NULL) {
|
|
return NULL;
|
|
}
|
|
|
|
TargetSubType_g_memberAccessInfos[0].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->abbreviation - (char *)sample);
|
|
|
|
TargetSubType_g_memberAccessInfos[1].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->properties - (char *)sample);
|
|
|
|
TargetSubType_g_sampleAccessInfo.memberAccessInfos =
|
|
TargetSubType_g_memberAccessInfos;
|
|
|
|
{
|
|
size_t candidateTypeSize = sizeof(::ProjectDataManagement::TargetSubType);
|
|
|
|
if (candidateTypeSize > RTIXCdrLong_MAX) {
|
|
TargetSubType_g_sampleAccessInfo.typeSize[0] =
|
|
RTIXCdrLong_MAX;
|
|
} else {
|
|
TargetSubType_g_sampleAccessInfo.typeSize[0] =
|
|
(RTIXCdrUnsignedLong) candidateTypeSize;
|
|
}
|
|
}
|
|
|
|
TargetSubType_g_sampleAccessInfo.useGetMemberValueOnlyWithRef =
|
|
RTI_XCDR_TRUE;
|
|
|
|
TargetSubType_g_sampleAccessInfo.getMemberValuePointerFcn =
|
|
interpreter::get_aggregation_value_pointer< ::ProjectDataManagement::TargetSubType >;
|
|
|
|
TargetSubType_g_sampleAccessInfo.languageBinding =
|
|
RTI_XCDR_TYPE_BINDING_CPP_11_STL ;
|
|
|
|
RTIXCdrHeap_freeStruct(sample);
|
|
is_initialized.store(true, std::memory_order_release);
|
|
return (RTIXCdrSampleAccessInfo*) &TargetSubType_g_sampleAccessInfo;
|
|
}
|
|
static RTIXCdrTypePlugin * type_plugin_info()
|
|
{
|
|
static RTIXCdrTypePlugin TargetSubType_g_typePlugin =
|
|
{
|
|
NULL, /* serialize */
|
|
NULL, /* serialize_key */
|
|
NULL, /* deserialize_sample */
|
|
NULL, /* deserialize_key_sample */
|
|
NULL, /* skip */
|
|
NULL, /* get_serialized_sample_size */
|
|
NULL, /* get_serialized_sample_max_size_ex */
|
|
NULL, /* get_serialized_key_max_size_ex */
|
|
NULL, /* get_serialized_sample_min_size */
|
|
NULL, /* serialized_sample_to_key */
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL
|
|
};
|
|
|
|
return &TargetSubType_g_typePlugin;
|
|
}
|
|
}; // native_type_code
|
|
|
|
const ::dds::core::xtypes::StructType& dynamic_type< ::ProjectDataManagement::TargetSubType >::get()
|
|
{
|
|
return static_cast<const ::dds::core::xtypes::StructType&>(
|
|
::rti::core::native_conversions::cast_from_native< ::dds::core::xtypes::DynamicType >(
|
|
*(native_type_code< ::ProjectDataManagement::TargetSubType >::get())));
|
|
}
|
|
|
|
template<>
|
|
struct native_type_code< ::ProjectDataManagement::TargetType > {
|
|
|
|
static DDS_TypeCode * get()
|
|
{
|
|
using namespace ::rti::topic::interpreter;
|
|
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
static DDS_TypeCode TargetType_g_tc_abbreviation_string;
|
|
static DDS_TypeCode TargetType_g_tc_properties_string;
|
|
|
|
static DDS_TypeCode_Member TargetType_g_tc_members[2]=
|
|
{
|
|
|
|
{
|
|
(char *)"abbreviation",/* Member name */
|
|
{
|
|
2,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"properties",/* Member name */
|
|
{
|
|
3,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
}
|
|
};
|
|
|
|
static DDS_TypeCode TargetType_g_tc =
|
|
{{
|
|
DDS_TK_VALUE, /* Kind */
|
|
DDS_BOOLEAN_FALSE, /* Ignored */
|
|
-1, /*Ignored*/
|
|
(char *)"ProjectDataManagement::TargetType", /* Name */
|
|
NULL, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
2, /* Number of members */
|
|
TargetType_g_tc_members, /* Members */
|
|
DDS_VM_NONE, /* Ignored */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER,
|
|
DDS_BOOLEAN_TRUE, /* _isCopyable */
|
|
NULL, /* _sampleAccessInfo: assigned later */
|
|
NULL /* _typePlugin: assigned later */
|
|
}}; /* Type code for TargetType*/
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return &TargetType_g_tc;
|
|
}
|
|
|
|
TargetType_g_tc_abbreviation_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
TargetType_g_tc_properties_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
|
|
TargetType_g_tc._data._annotations._allowedDataRepresentationMask = 5;
|
|
|
|
TargetType_g_tc_members[0]._representation._typeCode = (RTICdrTypeCode *)&TargetType_g_tc_abbreviation_string;
|
|
TargetType_g_tc_members[1]._representation._typeCode = (RTICdrTypeCode *)&TargetType_g_tc_properties_string;
|
|
|
|
/* Initialize the values for member annotations. */
|
|
TargetType_g_tc_members[0]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
TargetType_g_tc_members[0]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
TargetType_g_tc_members[1]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
TargetType_g_tc_members[1]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
|
|
TargetType_g_tc._data._typeCode = (RTICdrTypeCode *)&::rti::topic::dynamic_type< ::ProjectDataManagement::PdmBaseName >::get().native(); /* Base class */
|
|
|
|
TargetType_g_tc._data._sampleAccessInfo = sample_access_info();
|
|
TargetType_g_tc._data._typePlugin = type_plugin_info();
|
|
|
|
is_initialized.store(true, std::memory_order_release);
|
|
|
|
return &TargetType_g_tc;
|
|
}
|
|
|
|
static RTIXCdrSampleAccessInfo * sample_access_info()
|
|
{
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
::ProjectDataManagement::TargetType *sample;
|
|
|
|
static RTIXCdrMemberAccessInfo TargetType_g_memberAccessInfos[2] =
|
|
{RTIXCdrMemberAccessInfo_INITIALIZER};
|
|
|
|
static RTIXCdrSampleAccessInfo TargetType_g_sampleAccessInfo =
|
|
RTIXCdrSampleAccessInfo_INITIALIZER;
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return (RTIXCdrSampleAccessInfo*) &TargetType_g_sampleAccessInfo;
|
|
}
|
|
|
|
RTIXCdrHeap_allocateStruct(
|
|
&sample,
|
|
::ProjectDataManagement::TargetType);
|
|
if (sample == NULL) {
|
|
return NULL;
|
|
}
|
|
|
|
TargetType_g_memberAccessInfos[0].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->abbreviation - (char *)sample);
|
|
|
|
TargetType_g_memberAccessInfos[1].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->properties - (char *)sample);
|
|
|
|
TargetType_g_sampleAccessInfo.memberAccessInfos =
|
|
TargetType_g_memberAccessInfos;
|
|
|
|
{
|
|
size_t candidateTypeSize = sizeof(::ProjectDataManagement::TargetType);
|
|
|
|
if (candidateTypeSize > RTIXCdrLong_MAX) {
|
|
TargetType_g_sampleAccessInfo.typeSize[0] =
|
|
RTIXCdrLong_MAX;
|
|
} else {
|
|
TargetType_g_sampleAccessInfo.typeSize[0] =
|
|
(RTIXCdrUnsignedLong) candidateTypeSize;
|
|
}
|
|
}
|
|
|
|
TargetType_g_sampleAccessInfo.useGetMemberValueOnlyWithRef =
|
|
RTI_XCDR_TRUE;
|
|
|
|
TargetType_g_sampleAccessInfo.getMemberValuePointerFcn =
|
|
interpreter::get_aggregation_value_pointer< ::ProjectDataManagement::TargetType >;
|
|
|
|
TargetType_g_sampleAccessInfo.languageBinding =
|
|
RTI_XCDR_TYPE_BINDING_CPP_11_STL ;
|
|
|
|
RTIXCdrHeap_freeStruct(sample);
|
|
is_initialized.store(true, std::memory_order_release);
|
|
return (RTIXCdrSampleAccessInfo*) &TargetType_g_sampleAccessInfo;
|
|
}
|
|
static RTIXCdrTypePlugin * type_plugin_info()
|
|
{
|
|
static RTIXCdrTypePlugin TargetType_g_typePlugin =
|
|
{
|
|
NULL, /* serialize */
|
|
NULL, /* serialize_key */
|
|
NULL, /* deserialize_sample */
|
|
NULL, /* deserialize_key_sample */
|
|
NULL, /* skip */
|
|
NULL, /* get_serialized_sample_size */
|
|
NULL, /* get_serialized_sample_max_size_ex */
|
|
NULL, /* get_serialized_key_max_size_ex */
|
|
NULL, /* get_serialized_sample_min_size */
|
|
NULL, /* serialized_sample_to_key */
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL
|
|
};
|
|
|
|
return &TargetType_g_typePlugin;
|
|
}
|
|
}; // native_type_code
|
|
|
|
const ::dds::core::xtypes::StructType& dynamic_type< ::ProjectDataManagement::TargetType >::get()
|
|
{
|
|
return static_cast<const ::dds::core::xtypes::StructType&>(
|
|
::rti::core::native_conversions::cast_from_native< ::dds::core::xtypes::DynamicType >(
|
|
*(native_type_code< ::ProjectDataManagement::TargetType >::get())));
|
|
}
|
|
|
|
template<>
|
|
struct native_type_code< ::ProjectDataManagement::TargetTypeTargetSubType > {
|
|
|
|
static DDS_TypeCode * get()
|
|
{
|
|
using namespace ::rti::topic::interpreter;
|
|
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
static DDS_TypeCode TargetTypeTargetSubType_g_tc_properties_string;
|
|
|
|
static DDS_TypeCode_Member TargetTypeTargetSubType_g_tc_members[3]=
|
|
{
|
|
|
|
{
|
|
(char *)"targetTypeId",/* Member name */
|
|
{
|
|
1,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"targetSubTypeId",/* Member name */
|
|
{
|
|
2,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"properties",/* Member name */
|
|
{
|
|
3,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
}
|
|
};
|
|
|
|
static DDS_TypeCode TargetTypeTargetSubType_g_tc =
|
|
{{
|
|
DDS_TK_VALUE, /* Kind */
|
|
DDS_BOOLEAN_FALSE, /* Ignored */
|
|
-1, /*Ignored*/
|
|
(char *)"ProjectDataManagement::TargetTypeTargetSubType", /* Name */
|
|
NULL, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
3, /* Number of members */
|
|
TargetTypeTargetSubType_g_tc_members, /* Members */
|
|
DDS_VM_NONE, /* Ignored */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER,
|
|
DDS_BOOLEAN_TRUE, /* _isCopyable */
|
|
NULL, /* _sampleAccessInfo: assigned later */
|
|
NULL /* _typePlugin: assigned later */
|
|
}}; /* Type code for TargetTypeTargetSubType*/
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return &TargetTypeTargetSubType_g_tc;
|
|
}
|
|
|
|
TargetTypeTargetSubType_g_tc_properties_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
|
|
TargetTypeTargetSubType_g_tc._data._annotations._allowedDataRepresentationMask = 5;
|
|
|
|
TargetTypeTargetSubType_g_tc_members[0]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
TargetTypeTargetSubType_g_tc_members[1]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
TargetTypeTargetSubType_g_tc_members[2]._representation._typeCode = (RTICdrTypeCode *)&TargetTypeTargetSubType_g_tc_properties_string;
|
|
|
|
/* Initialize the values for member annotations. */
|
|
TargetTypeTargetSubType_g_tc_members[0]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
TargetTypeTargetSubType_g_tc_members[0]._annotations._defaultValue._u.long_value = 0;
|
|
TargetTypeTargetSubType_g_tc_members[0]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
TargetTypeTargetSubType_g_tc_members[0]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
TargetTypeTargetSubType_g_tc_members[0]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
TargetTypeTargetSubType_g_tc_members[0]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
TargetTypeTargetSubType_g_tc_members[1]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
TargetTypeTargetSubType_g_tc_members[1]._annotations._defaultValue._u.long_value = 0;
|
|
TargetTypeTargetSubType_g_tc_members[1]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
TargetTypeTargetSubType_g_tc_members[1]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
TargetTypeTargetSubType_g_tc_members[1]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
TargetTypeTargetSubType_g_tc_members[1]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
TargetTypeTargetSubType_g_tc_members[2]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
TargetTypeTargetSubType_g_tc_members[2]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
|
|
TargetTypeTargetSubType_g_tc._data._typeCode = (RTICdrTypeCode *)&::rti::topic::dynamic_type< ::ProjectDataManagement::PdmBase >::get().native(); /* Base class */
|
|
|
|
TargetTypeTargetSubType_g_tc._data._sampleAccessInfo = sample_access_info();
|
|
TargetTypeTargetSubType_g_tc._data._typePlugin = type_plugin_info();
|
|
|
|
is_initialized.store(true, std::memory_order_release);
|
|
|
|
return &TargetTypeTargetSubType_g_tc;
|
|
}
|
|
|
|
static RTIXCdrSampleAccessInfo * sample_access_info()
|
|
{
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
::ProjectDataManagement::TargetTypeTargetSubType *sample;
|
|
|
|
static RTIXCdrMemberAccessInfo TargetTypeTargetSubType_g_memberAccessInfos[3] =
|
|
{RTIXCdrMemberAccessInfo_INITIALIZER};
|
|
|
|
static RTIXCdrSampleAccessInfo TargetTypeTargetSubType_g_sampleAccessInfo =
|
|
RTIXCdrSampleAccessInfo_INITIALIZER;
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return (RTIXCdrSampleAccessInfo*) &TargetTypeTargetSubType_g_sampleAccessInfo;
|
|
}
|
|
|
|
RTIXCdrHeap_allocateStruct(
|
|
&sample,
|
|
::ProjectDataManagement::TargetTypeTargetSubType);
|
|
if (sample == NULL) {
|
|
return NULL;
|
|
}
|
|
|
|
TargetTypeTargetSubType_g_memberAccessInfos[0].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->targetTypeId - (char *)sample);
|
|
|
|
TargetTypeTargetSubType_g_memberAccessInfos[1].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->targetSubTypeId - (char *)sample);
|
|
|
|
TargetTypeTargetSubType_g_memberAccessInfos[2].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->properties - (char *)sample);
|
|
|
|
TargetTypeTargetSubType_g_sampleAccessInfo.memberAccessInfos =
|
|
TargetTypeTargetSubType_g_memberAccessInfos;
|
|
|
|
{
|
|
size_t candidateTypeSize = sizeof(::ProjectDataManagement::TargetTypeTargetSubType);
|
|
|
|
if (candidateTypeSize > RTIXCdrLong_MAX) {
|
|
TargetTypeTargetSubType_g_sampleAccessInfo.typeSize[0] =
|
|
RTIXCdrLong_MAX;
|
|
} else {
|
|
TargetTypeTargetSubType_g_sampleAccessInfo.typeSize[0] =
|
|
(RTIXCdrUnsignedLong) candidateTypeSize;
|
|
}
|
|
}
|
|
|
|
TargetTypeTargetSubType_g_sampleAccessInfo.useGetMemberValueOnlyWithRef =
|
|
RTI_XCDR_TRUE;
|
|
|
|
TargetTypeTargetSubType_g_sampleAccessInfo.getMemberValuePointerFcn =
|
|
interpreter::get_aggregation_value_pointer< ::ProjectDataManagement::TargetTypeTargetSubType >;
|
|
|
|
TargetTypeTargetSubType_g_sampleAccessInfo.languageBinding =
|
|
RTI_XCDR_TYPE_BINDING_CPP_11_STL ;
|
|
|
|
RTIXCdrHeap_freeStruct(sample);
|
|
is_initialized.store(true, std::memory_order_release);
|
|
return (RTIXCdrSampleAccessInfo*) &TargetTypeTargetSubType_g_sampleAccessInfo;
|
|
}
|
|
static RTIXCdrTypePlugin * type_plugin_info()
|
|
{
|
|
static RTIXCdrTypePlugin TargetTypeTargetSubType_g_typePlugin =
|
|
{
|
|
NULL, /* serialize */
|
|
NULL, /* serialize_key */
|
|
NULL, /* deserialize_sample */
|
|
NULL, /* deserialize_key_sample */
|
|
NULL, /* skip */
|
|
NULL, /* get_serialized_sample_size */
|
|
NULL, /* get_serialized_sample_max_size_ex */
|
|
NULL, /* get_serialized_key_max_size_ex */
|
|
NULL, /* get_serialized_sample_min_size */
|
|
NULL, /* serialized_sample_to_key */
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL
|
|
};
|
|
|
|
return &TargetTypeTargetSubType_g_typePlugin;
|
|
}
|
|
}; // native_type_code
|
|
|
|
const ::dds::core::xtypes::StructType& dynamic_type< ::ProjectDataManagement::TargetTypeTargetSubType >::get()
|
|
{
|
|
return static_cast<const ::dds::core::xtypes::StructType&>(
|
|
::rti::core::native_conversions::cast_from_native< ::dds::core::xtypes::DynamicType >(
|
|
*(native_type_code< ::ProjectDataManagement::TargetTypeTargetSubType >::get())));
|
|
}
|
|
|
|
template<>
|
|
struct native_type_code< ::ProjectDataManagement::TranslationBlob > {
|
|
|
|
static DDS_TypeCode * get()
|
|
{
|
|
using namespace ::rti::topic::interpreter;
|
|
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
static DDS_TypeCode TranslationBlob_g_tc_payload_sequence;
|
|
static DDS_TypeCode TranslationBlob_g_tc_md5sum_string;
|
|
|
|
static DDS_TypeCode_Member TranslationBlob_g_tc_members[2]=
|
|
{
|
|
|
|
{
|
|
(char *)"payload",/* Member name */
|
|
{
|
|
1,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"md5sum",/* Member name */
|
|
{
|
|
2,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
}
|
|
};
|
|
|
|
static DDS_TypeCode TranslationBlob_g_tc =
|
|
{{
|
|
DDS_TK_VALUE, /* Kind */
|
|
DDS_BOOLEAN_FALSE, /* Ignored */
|
|
-1, /*Ignored*/
|
|
(char *)"ProjectDataManagement::TranslationBlob", /* Name */
|
|
NULL, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
2, /* Number of members */
|
|
TranslationBlob_g_tc_members, /* Members */
|
|
DDS_VM_NONE, /* Ignored */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER,
|
|
DDS_BOOLEAN_TRUE, /* _isCopyable */
|
|
NULL, /* _sampleAccessInfo: assigned later */
|
|
NULL /* _typePlugin: assigned later */
|
|
}}; /* Type code for TranslationBlob*/
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return &TranslationBlob_g_tc;
|
|
}
|
|
|
|
TranslationBlob_g_tc_payload_sequence = initialize_sequence_typecode< ::omg::types::sequence< uint8_t > >(RTIXCdrLong_MAX);
|
|
TranslationBlob_g_tc_md5sum_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
|
|
TranslationBlob_g_tc._data._annotations._allowedDataRepresentationMask = 5;
|
|
|
|
TranslationBlob_g_tc_payload_sequence._data._typeCode = (RTICdrTypeCode *)&DDS_g_tc_octet;
|
|
TranslationBlob_g_tc_members[0]._representation._typeCode = (RTICdrTypeCode *)& TranslationBlob_g_tc_payload_sequence;
|
|
TranslationBlob_g_tc_members[1]._representation._typeCode = (RTICdrTypeCode *)&TranslationBlob_g_tc_md5sum_string;
|
|
|
|
/* Initialize the values for member annotations. */
|
|
TranslationBlob_g_tc_members[1]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
TranslationBlob_g_tc_members[1]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
|
|
TranslationBlob_g_tc._data._typeCode = (RTICdrTypeCode *)&::rti::topic::dynamic_type< ::ProjectDataManagement::PdmBase >::get().native(); /* Base class */
|
|
|
|
TranslationBlob_g_tc._data._sampleAccessInfo = sample_access_info();
|
|
TranslationBlob_g_tc._data._typePlugin = type_plugin_info();
|
|
|
|
is_initialized.store(true, std::memory_order_release);
|
|
|
|
return &TranslationBlob_g_tc;
|
|
}
|
|
|
|
static RTIXCdrSampleAccessInfo * sample_access_info()
|
|
{
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
::ProjectDataManagement::TranslationBlob *sample;
|
|
|
|
static RTIXCdrMemberAccessInfo TranslationBlob_g_memberAccessInfos[2] =
|
|
{RTIXCdrMemberAccessInfo_INITIALIZER};
|
|
|
|
static RTIXCdrSampleAccessInfo TranslationBlob_g_sampleAccessInfo =
|
|
RTIXCdrSampleAccessInfo_INITIALIZER;
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return (RTIXCdrSampleAccessInfo*) &TranslationBlob_g_sampleAccessInfo;
|
|
}
|
|
|
|
RTIXCdrHeap_allocateStruct(
|
|
&sample,
|
|
::ProjectDataManagement::TranslationBlob);
|
|
if (sample == NULL) {
|
|
return NULL;
|
|
}
|
|
|
|
TranslationBlob_g_memberAccessInfos[0].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->payload - (char *)sample);
|
|
|
|
TranslationBlob_g_memberAccessInfos[1].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->md5sum - (char *)sample);
|
|
|
|
TranslationBlob_g_sampleAccessInfo.memberAccessInfos =
|
|
TranslationBlob_g_memberAccessInfos;
|
|
|
|
{
|
|
size_t candidateTypeSize = sizeof(::ProjectDataManagement::TranslationBlob);
|
|
|
|
if (candidateTypeSize > RTIXCdrLong_MAX) {
|
|
TranslationBlob_g_sampleAccessInfo.typeSize[0] =
|
|
RTIXCdrLong_MAX;
|
|
} else {
|
|
TranslationBlob_g_sampleAccessInfo.typeSize[0] =
|
|
(RTIXCdrUnsignedLong) candidateTypeSize;
|
|
}
|
|
}
|
|
|
|
TranslationBlob_g_sampleAccessInfo.useGetMemberValueOnlyWithRef =
|
|
RTI_XCDR_TRUE;
|
|
|
|
TranslationBlob_g_sampleAccessInfo.getMemberValuePointerFcn =
|
|
interpreter::get_aggregation_value_pointer< ::ProjectDataManagement::TranslationBlob >;
|
|
|
|
TranslationBlob_g_sampleAccessInfo.languageBinding =
|
|
RTI_XCDR_TYPE_BINDING_CPP_11_STL ;
|
|
|
|
RTIXCdrHeap_freeStruct(sample);
|
|
is_initialized.store(true, std::memory_order_release);
|
|
return (RTIXCdrSampleAccessInfo*) &TranslationBlob_g_sampleAccessInfo;
|
|
}
|
|
static RTIXCdrTypePlugin * type_plugin_info()
|
|
{
|
|
static RTIXCdrTypePlugin TranslationBlob_g_typePlugin =
|
|
{
|
|
NULL, /* serialize */
|
|
NULL, /* serialize_key */
|
|
NULL, /* deserialize_sample */
|
|
NULL, /* deserialize_key_sample */
|
|
NULL, /* skip */
|
|
NULL, /* get_serialized_sample_size */
|
|
NULL, /* get_serialized_sample_max_size_ex */
|
|
NULL, /* get_serialized_key_max_size_ex */
|
|
NULL, /* get_serialized_sample_min_size */
|
|
NULL, /* serialized_sample_to_key */
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL
|
|
};
|
|
|
|
return &TranslationBlob_g_typePlugin;
|
|
}
|
|
}; // native_type_code
|
|
|
|
const ::dds::core::xtypes::StructType& dynamic_type< ::ProjectDataManagement::TranslationBlob >::get()
|
|
{
|
|
return static_cast<const ::dds::core::xtypes::StructType&>(
|
|
::rti::core::native_conversions::cast_from_native< ::dds::core::xtypes::DynamicType >(
|
|
*(native_type_code< ::ProjectDataManagement::TranslationBlob >::get())));
|
|
}
|
|
|
|
template<>
|
|
struct native_type_code< ::ProjectDataManagement::UpdateChargeNamesRequest > {
|
|
|
|
static DDS_TypeCode * get()
|
|
{
|
|
using namespace ::rti::topic::interpreter;
|
|
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
static DDS_TypeCode UpdateChargeNamesRequest_g_tc_shortName_string;
|
|
|
|
static DDS_TypeCode_Member UpdateChargeNamesRequest_g_tc_members[1]=
|
|
{
|
|
|
|
{
|
|
(char *)"shortName",/* Member name */
|
|
{
|
|
2,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
}
|
|
};
|
|
|
|
static DDS_TypeCode UpdateChargeNamesRequest_g_tc =
|
|
{{
|
|
DDS_TK_VALUE, /* Kind */
|
|
DDS_BOOLEAN_FALSE, /* Ignored */
|
|
-1, /*Ignored*/
|
|
(char *)"ProjectDataManagement::UpdateChargeNamesRequest", /* Name */
|
|
NULL, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
1, /* Number of members */
|
|
UpdateChargeNamesRequest_g_tc_members, /* Members */
|
|
DDS_VM_NONE, /* Ignored */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER,
|
|
DDS_BOOLEAN_TRUE, /* _isCopyable */
|
|
NULL, /* _sampleAccessInfo: assigned later */
|
|
NULL /* _typePlugin: assigned later */
|
|
}}; /* Type code for UpdateChargeNamesRequest*/
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return &UpdateChargeNamesRequest_g_tc;
|
|
}
|
|
|
|
UpdateChargeNamesRequest_g_tc_shortName_string = initialize_string_typecode(RTIXCdrLong_MAX);
|
|
|
|
UpdateChargeNamesRequest_g_tc._data._annotations._allowedDataRepresentationMask = 5;
|
|
|
|
UpdateChargeNamesRequest_g_tc_members[0]._representation._typeCode = (RTICdrTypeCode *)&UpdateChargeNamesRequest_g_tc_shortName_string;
|
|
|
|
/* Initialize the values for member annotations. */
|
|
UpdateChargeNamesRequest_g_tc_members[0]._annotations._defaultValue._d = RTI_XCDR_TK_STRING;
|
|
UpdateChargeNamesRequest_g_tc_members[0]._annotations._defaultValue._u.string_value = (DDS_Char *) "";
|
|
|
|
UpdateChargeNamesRequest_g_tc._data._typeCode = (RTICdrTypeCode *)&::rti::topic::dynamic_type< ::ProjectDataManagement::PdmBaseName >::get().native(); /* Base class */
|
|
|
|
UpdateChargeNamesRequest_g_tc._data._sampleAccessInfo = sample_access_info();
|
|
UpdateChargeNamesRequest_g_tc._data._typePlugin = type_plugin_info();
|
|
|
|
is_initialized.store(true, std::memory_order_release);
|
|
|
|
return &UpdateChargeNamesRequest_g_tc;
|
|
}
|
|
|
|
static RTIXCdrSampleAccessInfo * sample_access_info()
|
|
{
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
::ProjectDataManagement::UpdateChargeNamesRequest *sample;
|
|
|
|
static RTIXCdrMemberAccessInfo UpdateChargeNamesRequest_g_memberAccessInfos[1] =
|
|
{RTIXCdrMemberAccessInfo_INITIALIZER};
|
|
|
|
static RTIXCdrSampleAccessInfo UpdateChargeNamesRequest_g_sampleAccessInfo =
|
|
RTIXCdrSampleAccessInfo_INITIALIZER;
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return (RTIXCdrSampleAccessInfo*) &UpdateChargeNamesRequest_g_sampleAccessInfo;
|
|
}
|
|
|
|
RTIXCdrHeap_allocateStruct(
|
|
&sample,
|
|
::ProjectDataManagement::UpdateChargeNamesRequest);
|
|
if (sample == NULL) {
|
|
return NULL;
|
|
}
|
|
|
|
UpdateChargeNamesRequest_g_memberAccessInfos[0].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->shortName - (char *)sample);
|
|
|
|
UpdateChargeNamesRequest_g_sampleAccessInfo.memberAccessInfos =
|
|
UpdateChargeNamesRequest_g_memberAccessInfos;
|
|
|
|
{
|
|
size_t candidateTypeSize = sizeof(::ProjectDataManagement::UpdateChargeNamesRequest);
|
|
|
|
if (candidateTypeSize > RTIXCdrLong_MAX) {
|
|
UpdateChargeNamesRequest_g_sampleAccessInfo.typeSize[0] =
|
|
RTIXCdrLong_MAX;
|
|
} else {
|
|
UpdateChargeNamesRequest_g_sampleAccessInfo.typeSize[0] =
|
|
(RTIXCdrUnsignedLong) candidateTypeSize;
|
|
}
|
|
}
|
|
|
|
UpdateChargeNamesRequest_g_sampleAccessInfo.useGetMemberValueOnlyWithRef =
|
|
RTI_XCDR_TRUE;
|
|
|
|
UpdateChargeNamesRequest_g_sampleAccessInfo.getMemberValuePointerFcn =
|
|
interpreter::get_aggregation_value_pointer< ::ProjectDataManagement::UpdateChargeNamesRequest >;
|
|
|
|
UpdateChargeNamesRequest_g_sampleAccessInfo.languageBinding =
|
|
RTI_XCDR_TYPE_BINDING_CPP_11_STL ;
|
|
|
|
RTIXCdrHeap_freeStruct(sample);
|
|
is_initialized.store(true, std::memory_order_release);
|
|
return (RTIXCdrSampleAccessInfo*) &UpdateChargeNamesRequest_g_sampleAccessInfo;
|
|
}
|
|
static RTIXCdrTypePlugin * type_plugin_info()
|
|
{
|
|
static RTIXCdrTypePlugin UpdateChargeNamesRequest_g_typePlugin =
|
|
{
|
|
NULL, /* serialize */
|
|
NULL, /* serialize_key */
|
|
NULL, /* deserialize_sample */
|
|
NULL, /* deserialize_key_sample */
|
|
NULL, /* skip */
|
|
NULL, /* get_serialized_sample_size */
|
|
NULL, /* get_serialized_sample_max_size_ex */
|
|
NULL, /* get_serialized_key_max_size_ex */
|
|
NULL, /* get_serialized_sample_min_size */
|
|
NULL, /* serialized_sample_to_key */
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL
|
|
};
|
|
|
|
return &UpdateChargeNamesRequest_g_typePlugin;
|
|
}
|
|
}; // native_type_code
|
|
|
|
const ::dds::core::xtypes::StructType& dynamic_type< ::ProjectDataManagement::UpdateChargeNamesRequest >::get()
|
|
{
|
|
return static_cast<const ::dds::core::xtypes::StructType&>(
|
|
::rti::core::native_conversions::cast_from_native< ::dds::core::xtypes::DynamicType >(
|
|
*(native_type_code< ::ProjectDataManagement::UpdateChargeNamesRequest >::get())));
|
|
}
|
|
|
|
template<>
|
|
struct native_type_code< ::ProjectDataManagement::VulnerabilityKind > {
|
|
|
|
static DDS_TypeCode * get()
|
|
{
|
|
using namespace ::rti::topic::interpreter;
|
|
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
static DDS_TypeCode_Member VulnerabilityKind_g_tc_members[3]=
|
|
{
|
|
|
|
{
|
|
(char *)"playerTypeClassId",/* Member name */
|
|
{
|
|
2,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"taVulnerabilityKind",/* Member name */
|
|
{
|
|
3,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
},
|
|
{
|
|
(char *)"vulnerabilityClassId",/* Member name */
|
|
{
|
|
4,/* Representation ID */
|
|
DDS_BOOLEAN_FALSE,/* Is a pointer? */
|
|
-1, /* Bitfield bits */
|
|
NULL/* Member type code is assigned later */
|
|
},
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
RTI_CDR_REQUIRED_MEMBER, /* Is a key? */
|
|
DDS_PUBLIC_MEMBER,/* Member visibility */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER
|
|
}
|
|
};
|
|
|
|
static DDS_TypeCode VulnerabilityKind_g_tc =
|
|
{{
|
|
DDS_TK_VALUE, /* Kind */
|
|
DDS_BOOLEAN_FALSE, /* Ignored */
|
|
-1, /*Ignored*/
|
|
(char *)"ProjectDataManagement::VulnerabilityKind", /* Name */
|
|
NULL, /* Ignored */
|
|
0, /* Ignored */
|
|
0, /* Ignored */
|
|
NULL, /* Ignored */
|
|
3, /* Number of members */
|
|
VulnerabilityKind_g_tc_members, /* Members */
|
|
DDS_VM_NONE, /* Ignored */
|
|
RTICdrTypeCodeAnnotations_INITIALIZER,
|
|
DDS_BOOLEAN_TRUE, /* _isCopyable */
|
|
NULL, /* _sampleAccessInfo: assigned later */
|
|
NULL /* _typePlugin: assigned later */
|
|
}}; /* Type code for VulnerabilityKind*/
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return &VulnerabilityKind_g_tc;
|
|
}
|
|
|
|
VulnerabilityKind_g_tc._data._annotations._allowedDataRepresentationMask = 5;
|
|
|
|
VulnerabilityKind_g_tc_members[0]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
VulnerabilityKind_g_tc_members[1]._representation._typeCode = (RTICdrTypeCode *)&DDS_g_tc_long;
|
|
VulnerabilityKind_g_tc_members[2]._representation._typeCode = (RTICdrTypeCode *)&::rti::topic::dynamic_type< ::ProjectDataManagement::VulnerabilityClass>::get().native();
|
|
|
|
/* Initialize the values for member annotations. */
|
|
VulnerabilityKind_g_tc_members[0]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
VulnerabilityKind_g_tc_members[0]._annotations._defaultValue._u.long_value = 0;
|
|
VulnerabilityKind_g_tc_members[0]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
VulnerabilityKind_g_tc_members[0]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
VulnerabilityKind_g_tc_members[0]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
VulnerabilityKind_g_tc_members[0]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
VulnerabilityKind_g_tc_members[1]._annotations._defaultValue._d = RTI_XCDR_TK_LONG;
|
|
VulnerabilityKind_g_tc_members[1]._annotations._defaultValue._u.long_value = 0;
|
|
VulnerabilityKind_g_tc_members[1]._annotations._minValue._d = RTI_XCDR_TK_LONG;
|
|
VulnerabilityKind_g_tc_members[1]._annotations._minValue._u.long_value = RTIXCdrLong_MIN;
|
|
VulnerabilityKind_g_tc_members[1]._annotations._maxValue._d = RTI_XCDR_TK_LONG;
|
|
VulnerabilityKind_g_tc_members[1]._annotations._maxValue._u.long_value = RTIXCdrLong_MAX;
|
|
VulnerabilityKind_g_tc_members[2]._annotations._defaultValue._d = RTI_XCDR_TK_ENUM;
|
|
VulnerabilityKind_g_tc_members[2]._annotations._defaultValue._u.enumerated_value = 0;
|
|
|
|
VulnerabilityKind_g_tc._data._typeCode = (RTICdrTypeCode *)&::rti::topic::dynamic_type< ::ProjectDataManagement::PdmBaseName >::get().native(); /* Base class */
|
|
|
|
VulnerabilityKind_g_tc._data._sampleAccessInfo = sample_access_info();
|
|
VulnerabilityKind_g_tc._data._typePlugin = type_plugin_info();
|
|
|
|
is_initialized.store(true, std::memory_order_release);
|
|
|
|
return &VulnerabilityKind_g_tc;
|
|
}
|
|
|
|
static RTIXCdrSampleAccessInfo * sample_access_info()
|
|
{
|
|
static std::atomic_bool is_initialized {false};
|
|
|
|
::ProjectDataManagement::VulnerabilityKind *sample;
|
|
|
|
static RTIXCdrMemberAccessInfo VulnerabilityKind_g_memberAccessInfos[3] =
|
|
{RTIXCdrMemberAccessInfo_INITIALIZER};
|
|
|
|
static RTIXCdrSampleAccessInfo VulnerabilityKind_g_sampleAccessInfo =
|
|
RTIXCdrSampleAccessInfo_INITIALIZER;
|
|
|
|
if (is_initialized.load(std::memory_order_acquire)) {
|
|
return (RTIXCdrSampleAccessInfo*) &VulnerabilityKind_g_sampleAccessInfo;
|
|
}
|
|
|
|
RTIXCdrHeap_allocateStruct(
|
|
&sample,
|
|
::ProjectDataManagement::VulnerabilityKind);
|
|
if (sample == NULL) {
|
|
return NULL;
|
|
}
|
|
|
|
VulnerabilityKind_g_memberAccessInfos[0].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->playerTypeClassId - (char *)sample);
|
|
|
|
VulnerabilityKind_g_memberAccessInfos[1].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->taVulnerabilityKind - (char *)sample);
|
|
|
|
VulnerabilityKind_g_memberAccessInfos[2].bindingMemberValueOffset[0] =
|
|
(RTIXCdrUnsignedLong) ((char *)&sample->vulnerabilityClassId - (char *)sample);
|
|
|
|
VulnerabilityKind_g_sampleAccessInfo.memberAccessInfos =
|
|
VulnerabilityKind_g_memberAccessInfos;
|
|
|
|
{
|
|
size_t candidateTypeSize = sizeof(::ProjectDataManagement::VulnerabilityKind);
|
|
|
|
if (candidateTypeSize > RTIXCdrLong_MAX) {
|
|
VulnerabilityKind_g_sampleAccessInfo.typeSize[0] =
|
|
RTIXCdrLong_MAX;
|
|
} else {
|
|
VulnerabilityKind_g_sampleAccessInfo.typeSize[0] =
|
|
(RTIXCdrUnsignedLong) candidateTypeSize;
|
|
}
|
|
}
|
|
|
|
VulnerabilityKind_g_sampleAccessInfo.useGetMemberValueOnlyWithRef =
|
|
RTI_XCDR_TRUE;
|
|
|
|
VulnerabilityKind_g_sampleAccessInfo.getMemberValuePointerFcn =
|
|
interpreter::get_aggregation_value_pointer< ::ProjectDataManagement::VulnerabilityKind >;
|
|
|
|
VulnerabilityKind_g_sampleAccessInfo.languageBinding =
|
|
RTI_XCDR_TYPE_BINDING_CPP_11_STL ;
|
|
|
|
RTIXCdrHeap_freeStruct(sample);
|
|
is_initialized.store(true, std::memory_order_release);
|
|
return (RTIXCdrSampleAccessInfo*) &VulnerabilityKind_g_sampleAccessInfo;
|
|
}
|
|
static RTIXCdrTypePlugin * type_plugin_info()
|
|
{
|
|
static RTIXCdrTypePlugin VulnerabilityKind_g_typePlugin =
|
|
{
|
|
NULL, /* serialize */
|
|
NULL, /* serialize_key */
|
|
NULL, /* deserialize_sample */
|
|
NULL, /* deserialize_key_sample */
|
|
NULL, /* skip */
|
|
NULL, /* get_serialized_sample_size */
|
|
NULL, /* get_serialized_sample_max_size_ex */
|
|
NULL, /* get_serialized_key_max_size_ex */
|
|
NULL, /* get_serialized_sample_min_size */
|
|
NULL, /* serialized_sample_to_key */
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL
|
|
};
|
|
|
|
return &VulnerabilityKind_g_typePlugin;
|
|
}
|
|
}; // native_type_code
|
|
|
|
const ::dds::core::xtypes::StructType& dynamic_type< ::ProjectDataManagement::VulnerabilityKind >::get()
|
|
{
|
|
return static_cast<const ::dds::core::xtypes::StructType&>(
|
|
::rti::core::native_conversions::cast_from_native< ::dds::core::xtypes::DynamicType >(
|
|
*(native_type_code< ::ProjectDataManagement::VulnerabilityKind >::get())));
|
|
}
|
|
}
|
|
}
|
|
|
|
namespace dds {
|
|
namespace topic {
|
|
void topic_type_support< ::ProjectDataManagement::PdmBase >:: register_type(
|
|
::dds::domain::DomainParticipant& participant,
|
|
const std::string& type_name)
|
|
{
|
|
|
|
::rti::domain::register_type_plugin(
|
|
participant,
|
|
type_name,
|
|
::ProjectDataManagement::PdmBasePlugin_new,
|
|
::ProjectDataManagement::PdmBasePlugin_delete);
|
|
}
|
|
|
|
std::vector<char>& topic_type_support< ::ProjectDataManagement::PdmBase >::to_cdr_buffer(
|
|
std::vector<char>& buffer,
|
|
const ::ProjectDataManagement::PdmBase& sample,
|
|
::dds::core::policy::DataRepresentationId representation)
|
|
{
|
|
// First get the length of the buffer
|
|
unsigned int length = 0;
|
|
RTIBool ok = PdmBasePlugin_serialize_to_cdr_buffer(
|
|
NULL,
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to calculate cdr buffer size");
|
|
|
|
// Create a vector with that size and copy the cdr buffer into it
|
|
buffer.resize(length);
|
|
ok = PdmBasePlugin_serialize_to_cdr_buffer(
|
|
&buffer[0],
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to copy cdr buffer");
|
|
|
|
return buffer;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::PdmBase >::from_cdr_buffer(::ProjectDataManagement::PdmBase& sample,
|
|
const std::vector<char>& buffer)
|
|
{
|
|
|
|
RTIBool ok = PdmBasePlugin_deserialize_from_cdr_buffer(
|
|
&sample,
|
|
&buffer[0],
|
|
static_cast<unsigned int>(buffer.size()));
|
|
::rti::core::check_return_code(ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to create ::ProjectDataManagement::PdmBase from cdr buffer");
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::PdmBase >::reset_sample(::ProjectDataManagement::PdmBase& sample)
|
|
{
|
|
sample.id = 0;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::PdmBase >::allocate_sample(::ProjectDataManagement::PdmBase& sample, int, int)
|
|
{
|
|
RTIOsapiUtility_unusedParameter(sample);
|
|
}
|
|
void topic_type_support< ::ProjectDataManagement::PdmBaseName >:: register_type(
|
|
::dds::domain::DomainParticipant& participant,
|
|
const std::string& type_name)
|
|
{
|
|
|
|
::rti::domain::register_type_plugin(
|
|
participant,
|
|
type_name,
|
|
::ProjectDataManagement::PdmBaseNamePlugin_new,
|
|
::ProjectDataManagement::PdmBaseNamePlugin_delete);
|
|
}
|
|
|
|
std::vector<char>& topic_type_support< ::ProjectDataManagement::PdmBaseName >::to_cdr_buffer(
|
|
std::vector<char>& buffer,
|
|
const ::ProjectDataManagement::PdmBaseName& sample,
|
|
::dds::core::policy::DataRepresentationId representation)
|
|
{
|
|
// First get the length of the buffer
|
|
unsigned int length = 0;
|
|
RTIBool ok = PdmBaseNamePlugin_serialize_to_cdr_buffer(
|
|
NULL,
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to calculate cdr buffer size");
|
|
|
|
// Create a vector with that size and copy the cdr buffer into it
|
|
buffer.resize(length);
|
|
ok = PdmBaseNamePlugin_serialize_to_cdr_buffer(
|
|
&buffer[0],
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to copy cdr buffer");
|
|
|
|
return buffer;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::PdmBaseName >::from_cdr_buffer(::ProjectDataManagement::PdmBaseName& sample,
|
|
const std::vector<char>& buffer)
|
|
{
|
|
|
|
RTIBool ok = PdmBaseNamePlugin_deserialize_from_cdr_buffer(
|
|
&sample,
|
|
&buffer[0],
|
|
static_cast<unsigned int>(buffer.size()));
|
|
::rti::core::check_return_code(ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to create ::ProjectDataManagement::PdmBaseName from cdr buffer");
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::PdmBaseName >::reset_sample(::ProjectDataManagement::PdmBaseName& sample)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBase >::reset_sample(sample);
|
|
|
|
sample.name = "";
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::PdmBaseName >::allocate_sample(::ProjectDataManagement::PdmBaseName& sample, int, int)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBase >::allocate_sample(sample, -1, -1);
|
|
|
|
::rti::topic::allocate_sample(sample.name, -1, -1);
|
|
}
|
|
void topic_type_support< ::ProjectDataManagement::BiteComponentText >:: register_type(
|
|
::dds::domain::DomainParticipant& participant,
|
|
const std::string& type_name)
|
|
{
|
|
|
|
::rti::domain::register_type_plugin(
|
|
participant,
|
|
type_name,
|
|
::ProjectDataManagement::BiteComponentTextPlugin_new,
|
|
::ProjectDataManagement::BiteComponentTextPlugin_delete);
|
|
}
|
|
|
|
std::vector<char>& topic_type_support< ::ProjectDataManagement::BiteComponentText >::to_cdr_buffer(
|
|
std::vector<char>& buffer,
|
|
const ::ProjectDataManagement::BiteComponentText& sample,
|
|
::dds::core::policy::DataRepresentationId representation)
|
|
{
|
|
// First get the length of the buffer
|
|
unsigned int length = 0;
|
|
RTIBool ok = BiteComponentTextPlugin_serialize_to_cdr_buffer(
|
|
NULL,
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to calculate cdr buffer size");
|
|
|
|
// Create a vector with that size and copy the cdr buffer into it
|
|
buffer.resize(length);
|
|
ok = BiteComponentTextPlugin_serialize_to_cdr_buffer(
|
|
&buffer[0],
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to copy cdr buffer");
|
|
|
|
return buffer;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::BiteComponentText >::from_cdr_buffer(::ProjectDataManagement::BiteComponentText& sample,
|
|
const std::vector<char>& buffer)
|
|
{
|
|
|
|
RTIBool ok = BiteComponentTextPlugin_deserialize_from_cdr_buffer(
|
|
&sample,
|
|
&buffer[0],
|
|
static_cast<unsigned int>(buffer.size()));
|
|
::rti::core::check_return_code(ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to create ::ProjectDataManagement::BiteComponentText from cdr buffer");
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::BiteComponentText >::reset_sample(::ProjectDataManagement::BiteComponentText& sample)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::reset_sample(sample);
|
|
|
|
sample.canDeviceId = 0;
|
|
sample.subDeviceId = 0;
|
|
sample.errorNumber = 0;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::BiteComponentText >::allocate_sample(::ProjectDataManagement::BiteComponentText& sample, int, int)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::allocate_sample(sample, -1, -1);
|
|
|
|
}
|
|
void topic_type_support< ::ProjectDataManagement::BuildingChargeEffect >:: register_type(
|
|
::dds::domain::DomainParticipant& participant,
|
|
const std::string& type_name)
|
|
{
|
|
|
|
::rti::domain::register_type_plugin(
|
|
participant,
|
|
type_name,
|
|
::ProjectDataManagement::BuildingChargeEffectPlugin_new,
|
|
::ProjectDataManagement::BuildingChargeEffectPlugin_delete);
|
|
}
|
|
|
|
std::vector<char>& topic_type_support< ::ProjectDataManagement::BuildingChargeEffect >::to_cdr_buffer(
|
|
std::vector<char>& buffer,
|
|
const ::ProjectDataManagement::BuildingChargeEffect& sample,
|
|
::dds::core::policy::DataRepresentationId representation)
|
|
{
|
|
// First get the length of the buffer
|
|
unsigned int length = 0;
|
|
RTIBool ok = BuildingChargeEffectPlugin_serialize_to_cdr_buffer(
|
|
NULL,
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to calculate cdr buffer size");
|
|
|
|
// Create a vector with that size and copy the cdr buffer into it
|
|
buffer.resize(length);
|
|
ok = BuildingChargeEffectPlugin_serialize_to_cdr_buffer(
|
|
&buffer[0],
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to copy cdr buffer");
|
|
|
|
return buffer;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::BuildingChargeEffect >::from_cdr_buffer(::ProjectDataManagement::BuildingChargeEffect& sample,
|
|
const std::vector<char>& buffer)
|
|
{
|
|
|
|
RTIBool ok = BuildingChargeEffectPlugin_deserialize_from_cdr_buffer(
|
|
&sample,
|
|
&buffer[0],
|
|
static_cast<unsigned int>(buffer.size()));
|
|
::rti::core::check_return_code(ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to create ::ProjectDataManagement::BuildingChargeEffect from cdr buffer");
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::BuildingChargeEffect >::reset_sample(::ProjectDataManagement::BuildingChargeEffect& sample)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBase >::reset_sample(sample);
|
|
|
|
sample.chargeTypeId = 0;
|
|
sample.destructiveFactor = 0;
|
|
sample.penetrationFactor = 0;
|
|
sample.hitSound = 0;
|
|
sample.difcueLight = 0;
|
|
sample.difcuePyro = 0;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::BuildingChargeEffect >::allocate_sample(::ProjectDataManagement::BuildingChargeEffect& sample, int, int)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBase >::allocate_sample(sample, -1, -1);
|
|
|
|
}
|
|
void topic_type_support< ::ProjectDataManagement::CanComponentString >:: register_type(
|
|
::dds::domain::DomainParticipant& participant,
|
|
const std::string& type_name)
|
|
{
|
|
|
|
::rti::domain::register_type_plugin(
|
|
participant,
|
|
type_name,
|
|
::ProjectDataManagement::CanComponentStringPlugin_new,
|
|
::ProjectDataManagement::CanComponentStringPlugin_delete);
|
|
}
|
|
|
|
std::vector<char>& topic_type_support< ::ProjectDataManagement::CanComponentString >::to_cdr_buffer(
|
|
std::vector<char>& buffer,
|
|
const ::ProjectDataManagement::CanComponentString& sample,
|
|
::dds::core::policy::DataRepresentationId representation)
|
|
{
|
|
// First get the length of the buffer
|
|
unsigned int length = 0;
|
|
RTIBool ok = CanComponentStringPlugin_serialize_to_cdr_buffer(
|
|
NULL,
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to calculate cdr buffer size");
|
|
|
|
// Create a vector with that size and copy the cdr buffer into it
|
|
buffer.resize(length);
|
|
ok = CanComponentStringPlugin_serialize_to_cdr_buffer(
|
|
&buffer[0],
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to copy cdr buffer");
|
|
|
|
return buffer;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::CanComponentString >::from_cdr_buffer(::ProjectDataManagement::CanComponentString& sample,
|
|
const std::vector<char>& buffer)
|
|
{
|
|
|
|
RTIBool ok = CanComponentStringPlugin_deserialize_from_cdr_buffer(
|
|
&sample,
|
|
&buffer[0],
|
|
static_cast<unsigned int>(buffer.size()));
|
|
::rti::core::check_return_code(ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to create ::ProjectDataManagement::CanComponentString from cdr buffer");
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::CanComponentString >::reset_sample(::ProjectDataManagement::CanComponentString& sample)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::reset_sample(sample);
|
|
|
|
sample.pdm_bitMask = 0ll;
|
|
sample.canDeviceId = 0;
|
|
sample.subDeviceId = 0;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::CanComponentString >::allocate_sample(::ProjectDataManagement::CanComponentString& sample, int, int)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::allocate_sample(sample, -1, -1);
|
|
|
|
}
|
|
void topic_type_support< ::ProjectDataManagement::CasEffect >:: register_type(
|
|
::dds::domain::DomainParticipant& participant,
|
|
const std::string& type_name)
|
|
{
|
|
|
|
::rti::domain::register_type_plugin(
|
|
participant,
|
|
type_name,
|
|
::ProjectDataManagement::CasEffectPlugin_new,
|
|
::ProjectDataManagement::CasEffectPlugin_delete);
|
|
}
|
|
|
|
std::vector<char>& topic_type_support< ::ProjectDataManagement::CasEffect >::to_cdr_buffer(
|
|
std::vector<char>& buffer,
|
|
const ::ProjectDataManagement::CasEffect& sample,
|
|
::dds::core::policy::DataRepresentationId representation)
|
|
{
|
|
// First get the length of the buffer
|
|
unsigned int length = 0;
|
|
RTIBool ok = CasEffectPlugin_serialize_to_cdr_buffer(
|
|
NULL,
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to calculate cdr buffer size");
|
|
|
|
// Create a vector with that size and copy the cdr buffer into it
|
|
buffer.resize(length);
|
|
ok = CasEffectPlugin_serialize_to_cdr_buffer(
|
|
&buffer[0],
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to copy cdr buffer");
|
|
|
|
return buffer;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::CasEffect >::from_cdr_buffer(::ProjectDataManagement::CasEffect& sample,
|
|
const std::vector<char>& buffer)
|
|
{
|
|
|
|
RTIBool ok = CasEffectPlugin_deserialize_from_cdr_buffer(
|
|
&sample,
|
|
&buffer[0],
|
|
static_cast<unsigned int>(buffer.size()));
|
|
::rti::core::check_return_code(ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to create ::ProjectDataManagement::CasEffect from cdr buffer");
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::CasEffect >::reset_sample(::ProjectDataManagement::CasEffect& sample)
|
|
{
|
|
;
|
|
sample.severityType = ProjectDataManagement::SeverityType::lethal;
|
|
sample.iedClass = 0;
|
|
sample.impactRadius = 0;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::CasEffect >::allocate_sample(::ProjectDataManagement::CasEffect& sample, int, int)
|
|
{
|
|
::rti::topic::allocate_sample(sample.severityType, -1, -1);
|
|
}
|
|
void topic_type_support< ::ProjectDataManagement::ChargeType >:: register_type(
|
|
::dds::domain::DomainParticipant& participant,
|
|
const std::string& type_name)
|
|
{
|
|
|
|
::rti::domain::register_type_plugin(
|
|
participant,
|
|
type_name,
|
|
::ProjectDataManagement::ChargeTypePlugin_new,
|
|
::ProjectDataManagement::ChargeTypePlugin_delete);
|
|
}
|
|
|
|
std::vector<char>& topic_type_support< ::ProjectDataManagement::ChargeType >::to_cdr_buffer(
|
|
std::vector<char>& buffer,
|
|
const ::ProjectDataManagement::ChargeType& sample,
|
|
::dds::core::policy::DataRepresentationId representation)
|
|
{
|
|
// First get the length of the buffer
|
|
unsigned int length = 0;
|
|
RTIBool ok = ChargeTypePlugin_serialize_to_cdr_buffer(
|
|
NULL,
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to calculate cdr buffer size");
|
|
|
|
// Create a vector with that size and copy the cdr buffer into it
|
|
buffer.resize(length);
|
|
ok = ChargeTypePlugin_serialize_to_cdr_buffer(
|
|
&buffer[0],
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to copy cdr buffer");
|
|
|
|
return buffer;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::ChargeType >::from_cdr_buffer(::ProjectDataManagement::ChargeType& sample,
|
|
const std::vector<char>& buffer)
|
|
{
|
|
|
|
RTIBool ok = ChargeTypePlugin_deserialize_from_cdr_buffer(
|
|
&sample,
|
|
&buffer[0],
|
|
static_cast<unsigned int>(buffer.size()));
|
|
::rti::core::check_return_code(ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to create ::ProjectDataManagement::ChargeType from cdr buffer");
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::ChargeType >::reset_sample(::ProjectDataManagement::ChargeType& sample)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::reset_sample(sample);
|
|
|
|
sample.shortName = "";
|
|
sample.predefinedName = "";
|
|
sample.disEntity = "";
|
|
sample.properties = "";
|
|
sample.legacyId = 0;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::ChargeType >::allocate_sample(::ProjectDataManagement::ChargeType& sample, int, int)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::allocate_sample(sample, -1, -1);
|
|
|
|
::rti::topic::allocate_sample(sample.shortName, -1, -1);
|
|
::rti::topic::allocate_sample(sample.predefinedName, -1, -1);
|
|
::rti::topic::allocate_sample(sample.disEntity, -1, -1);
|
|
::rti::topic::allocate_sample(sample.properties, -1, -1);
|
|
}
|
|
void topic_type_support< ::ProjectDataManagement::ChargeTypeIgniterTypeIgniterFunction >:: register_type(
|
|
::dds::domain::DomainParticipant& participant,
|
|
const std::string& type_name)
|
|
{
|
|
|
|
::rti::domain::register_type_plugin(
|
|
participant,
|
|
type_name,
|
|
::ProjectDataManagement::ChargeTypeIgniterTypeIgniterFunctionPlugin_new,
|
|
::ProjectDataManagement::ChargeTypeIgniterTypeIgniterFunctionPlugin_delete);
|
|
}
|
|
|
|
std::vector<char>& topic_type_support< ::ProjectDataManagement::ChargeTypeIgniterTypeIgniterFunction >::to_cdr_buffer(
|
|
std::vector<char>& buffer,
|
|
const ::ProjectDataManagement::ChargeTypeIgniterTypeIgniterFunction& sample,
|
|
::dds::core::policy::DataRepresentationId representation)
|
|
{
|
|
// First get the length of the buffer
|
|
unsigned int length = 0;
|
|
RTIBool ok = ChargeTypeIgniterTypeIgniterFunctionPlugin_serialize_to_cdr_buffer(
|
|
NULL,
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to calculate cdr buffer size");
|
|
|
|
// Create a vector with that size and copy the cdr buffer into it
|
|
buffer.resize(length);
|
|
ok = ChargeTypeIgniterTypeIgniterFunctionPlugin_serialize_to_cdr_buffer(
|
|
&buffer[0],
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to copy cdr buffer");
|
|
|
|
return buffer;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::ChargeTypeIgniterTypeIgniterFunction >::from_cdr_buffer(::ProjectDataManagement::ChargeTypeIgniterTypeIgniterFunction& sample,
|
|
const std::vector<char>& buffer)
|
|
{
|
|
|
|
RTIBool ok = ChargeTypeIgniterTypeIgniterFunctionPlugin_deserialize_from_cdr_buffer(
|
|
&sample,
|
|
&buffer[0],
|
|
static_cast<unsigned int>(buffer.size()));
|
|
::rti::core::check_return_code(ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to create ::ProjectDataManagement::ChargeTypeIgniterTypeIgniterFunction from cdr buffer");
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::ChargeTypeIgniterTypeIgniterFunction >::reset_sample(::ProjectDataManagement::ChargeTypeIgniterTypeIgniterFunction& sample)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBase >::reset_sample(sample);
|
|
|
|
sample.chargeTypeId = 0;
|
|
sample.igniterTypeId = 0;
|
|
sample.igniterFunctionId = 0;
|
|
;
|
|
sample.igniterFunctionBaseId = ProjectDataManagement::IgniterFunctionBase::IfbDefault;
|
|
sample.impactArea = "";
|
|
sample.impactRadius = 0;
|
|
sample.hazardDistance = 0;
|
|
sample.chargeLegacyId = 0;
|
|
sample.properties = "";
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::ChargeTypeIgniterTypeIgniterFunction >::allocate_sample(::ProjectDataManagement::ChargeTypeIgniterTypeIgniterFunction& sample, int, int)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBase >::allocate_sample(sample, -1, -1);
|
|
|
|
::rti::topic::allocate_sample(sample.igniterFunctionBaseId, -1, -1);
|
|
::rti::topic::allocate_sample(sample.impactArea, -1, -1);
|
|
::rti::topic::allocate_sample(sample.properties, -1, -1);
|
|
}
|
|
void topic_type_support< ::ProjectDataManagement::ChargeTypeLoadType >:: register_type(
|
|
::dds::domain::DomainParticipant& participant,
|
|
const std::string& type_name)
|
|
{
|
|
|
|
::rti::domain::register_type_plugin(
|
|
participant,
|
|
type_name,
|
|
::ProjectDataManagement::ChargeTypeLoadTypePlugin_new,
|
|
::ProjectDataManagement::ChargeTypeLoadTypePlugin_delete);
|
|
}
|
|
|
|
std::vector<char>& topic_type_support< ::ProjectDataManagement::ChargeTypeLoadType >::to_cdr_buffer(
|
|
std::vector<char>& buffer,
|
|
const ::ProjectDataManagement::ChargeTypeLoadType& sample,
|
|
::dds::core::policy::DataRepresentationId representation)
|
|
{
|
|
// First get the length of the buffer
|
|
unsigned int length = 0;
|
|
RTIBool ok = ChargeTypeLoadTypePlugin_serialize_to_cdr_buffer(
|
|
NULL,
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to calculate cdr buffer size");
|
|
|
|
// Create a vector with that size and copy the cdr buffer into it
|
|
buffer.resize(length);
|
|
ok = ChargeTypeLoadTypePlugin_serialize_to_cdr_buffer(
|
|
&buffer[0],
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to copy cdr buffer");
|
|
|
|
return buffer;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::ChargeTypeLoadType >::from_cdr_buffer(::ProjectDataManagement::ChargeTypeLoadType& sample,
|
|
const std::vector<char>& buffer)
|
|
{
|
|
|
|
RTIBool ok = ChargeTypeLoadTypePlugin_deserialize_from_cdr_buffer(
|
|
&sample,
|
|
&buffer[0],
|
|
static_cast<unsigned int>(buffer.size()));
|
|
::rti::core::check_return_code(ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to create ::ProjectDataManagement::ChargeTypeLoadType from cdr buffer");
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::ChargeTypeLoadType >::reset_sample(::ProjectDataManagement::ChargeTypeLoadType& sample)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBase >::reset_sample(sample);
|
|
|
|
sample.chargeTypeId = 0;
|
|
sample.loadTypeId = 0;
|
|
::rti::topic::reset_sample(sample.numbers);
|
|
sample.properties = "";
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::ChargeTypeLoadType >::allocate_sample(::ProjectDataManagement::ChargeTypeLoadType& sample, int, int)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBase >::allocate_sample(sample, -1, -1);
|
|
|
|
::rti::topic::allocate_sample(sample.numbers, -1, -1);
|
|
::rti::topic::allocate_sample(sample.properties, -1, -1);
|
|
}
|
|
void topic_type_support< ::ProjectDataManagement::EquipmentSystemEventFilter >:: register_type(
|
|
::dds::domain::DomainParticipant& participant,
|
|
const std::string& type_name)
|
|
{
|
|
|
|
::rti::domain::register_type_plugin(
|
|
participant,
|
|
type_name,
|
|
::ProjectDataManagement::EquipmentSystemEventFilterPlugin_new,
|
|
::ProjectDataManagement::EquipmentSystemEventFilterPlugin_delete);
|
|
}
|
|
|
|
std::vector<char>& topic_type_support< ::ProjectDataManagement::EquipmentSystemEventFilter >::to_cdr_buffer(
|
|
std::vector<char>& buffer,
|
|
const ::ProjectDataManagement::EquipmentSystemEventFilter& sample,
|
|
::dds::core::policy::DataRepresentationId representation)
|
|
{
|
|
// First get the length of the buffer
|
|
unsigned int length = 0;
|
|
RTIBool ok = EquipmentSystemEventFilterPlugin_serialize_to_cdr_buffer(
|
|
NULL,
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to calculate cdr buffer size");
|
|
|
|
// Create a vector with that size and copy the cdr buffer into it
|
|
buffer.resize(length);
|
|
ok = EquipmentSystemEventFilterPlugin_serialize_to_cdr_buffer(
|
|
&buffer[0],
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to copy cdr buffer");
|
|
|
|
return buffer;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::EquipmentSystemEventFilter >::from_cdr_buffer(::ProjectDataManagement::EquipmentSystemEventFilter& sample,
|
|
const std::vector<char>& buffer)
|
|
{
|
|
|
|
RTIBool ok = EquipmentSystemEventFilterPlugin_deserialize_from_cdr_buffer(
|
|
&sample,
|
|
&buffer[0],
|
|
static_cast<unsigned int>(buffer.size()));
|
|
::rti::core::check_return_code(ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to create ::ProjectDataManagement::EquipmentSystemEventFilter from cdr buffer");
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::EquipmentSystemEventFilter >::reset_sample(::ProjectDataManagement::EquipmentSystemEventFilter& sample)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBase >::reset_sample(sample);
|
|
|
|
sample.equipmentFunctionId = 0;
|
|
sample.subDeviceId = 0;
|
|
sample.deviceSpecificCode = 0;
|
|
;
|
|
sample.hgrMineSearchFilterType = ProjectDataManagement::HgrMineSearchFilterType::HgrMineSearchFilterType_Unknown;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::EquipmentSystemEventFilter >::allocate_sample(::ProjectDataManagement::EquipmentSystemEventFilter& sample, int, int)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBase >::allocate_sample(sample, -1, -1);
|
|
|
|
::rti::topic::allocate_sample(sample.hgrMineSearchFilterType, -1, -1);
|
|
}
|
|
void topic_type_support< ::ProjectDataManagement::EventFilterHgrMineSearch >:: register_type(
|
|
::dds::domain::DomainParticipant& participant,
|
|
const std::string& type_name)
|
|
{
|
|
|
|
::rti::domain::register_type_plugin(
|
|
participant,
|
|
type_name,
|
|
::ProjectDataManagement::EventFilterHgrMineSearchPlugin_new,
|
|
::ProjectDataManagement::EventFilterHgrMineSearchPlugin_delete);
|
|
}
|
|
|
|
std::vector<char>& topic_type_support< ::ProjectDataManagement::EventFilterHgrMineSearch >::to_cdr_buffer(
|
|
std::vector<char>& buffer,
|
|
const ::ProjectDataManagement::EventFilterHgrMineSearch& sample,
|
|
::dds::core::policy::DataRepresentationId representation)
|
|
{
|
|
// First get the length of the buffer
|
|
unsigned int length = 0;
|
|
RTIBool ok = EventFilterHgrMineSearchPlugin_serialize_to_cdr_buffer(
|
|
NULL,
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to calculate cdr buffer size");
|
|
|
|
// Create a vector with that size and copy the cdr buffer into it
|
|
buffer.resize(length);
|
|
ok = EventFilterHgrMineSearchPlugin_serialize_to_cdr_buffer(
|
|
&buffer[0],
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to copy cdr buffer");
|
|
|
|
return buffer;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::EventFilterHgrMineSearch >::from_cdr_buffer(::ProjectDataManagement::EventFilterHgrMineSearch& sample,
|
|
const std::vector<char>& buffer)
|
|
{
|
|
|
|
RTIBool ok = EventFilterHgrMineSearchPlugin_deserialize_from_cdr_buffer(
|
|
&sample,
|
|
&buffer[0],
|
|
static_cast<unsigned int>(buffer.size()));
|
|
::rti::core::check_return_code(ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to create ::ProjectDataManagement::EventFilterHgrMineSearch from cdr buffer");
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::EventFilterHgrMineSearch >::reset_sample(::ProjectDataManagement::EventFilterHgrMineSearch& sample)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBase >::reset_sample(sample);
|
|
|
|
sample.chargeTypeId = 0;
|
|
;
|
|
sample.hgrMineSearchFilterType = ProjectDataManagement::HgrMineSearchFilterType::HgrMineSearchFilterType_Unknown;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::EventFilterHgrMineSearch >::allocate_sample(::ProjectDataManagement::EventFilterHgrMineSearch& sample, int, int)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBase >::allocate_sample(sample, -1, -1);
|
|
|
|
::rti::topic::allocate_sample(sample.hgrMineSearchFilterType, -1, -1);
|
|
}
|
|
void topic_type_support< ::ProjectDataManagement::FirePurpose >:: register_type(
|
|
::dds::domain::DomainParticipant& participant,
|
|
const std::string& type_name)
|
|
{
|
|
|
|
::rti::domain::register_type_plugin(
|
|
participant,
|
|
type_name,
|
|
::ProjectDataManagement::FirePurposePlugin_new,
|
|
::ProjectDataManagement::FirePurposePlugin_delete);
|
|
}
|
|
|
|
std::vector<char>& topic_type_support< ::ProjectDataManagement::FirePurpose >::to_cdr_buffer(
|
|
std::vector<char>& buffer,
|
|
const ::ProjectDataManagement::FirePurpose& sample,
|
|
::dds::core::policy::DataRepresentationId representation)
|
|
{
|
|
// First get the length of the buffer
|
|
unsigned int length = 0;
|
|
RTIBool ok = FirePurposePlugin_serialize_to_cdr_buffer(
|
|
NULL,
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to calculate cdr buffer size");
|
|
|
|
// Create a vector with that size and copy the cdr buffer into it
|
|
buffer.resize(length);
|
|
ok = FirePurposePlugin_serialize_to_cdr_buffer(
|
|
&buffer[0],
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to copy cdr buffer");
|
|
|
|
return buffer;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::FirePurpose >::from_cdr_buffer(::ProjectDataManagement::FirePurpose& sample,
|
|
const std::vector<char>& buffer)
|
|
{
|
|
|
|
RTIBool ok = FirePurposePlugin_deserialize_from_cdr_buffer(
|
|
&sample,
|
|
&buffer[0],
|
|
static_cast<unsigned int>(buffer.size()));
|
|
::rti::core::check_return_code(ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to create ::ProjectDataManagement::FirePurpose from cdr buffer");
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::FirePurpose >::reset_sample(::ProjectDataManagement::FirePurpose& sample)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::reset_sample(sample);
|
|
|
|
sample.description = "";
|
|
sample.properties = "";
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::FirePurpose >::allocate_sample(::ProjectDataManagement::FirePurpose& sample, int, int)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::allocate_sample(sample, -1, -1);
|
|
|
|
::rti::topic::allocate_sample(sample.description, -1, -1);
|
|
::rti::topic::allocate_sample(sample.properties, -1, -1);
|
|
}
|
|
void topic_type_support< ::ProjectDataManagement::GearType >:: register_type(
|
|
::dds::domain::DomainParticipant& participant,
|
|
const std::string& type_name)
|
|
{
|
|
|
|
::rti::domain::register_type_plugin(
|
|
participant,
|
|
type_name,
|
|
::ProjectDataManagement::GearTypePlugin_new,
|
|
::ProjectDataManagement::GearTypePlugin_delete);
|
|
}
|
|
|
|
std::vector<char>& topic_type_support< ::ProjectDataManagement::GearType >::to_cdr_buffer(
|
|
std::vector<char>& buffer,
|
|
const ::ProjectDataManagement::GearType& sample,
|
|
::dds::core::policy::DataRepresentationId representation)
|
|
{
|
|
// First get the length of the buffer
|
|
unsigned int length = 0;
|
|
RTIBool ok = GearTypePlugin_serialize_to_cdr_buffer(
|
|
NULL,
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to calculate cdr buffer size");
|
|
|
|
// Create a vector with that size and copy the cdr buffer into it
|
|
buffer.resize(length);
|
|
ok = GearTypePlugin_serialize_to_cdr_buffer(
|
|
&buffer[0],
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to copy cdr buffer");
|
|
|
|
return buffer;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::GearType >::from_cdr_buffer(::ProjectDataManagement::GearType& sample,
|
|
const std::vector<char>& buffer)
|
|
{
|
|
|
|
RTIBool ok = GearTypePlugin_deserialize_from_cdr_buffer(
|
|
&sample,
|
|
&buffer[0],
|
|
static_cast<unsigned int>(buffer.size()));
|
|
::rti::core::check_return_code(ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to create ::ProjectDataManagement::GearType from cdr buffer");
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::GearType >::reset_sample(::ProjectDataManagement::GearType& sample)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::reset_sample(sample);
|
|
|
|
;
|
|
sample.gearClassId = ProjectDataManagement::GearClass::GearClass_Unknown;
|
|
sample.tasCode = 0;
|
|
sample.properties = "";
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::GearType >::allocate_sample(::ProjectDataManagement::GearType& sample, int, int)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::allocate_sample(sample, -1, -1);
|
|
|
|
::rti::topic::allocate_sample(sample.gearClassId, -1, -1);
|
|
::rti::topic::allocate_sample(sample.properties, -1, -1);
|
|
}
|
|
void topic_type_support< ::ProjectDataManagement::GearTypeChargeType >:: register_type(
|
|
::dds::domain::DomainParticipant& participant,
|
|
const std::string& type_name)
|
|
{
|
|
|
|
::rti::domain::register_type_plugin(
|
|
participant,
|
|
type_name,
|
|
::ProjectDataManagement::GearTypeChargeTypePlugin_new,
|
|
::ProjectDataManagement::GearTypeChargeTypePlugin_delete);
|
|
}
|
|
|
|
std::vector<char>& topic_type_support< ::ProjectDataManagement::GearTypeChargeType >::to_cdr_buffer(
|
|
std::vector<char>& buffer,
|
|
const ::ProjectDataManagement::GearTypeChargeType& sample,
|
|
::dds::core::policy::DataRepresentationId representation)
|
|
{
|
|
// First get the length of the buffer
|
|
unsigned int length = 0;
|
|
RTIBool ok = GearTypeChargeTypePlugin_serialize_to_cdr_buffer(
|
|
NULL,
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to calculate cdr buffer size");
|
|
|
|
// Create a vector with that size and copy the cdr buffer into it
|
|
buffer.resize(length);
|
|
ok = GearTypeChargeTypePlugin_serialize_to_cdr_buffer(
|
|
&buffer[0],
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to copy cdr buffer");
|
|
|
|
return buffer;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::GearTypeChargeType >::from_cdr_buffer(::ProjectDataManagement::GearTypeChargeType& sample,
|
|
const std::vector<char>& buffer)
|
|
{
|
|
|
|
RTIBool ok = GearTypeChargeTypePlugin_deserialize_from_cdr_buffer(
|
|
&sample,
|
|
&buffer[0],
|
|
static_cast<unsigned int>(buffer.size()));
|
|
::rti::core::check_return_code(ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to create ::ProjectDataManagement::GearTypeChargeType from cdr buffer");
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::GearTypeChargeType >::reset_sample(::ProjectDataManagement::GearTypeChargeType& sample)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBase >::reset_sample(sample);
|
|
|
|
sample.chargeTypeId = 0;
|
|
sample.maxRange = 0;
|
|
sample.gearTypeId = 0;
|
|
sample.properties = "";
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::GearTypeChargeType >::allocate_sample(::ProjectDataManagement::GearTypeChargeType& sample, int, int)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBase >::allocate_sample(sample, -1, -1);
|
|
|
|
::rti::topic::allocate_sample(sample.properties, -1, -1);
|
|
}
|
|
void topic_type_support< ::ProjectDataManagement::IgniterFunction >:: register_type(
|
|
::dds::domain::DomainParticipant& participant,
|
|
const std::string& type_name)
|
|
{
|
|
|
|
::rti::domain::register_type_plugin(
|
|
participant,
|
|
type_name,
|
|
::ProjectDataManagement::IgniterFunctionPlugin_new,
|
|
::ProjectDataManagement::IgniterFunctionPlugin_delete);
|
|
}
|
|
|
|
std::vector<char>& topic_type_support< ::ProjectDataManagement::IgniterFunction >::to_cdr_buffer(
|
|
std::vector<char>& buffer,
|
|
const ::ProjectDataManagement::IgniterFunction& sample,
|
|
::dds::core::policy::DataRepresentationId representation)
|
|
{
|
|
// First get the length of the buffer
|
|
unsigned int length = 0;
|
|
RTIBool ok = IgniterFunctionPlugin_serialize_to_cdr_buffer(
|
|
NULL,
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to calculate cdr buffer size");
|
|
|
|
// Create a vector with that size and copy the cdr buffer into it
|
|
buffer.resize(length);
|
|
ok = IgniterFunctionPlugin_serialize_to_cdr_buffer(
|
|
&buffer[0],
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to copy cdr buffer");
|
|
|
|
return buffer;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::IgniterFunction >::from_cdr_buffer(::ProjectDataManagement::IgniterFunction& sample,
|
|
const std::vector<char>& buffer)
|
|
{
|
|
|
|
RTIBool ok = IgniterFunctionPlugin_deserialize_from_cdr_buffer(
|
|
&sample,
|
|
&buffer[0],
|
|
static_cast<unsigned int>(buffer.size()));
|
|
::rti::core::check_return_code(ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to create ::ProjectDataManagement::IgniterFunction from cdr buffer");
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::IgniterFunction >::reset_sample(::ProjectDataManagement::IgniterFunction& sample)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::reset_sample(sample);
|
|
|
|
sample.shortName = "";
|
|
sample.properties = "";
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::IgniterFunction >::allocate_sample(::ProjectDataManagement::IgniterFunction& sample, int, int)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::allocate_sample(sample, -1, -1);
|
|
|
|
::rti::topic::allocate_sample(sample.shortName, -1, -1);
|
|
::rti::topic::allocate_sample(sample.properties, -1, -1);
|
|
}
|
|
void topic_type_support< ::ProjectDataManagement::IgniterType >:: register_type(
|
|
::dds::domain::DomainParticipant& participant,
|
|
const std::string& type_name)
|
|
{
|
|
|
|
::rti::domain::register_type_plugin(
|
|
participant,
|
|
type_name,
|
|
::ProjectDataManagement::IgniterTypePlugin_new,
|
|
::ProjectDataManagement::IgniterTypePlugin_delete);
|
|
}
|
|
|
|
std::vector<char>& topic_type_support< ::ProjectDataManagement::IgniterType >::to_cdr_buffer(
|
|
std::vector<char>& buffer,
|
|
const ::ProjectDataManagement::IgniterType& sample,
|
|
::dds::core::policy::DataRepresentationId representation)
|
|
{
|
|
// First get the length of the buffer
|
|
unsigned int length = 0;
|
|
RTIBool ok = IgniterTypePlugin_serialize_to_cdr_buffer(
|
|
NULL,
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to calculate cdr buffer size");
|
|
|
|
// Create a vector with that size and copy the cdr buffer into it
|
|
buffer.resize(length);
|
|
ok = IgniterTypePlugin_serialize_to_cdr_buffer(
|
|
&buffer[0],
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to copy cdr buffer");
|
|
|
|
return buffer;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::IgniterType >::from_cdr_buffer(::ProjectDataManagement::IgniterType& sample,
|
|
const std::vector<char>& buffer)
|
|
{
|
|
|
|
RTIBool ok = IgniterTypePlugin_deserialize_from_cdr_buffer(
|
|
&sample,
|
|
&buffer[0],
|
|
static_cast<unsigned int>(buffer.size()));
|
|
::rti::core::check_return_code(ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to create ::ProjectDataManagement::IgniterType from cdr buffer");
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::IgniterType >::reset_sample(::ProjectDataManagement::IgniterType& sample)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::reset_sample(sample);
|
|
|
|
sample.shortName = "";
|
|
sample.properties = "";
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::IgniterType >::allocate_sample(::ProjectDataManagement::IgniterType& sample, int, int)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::allocate_sample(sample, -1, -1);
|
|
|
|
::rti::topic::allocate_sample(sample.shortName, -1, -1);
|
|
::rti::topic::allocate_sample(sample.properties, -1, -1);
|
|
}
|
|
void topic_type_support< ::ProjectDataManagement::InsertUpdateTranslationRequest >:: register_type(
|
|
::dds::domain::DomainParticipant& participant,
|
|
const std::string& type_name)
|
|
{
|
|
|
|
::rti::domain::register_type_plugin(
|
|
participant,
|
|
type_name,
|
|
::ProjectDataManagement::InsertUpdateTranslationRequestPlugin_new,
|
|
::ProjectDataManagement::InsertUpdateTranslationRequestPlugin_delete);
|
|
}
|
|
|
|
std::vector<char>& topic_type_support< ::ProjectDataManagement::InsertUpdateTranslationRequest >::to_cdr_buffer(
|
|
std::vector<char>& buffer,
|
|
const ::ProjectDataManagement::InsertUpdateTranslationRequest& sample,
|
|
::dds::core::policy::DataRepresentationId representation)
|
|
{
|
|
// First get the length of the buffer
|
|
unsigned int length = 0;
|
|
RTIBool ok = InsertUpdateTranslationRequestPlugin_serialize_to_cdr_buffer(
|
|
NULL,
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to calculate cdr buffer size");
|
|
|
|
// Create a vector with that size and copy the cdr buffer into it
|
|
buffer.resize(length);
|
|
ok = InsertUpdateTranslationRequestPlugin_serialize_to_cdr_buffer(
|
|
&buffer[0],
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to copy cdr buffer");
|
|
|
|
return buffer;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::InsertUpdateTranslationRequest >::from_cdr_buffer(::ProjectDataManagement::InsertUpdateTranslationRequest& sample,
|
|
const std::vector<char>& buffer)
|
|
{
|
|
|
|
RTIBool ok = InsertUpdateTranslationRequestPlugin_deserialize_from_cdr_buffer(
|
|
&sample,
|
|
&buffer[0],
|
|
static_cast<unsigned int>(buffer.size()));
|
|
::rti::core::check_return_code(ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to create ::ProjectDataManagement::InsertUpdateTranslationRequest from cdr buffer");
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::InsertUpdateTranslationRequest >::reset_sample(::ProjectDataManagement::InsertUpdateTranslationRequest& sample)
|
|
{
|
|
sample.isoCode = "";
|
|
sample.ctx = "";
|
|
sample.key = "";
|
|
sample.disambiguation = "";
|
|
sample.translation = "";
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::InsertUpdateTranslationRequest >::allocate_sample(::ProjectDataManagement::InsertUpdateTranslationRequest& sample, int, int)
|
|
{
|
|
::rti::topic::allocate_sample(sample.isoCode, -1, -1);
|
|
::rti::topic::allocate_sample(sample.ctx, -1, -1);
|
|
::rti::topic::allocate_sample(sample.key, -1, -1);
|
|
::rti::topic::allocate_sample(sample.disambiguation, -1, -1);
|
|
::rti::topic::allocate_sample(sample.translation, -1, -1);
|
|
}
|
|
void topic_type_support< ::ProjectDataManagement::LanguageHmi >:: register_type(
|
|
::dds::domain::DomainParticipant& participant,
|
|
const std::string& type_name)
|
|
{
|
|
|
|
::rti::domain::register_type_plugin(
|
|
participant,
|
|
type_name,
|
|
::ProjectDataManagement::LanguageHmiPlugin_new,
|
|
::ProjectDataManagement::LanguageHmiPlugin_delete);
|
|
}
|
|
|
|
std::vector<char>& topic_type_support< ::ProjectDataManagement::LanguageHmi >::to_cdr_buffer(
|
|
std::vector<char>& buffer,
|
|
const ::ProjectDataManagement::LanguageHmi& sample,
|
|
::dds::core::policy::DataRepresentationId representation)
|
|
{
|
|
// First get the length of the buffer
|
|
unsigned int length = 0;
|
|
RTIBool ok = LanguageHmiPlugin_serialize_to_cdr_buffer(
|
|
NULL,
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to calculate cdr buffer size");
|
|
|
|
// Create a vector with that size and copy the cdr buffer into it
|
|
buffer.resize(length);
|
|
ok = LanguageHmiPlugin_serialize_to_cdr_buffer(
|
|
&buffer[0],
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to copy cdr buffer");
|
|
|
|
return buffer;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::LanguageHmi >::from_cdr_buffer(::ProjectDataManagement::LanguageHmi& sample,
|
|
const std::vector<char>& buffer)
|
|
{
|
|
|
|
RTIBool ok = LanguageHmiPlugin_deserialize_from_cdr_buffer(
|
|
&sample,
|
|
&buffer[0],
|
|
static_cast<unsigned int>(buffer.size()));
|
|
::rti::core::check_return_code(ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to create ::ProjectDataManagement::LanguageHmi from cdr buffer");
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::LanguageHmi >::reset_sample(::ProjectDataManagement::LanguageHmi& sample)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::reset_sample(sample);
|
|
|
|
sample.isoCode = "";
|
|
sample.dbLocale = "";
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::LanguageHmi >::allocate_sample(::ProjectDataManagement::LanguageHmi& sample, int, int)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::allocate_sample(sample, -1, -1);
|
|
|
|
::rti::topic::allocate_sample(sample.isoCode, -1, -1);
|
|
::rti::topic::allocate_sample(sample.dbLocale, -1, -1);
|
|
}
|
|
void topic_type_support< ::ProjectDataManagement::LanguageXdu >:: register_type(
|
|
::dds::domain::DomainParticipant& participant,
|
|
const std::string& type_name)
|
|
{
|
|
|
|
::rti::domain::register_type_plugin(
|
|
participant,
|
|
type_name,
|
|
::ProjectDataManagement::LanguageXduPlugin_new,
|
|
::ProjectDataManagement::LanguageXduPlugin_delete);
|
|
}
|
|
|
|
std::vector<char>& topic_type_support< ::ProjectDataManagement::LanguageXdu >::to_cdr_buffer(
|
|
std::vector<char>& buffer,
|
|
const ::ProjectDataManagement::LanguageXdu& sample,
|
|
::dds::core::policy::DataRepresentationId representation)
|
|
{
|
|
// First get the length of the buffer
|
|
unsigned int length = 0;
|
|
RTIBool ok = LanguageXduPlugin_serialize_to_cdr_buffer(
|
|
NULL,
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to calculate cdr buffer size");
|
|
|
|
// Create a vector with that size and copy the cdr buffer into it
|
|
buffer.resize(length);
|
|
ok = LanguageXduPlugin_serialize_to_cdr_buffer(
|
|
&buffer[0],
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to copy cdr buffer");
|
|
|
|
return buffer;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::LanguageXdu >::from_cdr_buffer(::ProjectDataManagement::LanguageXdu& sample,
|
|
const std::vector<char>& buffer)
|
|
{
|
|
|
|
RTIBool ok = LanguageXduPlugin_deserialize_from_cdr_buffer(
|
|
&sample,
|
|
&buffer[0],
|
|
static_cast<unsigned int>(buffer.size()));
|
|
::rti::core::check_return_code(ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to create ::ProjectDataManagement::LanguageXdu from cdr buffer");
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::LanguageXdu >::reset_sample(::ProjectDataManagement::LanguageXdu& sample)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::reset_sample(sample);
|
|
|
|
sample.isoCode = "";
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::LanguageXdu >::allocate_sample(::ProjectDataManagement::LanguageXdu& sample, int, int)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::allocate_sample(sample, -1, -1);
|
|
|
|
::rti::topic::allocate_sample(sample.isoCode, -1, -1);
|
|
}
|
|
void topic_type_support< ::ProjectDataManagement::LoadType >:: register_type(
|
|
::dds::domain::DomainParticipant& participant,
|
|
const std::string& type_name)
|
|
{
|
|
|
|
::rti::domain::register_type_plugin(
|
|
participant,
|
|
type_name,
|
|
::ProjectDataManagement::LoadTypePlugin_new,
|
|
::ProjectDataManagement::LoadTypePlugin_delete);
|
|
}
|
|
|
|
std::vector<char>& topic_type_support< ::ProjectDataManagement::LoadType >::to_cdr_buffer(
|
|
std::vector<char>& buffer,
|
|
const ::ProjectDataManagement::LoadType& sample,
|
|
::dds::core::policy::DataRepresentationId representation)
|
|
{
|
|
// First get the length of the buffer
|
|
unsigned int length = 0;
|
|
RTIBool ok = LoadTypePlugin_serialize_to_cdr_buffer(
|
|
NULL,
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to calculate cdr buffer size");
|
|
|
|
// Create a vector with that size and copy the cdr buffer into it
|
|
buffer.resize(length);
|
|
ok = LoadTypePlugin_serialize_to_cdr_buffer(
|
|
&buffer[0],
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to copy cdr buffer");
|
|
|
|
return buffer;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::LoadType >::from_cdr_buffer(::ProjectDataManagement::LoadType& sample,
|
|
const std::vector<char>& buffer)
|
|
{
|
|
|
|
RTIBool ok = LoadTypePlugin_deserialize_from_cdr_buffer(
|
|
&sample,
|
|
&buffer[0],
|
|
static_cast<unsigned int>(buffer.size()));
|
|
::rti::core::check_return_code(ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to create ::ProjectDataManagement::LoadType from cdr buffer");
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::LoadType >::reset_sample(::ProjectDataManagement::LoadType& sample)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::reset_sample(sample);
|
|
|
|
sample.shortName = "";
|
|
sample.properties = "";
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::LoadType >::allocate_sample(::ProjectDataManagement::LoadType& sample, int, int)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::allocate_sample(sample, -1, -1);
|
|
|
|
::rti::topic::allocate_sample(sample.shortName, -1, -1);
|
|
::rti::topic::allocate_sample(sample.properties, -1, -1);
|
|
}
|
|
void topic_type_support< ::ProjectDataManagement::NuclearPreset >:: register_type(
|
|
::dds::domain::DomainParticipant& participant,
|
|
const std::string& type_name)
|
|
{
|
|
|
|
::rti::domain::register_type_plugin(
|
|
participant,
|
|
type_name,
|
|
::ProjectDataManagement::NuclearPresetPlugin_new,
|
|
::ProjectDataManagement::NuclearPresetPlugin_delete);
|
|
}
|
|
|
|
std::vector<char>& topic_type_support< ::ProjectDataManagement::NuclearPreset >::to_cdr_buffer(
|
|
std::vector<char>& buffer,
|
|
const ::ProjectDataManagement::NuclearPreset& sample,
|
|
::dds::core::policy::DataRepresentationId representation)
|
|
{
|
|
// First get the length of the buffer
|
|
unsigned int length = 0;
|
|
RTIBool ok = NuclearPresetPlugin_serialize_to_cdr_buffer(
|
|
NULL,
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to calculate cdr buffer size");
|
|
|
|
// Create a vector with that size and copy the cdr buffer into it
|
|
buffer.resize(length);
|
|
ok = NuclearPresetPlugin_serialize_to_cdr_buffer(
|
|
&buffer[0],
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to copy cdr buffer");
|
|
|
|
return buffer;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::NuclearPreset >::from_cdr_buffer(::ProjectDataManagement::NuclearPreset& sample,
|
|
const std::vector<char>& buffer)
|
|
{
|
|
|
|
RTIBool ok = NuclearPresetPlugin_deserialize_from_cdr_buffer(
|
|
&sample,
|
|
&buffer[0],
|
|
static_cast<unsigned int>(buffer.size()));
|
|
::rti::core::check_return_code(ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to create ::ProjectDataManagement::NuclearPreset from cdr buffer");
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::NuclearPreset >::reset_sample(::ProjectDataManagement::NuclearPreset& sample)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::reset_sample(sample);
|
|
|
|
sample.detonationValue = 0.0;
|
|
sample.impactRadius = 0.0;
|
|
sample.borderLengthInner = 0.0;
|
|
sample.borderLengthOuter = 0.0;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::NuclearPreset >::allocate_sample(::ProjectDataManagement::NuclearPreset& sample, int, int)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::allocate_sample(sample, -1, -1);
|
|
|
|
}
|
|
void topic_type_support< ::ProjectDataManagement::RadioGroup >:: register_type(
|
|
::dds::domain::DomainParticipant& participant,
|
|
const std::string& type_name)
|
|
{
|
|
|
|
::rti::domain::register_type_plugin(
|
|
participant,
|
|
type_name,
|
|
::ProjectDataManagement::RadioGroupPlugin_new,
|
|
::ProjectDataManagement::RadioGroupPlugin_delete);
|
|
}
|
|
|
|
std::vector<char>& topic_type_support< ::ProjectDataManagement::RadioGroup >::to_cdr_buffer(
|
|
std::vector<char>& buffer,
|
|
const ::ProjectDataManagement::RadioGroup& sample,
|
|
::dds::core::policy::DataRepresentationId representation)
|
|
{
|
|
// First get the length of the buffer
|
|
unsigned int length = 0;
|
|
RTIBool ok = RadioGroupPlugin_serialize_to_cdr_buffer(
|
|
NULL,
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to calculate cdr buffer size");
|
|
|
|
// Create a vector with that size and copy the cdr buffer into it
|
|
buffer.resize(length);
|
|
ok = RadioGroupPlugin_serialize_to_cdr_buffer(
|
|
&buffer[0],
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to copy cdr buffer");
|
|
|
|
return buffer;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::RadioGroup >::from_cdr_buffer(::ProjectDataManagement::RadioGroup& sample,
|
|
const std::vector<char>& buffer)
|
|
{
|
|
|
|
RTIBool ok = RadioGroupPlugin_deserialize_from_cdr_buffer(
|
|
&sample,
|
|
&buffer[0],
|
|
static_cast<unsigned int>(buffer.size()));
|
|
::rti::core::check_return_code(ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to create ::ProjectDataManagement::RadioGroup from cdr buffer");
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::RadioGroup >::reset_sample(::ProjectDataManagement::RadioGroup& sample)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::reset_sample(sample);
|
|
|
|
sample.base_group = 0;
|
|
sample.issi = 0;
|
|
sample.group_issi1 = 0;
|
|
sample.group_issi2 = 0;
|
|
sample.radioHostname = "";
|
|
sample.radioPort = 0;
|
|
sample.radioBackupHostname = "";
|
|
sample.radioBackupPort = 0;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::RadioGroup >::allocate_sample(::ProjectDataManagement::RadioGroup& sample, int, int)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::allocate_sample(sample, -1, -1);
|
|
|
|
::rti::topic::allocate_sample(sample.radioHostname, -1, -1);
|
|
::rti::topic::allocate_sample(sample.radioBackupHostname, -1, -1);
|
|
}
|
|
void topic_type_support< ::ProjectDataManagement::SanitationInjury >:: register_type(
|
|
::dds::domain::DomainParticipant& participant,
|
|
const std::string& type_name)
|
|
{
|
|
|
|
::rti::domain::register_type_plugin(
|
|
participant,
|
|
type_name,
|
|
::ProjectDataManagement::SanitationInjuryPlugin_new,
|
|
::ProjectDataManagement::SanitationInjuryPlugin_delete);
|
|
}
|
|
|
|
std::vector<char>& topic_type_support< ::ProjectDataManagement::SanitationInjury >::to_cdr_buffer(
|
|
std::vector<char>& buffer,
|
|
const ::ProjectDataManagement::SanitationInjury& sample,
|
|
::dds::core::policy::DataRepresentationId representation)
|
|
{
|
|
// First get the length of the buffer
|
|
unsigned int length = 0;
|
|
RTIBool ok = SanitationInjuryPlugin_serialize_to_cdr_buffer(
|
|
NULL,
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to calculate cdr buffer size");
|
|
|
|
// Create a vector with that size and copy the cdr buffer into it
|
|
buffer.resize(length);
|
|
ok = SanitationInjuryPlugin_serialize_to_cdr_buffer(
|
|
&buffer[0],
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to copy cdr buffer");
|
|
|
|
return buffer;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::SanitationInjury >::from_cdr_buffer(::ProjectDataManagement::SanitationInjury& sample,
|
|
const std::vector<char>& buffer)
|
|
{
|
|
|
|
RTIBool ok = SanitationInjuryPlugin_deserialize_from_cdr_buffer(
|
|
&sample,
|
|
&buffer[0],
|
|
static_cast<unsigned int>(buffer.size()));
|
|
::rti::core::check_return_code(ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to create ::ProjectDataManagement::SanitationInjury from cdr buffer");
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::SanitationInjury >::reset_sample(::ProjectDataManagement::SanitationInjury& sample)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::reset_sample(sample);
|
|
|
|
sample.kind = 0;
|
|
sample.place1 = 0;
|
|
sample.place2 = 0;
|
|
sample.vbg = 0;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::SanitationInjury >::allocate_sample(::ProjectDataManagement::SanitationInjury& sample, int, int)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::allocate_sample(sample, -1, -1);
|
|
|
|
}
|
|
void topic_type_support< ::ProjectDataManagement::SanitationInjuryKind >:: register_type(
|
|
::dds::domain::DomainParticipant& participant,
|
|
const std::string& type_name)
|
|
{
|
|
|
|
::rti::domain::register_type_plugin(
|
|
participant,
|
|
type_name,
|
|
::ProjectDataManagement::SanitationInjuryKindPlugin_new,
|
|
::ProjectDataManagement::SanitationInjuryKindPlugin_delete);
|
|
}
|
|
|
|
std::vector<char>& topic_type_support< ::ProjectDataManagement::SanitationInjuryKind >::to_cdr_buffer(
|
|
std::vector<char>& buffer,
|
|
const ::ProjectDataManagement::SanitationInjuryKind& sample,
|
|
::dds::core::policy::DataRepresentationId representation)
|
|
{
|
|
// First get the length of the buffer
|
|
unsigned int length = 0;
|
|
RTIBool ok = SanitationInjuryKindPlugin_serialize_to_cdr_buffer(
|
|
NULL,
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to calculate cdr buffer size");
|
|
|
|
// Create a vector with that size and copy the cdr buffer into it
|
|
buffer.resize(length);
|
|
ok = SanitationInjuryKindPlugin_serialize_to_cdr_buffer(
|
|
&buffer[0],
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to copy cdr buffer");
|
|
|
|
return buffer;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::SanitationInjuryKind >::from_cdr_buffer(::ProjectDataManagement::SanitationInjuryKind& sample,
|
|
const std::vector<char>& buffer)
|
|
{
|
|
|
|
RTIBool ok = SanitationInjuryKindPlugin_deserialize_from_cdr_buffer(
|
|
&sample,
|
|
&buffer[0],
|
|
static_cast<unsigned int>(buffer.size()));
|
|
::rti::core::check_return_code(ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to create ::ProjectDataManagement::SanitationInjuryKind from cdr buffer");
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::SanitationInjuryKind >::reset_sample(::ProjectDataManagement::SanitationInjuryKind& sample)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::reset_sample(sample);
|
|
|
|
sample.version = "";
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::SanitationInjuryKind >::allocate_sample(::ProjectDataManagement::SanitationInjuryKind& sample, int, int)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::allocate_sample(sample, -1, -1);
|
|
|
|
::rti::topic::allocate_sample(sample.version, -1, -1);
|
|
}
|
|
void topic_type_support< ::ProjectDataManagement::SanitationInjuryPlace1 >:: register_type(
|
|
::dds::domain::DomainParticipant& participant,
|
|
const std::string& type_name)
|
|
{
|
|
|
|
::rti::domain::register_type_plugin(
|
|
participant,
|
|
type_name,
|
|
::ProjectDataManagement::SanitationInjuryPlace1Plugin_new,
|
|
::ProjectDataManagement::SanitationInjuryPlace1Plugin_delete);
|
|
}
|
|
|
|
std::vector<char>& topic_type_support< ::ProjectDataManagement::SanitationInjuryPlace1 >::to_cdr_buffer(
|
|
std::vector<char>& buffer,
|
|
const ::ProjectDataManagement::SanitationInjuryPlace1& sample,
|
|
::dds::core::policy::DataRepresentationId representation)
|
|
{
|
|
// First get the length of the buffer
|
|
unsigned int length = 0;
|
|
RTIBool ok = SanitationInjuryPlace1Plugin_serialize_to_cdr_buffer(
|
|
NULL,
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to calculate cdr buffer size");
|
|
|
|
// Create a vector with that size and copy the cdr buffer into it
|
|
buffer.resize(length);
|
|
ok = SanitationInjuryPlace1Plugin_serialize_to_cdr_buffer(
|
|
&buffer[0],
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to copy cdr buffer");
|
|
|
|
return buffer;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::SanitationInjuryPlace1 >::from_cdr_buffer(::ProjectDataManagement::SanitationInjuryPlace1& sample,
|
|
const std::vector<char>& buffer)
|
|
{
|
|
|
|
RTIBool ok = SanitationInjuryPlace1Plugin_deserialize_from_cdr_buffer(
|
|
&sample,
|
|
&buffer[0],
|
|
static_cast<unsigned int>(buffer.size()));
|
|
::rti::core::check_return_code(ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to create ::ProjectDataManagement::SanitationInjuryPlace1 from cdr buffer");
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::SanitationInjuryPlace1 >::reset_sample(::ProjectDataManagement::SanitationInjuryPlace1& sample)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::reset_sample(sample);
|
|
|
|
sample.version = "";
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::SanitationInjuryPlace1 >::allocate_sample(::ProjectDataManagement::SanitationInjuryPlace1& sample, int, int)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::allocate_sample(sample, -1, -1);
|
|
|
|
::rti::topic::allocate_sample(sample.version, -1, -1);
|
|
}
|
|
void topic_type_support< ::ProjectDataManagement::SanitationInjuryPlace2 >:: register_type(
|
|
::dds::domain::DomainParticipant& participant,
|
|
const std::string& type_name)
|
|
{
|
|
|
|
::rti::domain::register_type_plugin(
|
|
participant,
|
|
type_name,
|
|
::ProjectDataManagement::SanitationInjuryPlace2Plugin_new,
|
|
::ProjectDataManagement::SanitationInjuryPlace2Plugin_delete);
|
|
}
|
|
|
|
std::vector<char>& topic_type_support< ::ProjectDataManagement::SanitationInjuryPlace2 >::to_cdr_buffer(
|
|
std::vector<char>& buffer,
|
|
const ::ProjectDataManagement::SanitationInjuryPlace2& sample,
|
|
::dds::core::policy::DataRepresentationId representation)
|
|
{
|
|
// First get the length of the buffer
|
|
unsigned int length = 0;
|
|
RTIBool ok = SanitationInjuryPlace2Plugin_serialize_to_cdr_buffer(
|
|
NULL,
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to calculate cdr buffer size");
|
|
|
|
// Create a vector with that size and copy the cdr buffer into it
|
|
buffer.resize(length);
|
|
ok = SanitationInjuryPlace2Plugin_serialize_to_cdr_buffer(
|
|
&buffer[0],
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to copy cdr buffer");
|
|
|
|
return buffer;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::SanitationInjuryPlace2 >::from_cdr_buffer(::ProjectDataManagement::SanitationInjuryPlace2& sample,
|
|
const std::vector<char>& buffer)
|
|
{
|
|
|
|
RTIBool ok = SanitationInjuryPlace2Plugin_deserialize_from_cdr_buffer(
|
|
&sample,
|
|
&buffer[0],
|
|
static_cast<unsigned int>(buffer.size()));
|
|
::rti::core::check_return_code(ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to create ::ProjectDataManagement::SanitationInjuryPlace2 from cdr buffer");
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::SanitationInjuryPlace2 >::reset_sample(::ProjectDataManagement::SanitationInjuryPlace2& sample)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::reset_sample(sample);
|
|
|
|
sample.version = "";
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::SanitationInjuryPlace2 >::allocate_sample(::ProjectDataManagement::SanitationInjuryPlace2& sample, int, int)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::allocate_sample(sample, -1, -1);
|
|
|
|
::rti::topic::allocate_sample(sample.version, -1, -1);
|
|
}
|
|
void topic_type_support< ::ProjectDataManagement::SanitationMaterial >:: register_type(
|
|
::dds::domain::DomainParticipant& participant,
|
|
const std::string& type_name)
|
|
{
|
|
|
|
::rti::domain::register_type_plugin(
|
|
participant,
|
|
type_name,
|
|
::ProjectDataManagement::SanitationMaterialPlugin_new,
|
|
::ProjectDataManagement::SanitationMaterialPlugin_delete);
|
|
}
|
|
|
|
std::vector<char>& topic_type_support< ::ProjectDataManagement::SanitationMaterial >::to_cdr_buffer(
|
|
std::vector<char>& buffer,
|
|
const ::ProjectDataManagement::SanitationMaterial& sample,
|
|
::dds::core::policy::DataRepresentationId representation)
|
|
{
|
|
// First get the length of the buffer
|
|
unsigned int length = 0;
|
|
RTIBool ok = SanitationMaterialPlugin_serialize_to_cdr_buffer(
|
|
NULL,
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to calculate cdr buffer size");
|
|
|
|
// Create a vector with that size and copy the cdr buffer into it
|
|
buffer.resize(length);
|
|
ok = SanitationMaterialPlugin_serialize_to_cdr_buffer(
|
|
&buffer[0],
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to copy cdr buffer");
|
|
|
|
return buffer;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::SanitationMaterial >::from_cdr_buffer(::ProjectDataManagement::SanitationMaterial& sample,
|
|
const std::vector<char>& buffer)
|
|
{
|
|
|
|
RTIBool ok = SanitationMaterialPlugin_deserialize_from_cdr_buffer(
|
|
&sample,
|
|
&buffer[0],
|
|
static_cast<unsigned int>(buffer.size()));
|
|
::rti::core::check_return_code(ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to create ::ProjectDataManagement::SanitationMaterial from cdr buffer");
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::SanitationMaterial >::reset_sample(::ProjectDataManagement::SanitationMaterial& sample)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::reset_sample(sample);
|
|
|
|
sample.description = "";
|
|
sample.version = "";
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::SanitationMaterial >::allocate_sample(::ProjectDataManagement::SanitationMaterial& sample, int, int)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::allocate_sample(sample, -1, -1);
|
|
|
|
::rti::topic::allocate_sample(sample.description, -1, -1);
|
|
::rti::topic::allocate_sample(sample.version, -1, -1);
|
|
}
|
|
void topic_type_support< ::ProjectDataManagement::SanitationProcedure >:: register_type(
|
|
::dds::domain::DomainParticipant& participant,
|
|
const std::string& type_name)
|
|
{
|
|
|
|
::rti::domain::register_type_plugin(
|
|
participant,
|
|
type_name,
|
|
::ProjectDataManagement::SanitationProcedurePlugin_new,
|
|
::ProjectDataManagement::SanitationProcedurePlugin_delete);
|
|
}
|
|
|
|
std::vector<char>& topic_type_support< ::ProjectDataManagement::SanitationProcedure >::to_cdr_buffer(
|
|
std::vector<char>& buffer,
|
|
const ::ProjectDataManagement::SanitationProcedure& sample,
|
|
::dds::core::policy::DataRepresentationId representation)
|
|
{
|
|
// First get the length of the buffer
|
|
unsigned int length = 0;
|
|
RTIBool ok = SanitationProcedurePlugin_serialize_to_cdr_buffer(
|
|
NULL,
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to calculate cdr buffer size");
|
|
|
|
// Create a vector with that size and copy the cdr buffer into it
|
|
buffer.resize(length);
|
|
ok = SanitationProcedurePlugin_serialize_to_cdr_buffer(
|
|
&buffer[0],
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to copy cdr buffer");
|
|
|
|
return buffer;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::SanitationProcedure >::from_cdr_buffer(::ProjectDataManagement::SanitationProcedure& sample,
|
|
const std::vector<char>& buffer)
|
|
{
|
|
|
|
RTIBool ok = SanitationProcedurePlugin_deserialize_from_cdr_buffer(
|
|
&sample,
|
|
&buffer[0],
|
|
static_cast<unsigned int>(buffer.size()));
|
|
::rti::core::check_return_code(ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to create ::ProjectDataManagement::SanitationProcedure from cdr buffer");
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::SanitationProcedure >::reset_sample(::ProjectDataManagement::SanitationProcedure& sample)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::reset_sample(sample);
|
|
|
|
sample.type = "";
|
|
sample.pdm_typeId = 0;
|
|
sample.minimumQualification = 0;
|
|
sample.longName = "";
|
|
sample.dataCode = 0ll;
|
|
sample.version = "";
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::SanitationProcedure >::allocate_sample(::ProjectDataManagement::SanitationProcedure& sample, int, int)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::allocate_sample(sample, -1, -1);
|
|
|
|
::rti::topic::allocate_sample(sample.type, -1, -1);
|
|
::rti::topic::allocate_sample(sample.longName, -1, -1);
|
|
::rti::topic::allocate_sample(sample.version, -1, -1);
|
|
}
|
|
void topic_type_support< ::ProjectDataManagement::TargetSubType >:: register_type(
|
|
::dds::domain::DomainParticipant& participant,
|
|
const std::string& type_name)
|
|
{
|
|
|
|
::rti::domain::register_type_plugin(
|
|
participant,
|
|
type_name,
|
|
::ProjectDataManagement::TargetSubTypePlugin_new,
|
|
::ProjectDataManagement::TargetSubTypePlugin_delete);
|
|
}
|
|
|
|
std::vector<char>& topic_type_support< ::ProjectDataManagement::TargetSubType >::to_cdr_buffer(
|
|
std::vector<char>& buffer,
|
|
const ::ProjectDataManagement::TargetSubType& sample,
|
|
::dds::core::policy::DataRepresentationId representation)
|
|
{
|
|
// First get the length of the buffer
|
|
unsigned int length = 0;
|
|
RTIBool ok = TargetSubTypePlugin_serialize_to_cdr_buffer(
|
|
NULL,
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to calculate cdr buffer size");
|
|
|
|
// Create a vector with that size and copy the cdr buffer into it
|
|
buffer.resize(length);
|
|
ok = TargetSubTypePlugin_serialize_to_cdr_buffer(
|
|
&buffer[0],
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to copy cdr buffer");
|
|
|
|
return buffer;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::TargetSubType >::from_cdr_buffer(::ProjectDataManagement::TargetSubType& sample,
|
|
const std::vector<char>& buffer)
|
|
{
|
|
|
|
RTIBool ok = TargetSubTypePlugin_deserialize_from_cdr_buffer(
|
|
&sample,
|
|
&buffer[0],
|
|
static_cast<unsigned int>(buffer.size()));
|
|
::rti::core::check_return_code(ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to create ::ProjectDataManagement::TargetSubType from cdr buffer");
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::TargetSubType >::reset_sample(::ProjectDataManagement::TargetSubType& sample)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::reset_sample(sample);
|
|
|
|
sample.abbreviation = "";
|
|
sample.properties = "";
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::TargetSubType >::allocate_sample(::ProjectDataManagement::TargetSubType& sample, int, int)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::allocate_sample(sample, -1, -1);
|
|
|
|
::rti::topic::allocate_sample(sample.abbreviation, -1, -1);
|
|
::rti::topic::allocate_sample(sample.properties, -1, -1);
|
|
}
|
|
void topic_type_support< ::ProjectDataManagement::TargetType >:: register_type(
|
|
::dds::domain::DomainParticipant& participant,
|
|
const std::string& type_name)
|
|
{
|
|
|
|
::rti::domain::register_type_plugin(
|
|
participant,
|
|
type_name,
|
|
::ProjectDataManagement::TargetTypePlugin_new,
|
|
::ProjectDataManagement::TargetTypePlugin_delete);
|
|
}
|
|
|
|
std::vector<char>& topic_type_support< ::ProjectDataManagement::TargetType >::to_cdr_buffer(
|
|
std::vector<char>& buffer,
|
|
const ::ProjectDataManagement::TargetType& sample,
|
|
::dds::core::policy::DataRepresentationId representation)
|
|
{
|
|
// First get the length of the buffer
|
|
unsigned int length = 0;
|
|
RTIBool ok = TargetTypePlugin_serialize_to_cdr_buffer(
|
|
NULL,
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to calculate cdr buffer size");
|
|
|
|
// Create a vector with that size and copy the cdr buffer into it
|
|
buffer.resize(length);
|
|
ok = TargetTypePlugin_serialize_to_cdr_buffer(
|
|
&buffer[0],
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to copy cdr buffer");
|
|
|
|
return buffer;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::TargetType >::from_cdr_buffer(::ProjectDataManagement::TargetType& sample,
|
|
const std::vector<char>& buffer)
|
|
{
|
|
|
|
RTIBool ok = TargetTypePlugin_deserialize_from_cdr_buffer(
|
|
&sample,
|
|
&buffer[0],
|
|
static_cast<unsigned int>(buffer.size()));
|
|
::rti::core::check_return_code(ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to create ::ProjectDataManagement::TargetType from cdr buffer");
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::TargetType >::reset_sample(::ProjectDataManagement::TargetType& sample)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::reset_sample(sample);
|
|
|
|
sample.abbreviation = "";
|
|
sample.properties = "";
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::TargetType >::allocate_sample(::ProjectDataManagement::TargetType& sample, int, int)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::allocate_sample(sample, -1, -1);
|
|
|
|
::rti::topic::allocate_sample(sample.abbreviation, -1, -1);
|
|
::rti::topic::allocate_sample(sample.properties, -1, -1);
|
|
}
|
|
void topic_type_support< ::ProjectDataManagement::TargetTypeTargetSubType >:: register_type(
|
|
::dds::domain::DomainParticipant& participant,
|
|
const std::string& type_name)
|
|
{
|
|
|
|
::rti::domain::register_type_plugin(
|
|
participant,
|
|
type_name,
|
|
::ProjectDataManagement::TargetTypeTargetSubTypePlugin_new,
|
|
::ProjectDataManagement::TargetTypeTargetSubTypePlugin_delete);
|
|
}
|
|
|
|
std::vector<char>& topic_type_support< ::ProjectDataManagement::TargetTypeTargetSubType >::to_cdr_buffer(
|
|
std::vector<char>& buffer,
|
|
const ::ProjectDataManagement::TargetTypeTargetSubType& sample,
|
|
::dds::core::policy::DataRepresentationId representation)
|
|
{
|
|
// First get the length of the buffer
|
|
unsigned int length = 0;
|
|
RTIBool ok = TargetTypeTargetSubTypePlugin_serialize_to_cdr_buffer(
|
|
NULL,
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to calculate cdr buffer size");
|
|
|
|
// Create a vector with that size and copy the cdr buffer into it
|
|
buffer.resize(length);
|
|
ok = TargetTypeTargetSubTypePlugin_serialize_to_cdr_buffer(
|
|
&buffer[0],
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to copy cdr buffer");
|
|
|
|
return buffer;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::TargetTypeTargetSubType >::from_cdr_buffer(::ProjectDataManagement::TargetTypeTargetSubType& sample,
|
|
const std::vector<char>& buffer)
|
|
{
|
|
|
|
RTIBool ok = TargetTypeTargetSubTypePlugin_deserialize_from_cdr_buffer(
|
|
&sample,
|
|
&buffer[0],
|
|
static_cast<unsigned int>(buffer.size()));
|
|
::rti::core::check_return_code(ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to create ::ProjectDataManagement::TargetTypeTargetSubType from cdr buffer");
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::TargetTypeTargetSubType >::reset_sample(::ProjectDataManagement::TargetTypeTargetSubType& sample)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBase >::reset_sample(sample);
|
|
|
|
sample.targetTypeId = 0;
|
|
sample.targetSubTypeId = 0;
|
|
sample.properties = "";
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::TargetTypeTargetSubType >::allocate_sample(::ProjectDataManagement::TargetTypeTargetSubType& sample, int, int)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBase >::allocate_sample(sample, -1, -1);
|
|
|
|
::rti::topic::allocate_sample(sample.properties, -1, -1);
|
|
}
|
|
void topic_type_support< ::ProjectDataManagement::TranslationBlob >:: register_type(
|
|
::dds::domain::DomainParticipant& participant,
|
|
const std::string& type_name)
|
|
{
|
|
|
|
::rti::domain::register_type_plugin(
|
|
participant,
|
|
type_name,
|
|
::ProjectDataManagement::TranslationBlobPlugin_new,
|
|
::ProjectDataManagement::TranslationBlobPlugin_delete);
|
|
}
|
|
|
|
std::vector<char>& topic_type_support< ::ProjectDataManagement::TranslationBlob >::to_cdr_buffer(
|
|
std::vector<char>& buffer,
|
|
const ::ProjectDataManagement::TranslationBlob& sample,
|
|
::dds::core::policy::DataRepresentationId representation)
|
|
{
|
|
// First get the length of the buffer
|
|
unsigned int length = 0;
|
|
RTIBool ok = TranslationBlobPlugin_serialize_to_cdr_buffer(
|
|
NULL,
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to calculate cdr buffer size");
|
|
|
|
// Create a vector with that size and copy the cdr buffer into it
|
|
buffer.resize(length);
|
|
ok = TranslationBlobPlugin_serialize_to_cdr_buffer(
|
|
&buffer[0],
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to copy cdr buffer");
|
|
|
|
return buffer;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::TranslationBlob >::from_cdr_buffer(::ProjectDataManagement::TranslationBlob& sample,
|
|
const std::vector<char>& buffer)
|
|
{
|
|
|
|
RTIBool ok = TranslationBlobPlugin_deserialize_from_cdr_buffer(
|
|
&sample,
|
|
&buffer[0],
|
|
static_cast<unsigned int>(buffer.size()));
|
|
::rti::core::check_return_code(ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to create ::ProjectDataManagement::TranslationBlob from cdr buffer");
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::TranslationBlob >::reset_sample(::ProjectDataManagement::TranslationBlob& sample)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBase >::reset_sample(sample);
|
|
|
|
::rti::topic::reset_sample(sample.payload);
|
|
sample.md5sum = "";
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::TranslationBlob >::allocate_sample(::ProjectDataManagement::TranslationBlob& sample, int, int)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBase >::allocate_sample(sample, -1, -1);
|
|
|
|
::rti::topic::allocate_sample(sample.payload, -1, -1);
|
|
::rti::topic::allocate_sample(sample.md5sum, -1, -1);
|
|
}
|
|
void topic_type_support< ::ProjectDataManagement::UpdateChargeNamesRequest >:: register_type(
|
|
::dds::domain::DomainParticipant& participant,
|
|
const std::string& type_name)
|
|
{
|
|
|
|
::rti::domain::register_type_plugin(
|
|
participant,
|
|
type_name,
|
|
::ProjectDataManagement::UpdateChargeNamesRequestPlugin_new,
|
|
::ProjectDataManagement::UpdateChargeNamesRequestPlugin_delete);
|
|
}
|
|
|
|
std::vector<char>& topic_type_support< ::ProjectDataManagement::UpdateChargeNamesRequest >::to_cdr_buffer(
|
|
std::vector<char>& buffer,
|
|
const ::ProjectDataManagement::UpdateChargeNamesRequest& sample,
|
|
::dds::core::policy::DataRepresentationId representation)
|
|
{
|
|
// First get the length of the buffer
|
|
unsigned int length = 0;
|
|
RTIBool ok = UpdateChargeNamesRequestPlugin_serialize_to_cdr_buffer(
|
|
NULL,
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to calculate cdr buffer size");
|
|
|
|
// Create a vector with that size and copy the cdr buffer into it
|
|
buffer.resize(length);
|
|
ok = UpdateChargeNamesRequestPlugin_serialize_to_cdr_buffer(
|
|
&buffer[0],
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to copy cdr buffer");
|
|
|
|
return buffer;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::UpdateChargeNamesRequest >::from_cdr_buffer(::ProjectDataManagement::UpdateChargeNamesRequest& sample,
|
|
const std::vector<char>& buffer)
|
|
{
|
|
|
|
RTIBool ok = UpdateChargeNamesRequestPlugin_deserialize_from_cdr_buffer(
|
|
&sample,
|
|
&buffer[0],
|
|
static_cast<unsigned int>(buffer.size()));
|
|
::rti::core::check_return_code(ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to create ::ProjectDataManagement::UpdateChargeNamesRequest from cdr buffer");
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::UpdateChargeNamesRequest >::reset_sample(::ProjectDataManagement::UpdateChargeNamesRequest& sample)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::reset_sample(sample);
|
|
|
|
sample.shortName = "";
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::UpdateChargeNamesRequest >::allocate_sample(::ProjectDataManagement::UpdateChargeNamesRequest& sample, int, int)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::allocate_sample(sample, -1, -1);
|
|
|
|
::rti::topic::allocate_sample(sample.shortName, -1, -1);
|
|
}
|
|
void topic_type_support< ::ProjectDataManagement::VulnerabilityKind >:: register_type(
|
|
::dds::domain::DomainParticipant& participant,
|
|
const std::string& type_name)
|
|
{
|
|
|
|
::rti::domain::register_type_plugin(
|
|
participant,
|
|
type_name,
|
|
::ProjectDataManagement::VulnerabilityKindPlugin_new,
|
|
::ProjectDataManagement::VulnerabilityKindPlugin_delete);
|
|
}
|
|
|
|
std::vector<char>& topic_type_support< ::ProjectDataManagement::VulnerabilityKind >::to_cdr_buffer(
|
|
std::vector<char>& buffer,
|
|
const ::ProjectDataManagement::VulnerabilityKind& sample,
|
|
::dds::core::policy::DataRepresentationId representation)
|
|
{
|
|
// First get the length of the buffer
|
|
unsigned int length = 0;
|
|
RTIBool ok = VulnerabilityKindPlugin_serialize_to_cdr_buffer(
|
|
NULL,
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to calculate cdr buffer size");
|
|
|
|
// Create a vector with that size and copy the cdr buffer into it
|
|
buffer.resize(length);
|
|
ok = VulnerabilityKindPlugin_serialize_to_cdr_buffer(
|
|
&buffer[0],
|
|
&length,
|
|
&sample,
|
|
representation);
|
|
::rti::core::check_return_code(
|
|
ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to copy cdr buffer");
|
|
|
|
return buffer;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::VulnerabilityKind >::from_cdr_buffer(::ProjectDataManagement::VulnerabilityKind& sample,
|
|
const std::vector<char>& buffer)
|
|
{
|
|
|
|
RTIBool ok = VulnerabilityKindPlugin_deserialize_from_cdr_buffer(
|
|
&sample,
|
|
&buffer[0],
|
|
static_cast<unsigned int>(buffer.size()));
|
|
::rti::core::check_return_code(ok ? DDS_RETCODE_OK : DDS_RETCODE_ERROR,
|
|
"Failed to create ::ProjectDataManagement::VulnerabilityKind from cdr buffer");
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::VulnerabilityKind >::reset_sample(::ProjectDataManagement::VulnerabilityKind& sample)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::reset_sample(sample);
|
|
|
|
sample.playerTypeClassId = 0;
|
|
sample.taVulnerabilityKind = 0;
|
|
;
|
|
sample.vulnerabilityClassId = ProjectDataManagement::VulnerabilityClass::VulnerabilityClass_Unknown;
|
|
}
|
|
|
|
void topic_type_support< ::ProjectDataManagement::VulnerabilityKind >::allocate_sample(::ProjectDataManagement::VulnerabilityKind& sample, int, int)
|
|
{
|
|
// Initialize base
|
|
topic_type_support< ::ProjectDataManagement::PdmBaseName >::allocate_sample(sample, -1, -1);
|
|
|
|
::rti::topic::allocate_sample(sample.vulnerabilityClassId, -1, -1);
|
|
}
|
|
}
|
|
}
|
|
|
|
#endif // NDDS_STANDALONE_TYPE
|