diff options
Diffstat (limited to 'api/franca/navigation/src-gen/org/genivi/navigation/poiservice/POIServiceTypes.cpp')
-rw-r--r-- | api/franca/navigation/src-gen/org/genivi/navigation/poiservice/POIServiceTypes.cpp | 166 |
1 files changed, 0 insertions, 166 deletions
diff --git a/api/franca/navigation/src-gen/org/genivi/navigation/poiservice/POIServiceTypes.cpp b/api/franca/navigation/src-gen/org/genivi/navigation/poiservice/POIServiceTypes.cpp index 3c7bc3c..021a56e 100644 --- a/api/franca/navigation/src-gen/org/genivi/navigation/poiservice/POIServiceTypes.cpp +++ b/api/franca/navigation/src-gen/org/genivi/navigation/poiservice/POIServiceTypes.cpp @@ -28,172 +28,6 @@ namespace POIServiceTypes { - -AttributeValueStruct* AttributeValueStruct::createInstance(const uint32_t& serialId) { - if (serialId == SERIAL_ID) - return new AttributeValueStruct; - - const std::function<AttributeValueStruct*()> createDerivedInstanceFuncs[] = { - [&]() { return AttributeValueStructInt32::createInstance(serialId); }, - [&]() { return AttributeValueStructString::createInstance(serialId); }, - [&]() { return AttributeValueStructBoolean::createInstance(serialId); } - }; - - for (auto& createDerivedInstanceFunc : createDerivedInstanceFuncs) { - AttributeValueStruct* derivedInstance = createDerivedInstanceFunc(); - if (derivedInstance != NULL) - return derivedInstance; - } - - return NULL; -} - -uint32_t AttributeValueStruct::getSerialId() const { - return SERIAL_ID; -} - -void AttributeValueStruct::createTypeSignature(CommonAPI::TypeOutputStream& typeOutputStream) const { - AttributeValueStruct::writeToTypeOutputStream(typeOutputStream); -} - -bool operator==(const AttributeValueStruct& lhs, const AttributeValueStruct& rhs) { - if (&lhs == &rhs) - return true; - - return - true - ; -} - -void AttributeValueStruct::readFromInputStream(CommonAPI::InputStream& inputStream) { -} - -void AttributeValueStruct::writeToOutputStream(CommonAPI::OutputStream& outputStream) const { -} - -AttributeValueStructInt32::AttributeValueStructInt32(const int32_t& intValueValue): - AttributeValueStruct(), - intValue(intValueValue) -{ -} - -AttributeValueStructInt32* AttributeValueStructInt32::createInstance(const uint32_t& serialId) { - if (serialId == SERIAL_ID) - return new AttributeValueStructInt32; - - return NULL; -} - -uint32_t AttributeValueStructInt32::getSerialId() const { - return SERIAL_ID; -} - -void AttributeValueStructInt32::createTypeSignature(CommonAPI::TypeOutputStream& typeOutputStream) const { - AttributeValueStructInt32::writeToTypeOutputStream(typeOutputStream); -} - -bool operator==(const AttributeValueStructInt32& lhs, const AttributeValueStructInt32& rhs) { - if (&lhs == &rhs) - return true; - - return - static_cast<AttributeValueStructInt32::AttributeValueStruct>(lhs) == static_cast<AttributeValueStructInt32::AttributeValueStruct>(rhs) && - lhs.intValue == rhs.intValue - ; -} - -void AttributeValueStructInt32::readFromInputStream(CommonAPI::InputStream& inputStream) { - AttributeValueStruct::readFromInputStream(inputStream); - inputStream >> intValue; -} - -void AttributeValueStructInt32::writeToOutputStream(CommonAPI::OutputStream& outputStream) const { - AttributeValueStruct::writeToOutputStream(outputStream); - outputStream << intValue; -} - -AttributeValueStructString::AttributeValueStructString(const std::string& stringValueValue): - AttributeValueStruct(), - stringValue(stringValueValue) -{ -} - -AttributeValueStructString* AttributeValueStructString::createInstance(const uint32_t& serialId) { - if (serialId == SERIAL_ID) - return new AttributeValueStructString; - - return NULL; -} - -uint32_t AttributeValueStructString::getSerialId() const { - return SERIAL_ID; -} - -void AttributeValueStructString::createTypeSignature(CommonAPI::TypeOutputStream& typeOutputStream) const { - AttributeValueStructString::writeToTypeOutputStream(typeOutputStream); -} - -bool operator==(const AttributeValueStructString& lhs, const AttributeValueStructString& rhs) { - if (&lhs == &rhs) - return true; - - return - static_cast<AttributeValueStructString::AttributeValueStruct>(lhs) == static_cast<AttributeValueStructString::AttributeValueStruct>(rhs) && - lhs.stringValue == rhs.stringValue - ; -} - -void AttributeValueStructString::readFromInputStream(CommonAPI::InputStream& inputStream) { - AttributeValueStruct::readFromInputStream(inputStream); - inputStream >> stringValue; -} - -void AttributeValueStructString::writeToOutputStream(CommonAPI::OutputStream& outputStream) const { - AttributeValueStruct::writeToOutputStream(outputStream); - outputStream << stringValue; -} - -AttributeValueStructBoolean::AttributeValueStructBoolean(const bool& boolValueValue): - AttributeValueStruct(), - boolValue(boolValueValue) -{ -} - -AttributeValueStructBoolean* AttributeValueStructBoolean::createInstance(const uint32_t& serialId) { - if (serialId == SERIAL_ID) - return new AttributeValueStructBoolean; - - return NULL; -} - -uint32_t AttributeValueStructBoolean::getSerialId() const { - return SERIAL_ID; -} - -void AttributeValueStructBoolean::createTypeSignature(CommonAPI::TypeOutputStream& typeOutputStream) const { - AttributeValueStructBoolean::writeToTypeOutputStream(typeOutputStream); -} - -bool operator==(const AttributeValueStructBoolean& lhs, const AttributeValueStructBoolean& rhs) { - if (&lhs == &rhs) - return true; - - return - static_cast<AttributeValueStructBoolean::AttributeValueStruct>(lhs) == static_cast<AttributeValueStructBoolean::AttributeValueStruct>(rhs) && - lhs.boolValue == rhs.boolValue - ; -} - -void AttributeValueStructBoolean::readFromInputStream(CommonAPI::InputStream& inputStream) { - AttributeValueStruct::readFromInputStream(inputStream); - inputStream >> boolValue; -} - -void AttributeValueStructBoolean::writeToOutputStream(CommonAPI::OutputStream& outputStream) const { - AttributeValueStruct::writeToOutputStream(outputStream); - outputStream << boolValue; -} - Details::Details(const std::vector<CategoryID>& parentsIdValue, const Icon& iconsValue, const std::string& nameValue, const std::string& shortDescValue, const Media& mediaValue): parentsId(parentsIdValue), icons(iconsValue), |