http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/d55608f1/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/applicationDeploymentModel_types.h ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/applicationDeploymentModel_types.h b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/applicationDeploymentModel_types.h deleted file mode 100644 index 9692d59..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/applicationDeploymentModel_types.h +++ /dev/null @@ -1,314 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Autogenerated by Thrift Compiler (0.9.1) - * - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING - * @generated - */ -#ifndef applicationDeploymentModel_TYPES_H -#define applicationDeploymentModel_TYPES_H - -#include <thrift/Thrift.h> -#include <thrift/TApplicationException.h> -#include <thrift/protocol/TProtocol.h> -#include <thrift/transport/TTransport.h> - -#include <thrift/cxxfunctional.h> - - -namespace apache { namespace airavata { namespace model { namespace appcatalog { namespace appdeployment { - -struct ApplicationParallelismType { - enum type { - SERIAL = 0, - MPI = 1, - OPENMP = 2, - OPENMP_MPI = 3 - }; -}; - -extern const std::map<int, const char*> _ApplicationParallelismType_VALUES_TO_NAMES; - - -class SetEnvPaths { - public: - - static const char* ascii_fingerprint; // = "07A9615F837F7D0A952B595DD3020972"; - static const uint8_t binary_fingerprint[16]; // = {0x07,0xA9,0x61,0x5F,0x83,0x7F,0x7D,0x0A,0x95,0x2B,0x59,0x5D,0xD3,0x02,0x09,0x72}; - - SetEnvPaths() : name(), value() { - } - - virtual ~SetEnvPaths() throw() {} - - std::string name; - std::string value; - - void __set_name(const std::string& val) { - name = val; - } - - void __set_value(const std::string& val) { - value = val; - } - - bool operator == (const SetEnvPaths & rhs) const - { - if (!(name == rhs.name)) - return false; - if (!(value == rhs.value)) - return false; - return true; - } - bool operator != (const SetEnvPaths &rhs) const { - return !(*this == rhs); - } - - bool operator < (const SetEnvPaths & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - -}; - -void swap(SetEnvPaths &a, SetEnvPaths &b); - -typedef struct _ApplicationModule__isset { - _ApplicationModule__isset() : appModuleVersion(false), appModuleDescription(false) {} - bool appModuleVersion; - bool appModuleDescription; -} _ApplicationModule__isset; - -class ApplicationModule { - public: - - static const char* ascii_fingerprint; // = "FED0FBEAA0C90D1589E8B650561B7675"; - static const uint8_t binary_fingerprint[16]; // = {0xFE,0xD0,0xFB,0xEA,0xA0,0xC9,0x0D,0x15,0x89,0xE8,0xB6,0x50,0x56,0x1B,0x76,0x75}; - - ApplicationModule() : appModuleId("DO_NOT_SET_AT_CLIENTS"), appModuleName(), appModuleVersion(), appModuleDescription() { - } - - virtual ~ApplicationModule() throw() {} - - std::string appModuleId; - std::string appModuleName; - std::string appModuleVersion; - std::string appModuleDescription; - - _ApplicationModule__isset __isset; - - void __set_appModuleId(const std::string& val) { - appModuleId = val; - } - - void __set_appModuleName(const std::string& val) { - appModuleName = val; - } - - void __set_appModuleVersion(const std::string& val) { - appModuleVersion = val; - __isset.appModuleVersion = true; - } - - void __set_appModuleDescription(const std::string& val) { - appModuleDescription = val; - __isset.appModuleDescription = true; - } - - bool operator == (const ApplicationModule & rhs) const - { - if (!(appModuleId == rhs.appModuleId)) - return false; - if (!(appModuleName == rhs.appModuleName)) - return false; - if (__isset.appModuleVersion != rhs.__isset.appModuleVersion) - return false; - else if (__isset.appModuleVersion && !(appModuleVersion == rhs.appModuleVersion)) - return false; - if (__isset.appModuleDescription != rhs.__isset.appModuleDescription) - return false; - else if (__isset.appModuleDescription && !(appModuleDescription == rhs.appModuleDescription)) - return false; - return true; - } - bool operator != (const ApplicationModule &rhs) const { - return !(*this == rhs); - } - - bool operator < (const ApplicationModule & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - -}; - -void swap(ApplicationModule &a, ApplicationModule &b); - -typedef struct _ApplicationDeploymentDescription__isset { - _ApplicationDeploymentDescription__isset() : appDeploymentDescription(false), moduleLoadCmds(false), libPrependPaths(false), libAppendPaths(false), setEnvironment(false), preJobCommands(false), postJobCommands(false) {} - bool appDeploymentDescription; - bool moduleLoadCmds; - bool libPrependPaths; - bool libAppendPaths; - bool setEnvironment; - bool preJobCommands; - bool postJobCommands; -} _ApplicationDeploymentDescription__isset; - -class ApplicationDeploymentDescription { - public: - - static const char* ascii_fingerprint; // = "3B2F93AE9F0E6A621AF867419ADD9E5A"; - static const uint8_t binary_fingerprint[16]; // = {0x3B,0x2F,0x93,0xAE,0x9F,0x0E,0x6A,0x62,0x1A,0xF8,0x67,0x41,0x9A,0xDD,0x9E,0x5A}; - - ApplicationDeploymentDescription() : appDeploymentId("DO_NOT_SET_AT_CLIENTS"), appModuleId(), computeHostId(), executablePath(), parallelism((ApplicationParallelismType::type)0), appDeploymentDescription() { - parallelism = (ApplicationParallelismType::type)0; - - } - - virtual ~ApplicationDeploymentDescription() throw() {} - - std::string appDeploymentId; - std::string appModuleId; - std::string computeHostId; - std::string executablePath; - ApplicationParallelismType::type parallelism; - std::string appDeploymentDescription; - std::vector<std::string> moduleLoadCmds; - std::vector<SetEnvPaths> libPrependPaths; - std::vector<SetEnvPaths> libAppendPaths; - std::vector<SetEnvPaths> setEnvironment; - std::vector<std::string> preJobCommands; - std::vector<std::string> postJobCommands; - - _ApplicationDeploymentDescription__isset __isset; - - void __set_appDeploymentId(const std::string& val) { - appDeploymentId = val; - } - - void __set_appModuleId(const std::string& val) { - appModuleId = val; - } - - void __set_computeHostId(const std::string& val) { - computeHostId = val; - } - - void __set_executablePath(const std::string& val) { - executablePath = val; - } - - void __set_parallelism(const ApplicationParallelismType::type val) { - parallelism = val; - } - - void __set_appDeploymentDescription(const std::string& val) { - appDeploymentDescription = val; - __isset.appDeploymentDescription = true; - } - - void __set_moduleLoadCmds(const std::vector<std::string> & val) { - moduleLoadCmds = val; - __isset.moduleLoadCmds = true; - } - - void __set_libPrependPaths(const std::vector<SetEnvPaths> & val) { - libPrependPaths = val; - __isset.libPrependPaths = true; - } - - void __set_libAppendPaths(const std::vector<SetEnvPaths> & val) { - libAppendPaths = val; - __isset.libAppendPaths = true; - } - - void __set_setEnvironment(const std::vector<SetEnvPaths> & val) { - setEnvironment = val; - __isset.setEnvironment = true; - } - - void __set_preJobCommands(const std::vector<std::string> & val) { - preJobCommands = val; - __isset.preJobCommands = true; - } - - void __set_postJobCommands(const std::vector<std::string> & val) { - postJobCommands = val; - __isset.postJobCommands = true; - } - - bool operator == (const ApplicationDeploymentDescription & rhs) const - { - if (!(appDeploymentId == rhs.appDeploymentId)) - return false; - if (!(appModuleId == rhs.appModuleId)) - return false; - if (!(computeHostId == rhs.computeHostId)) - return false; - if (!(executablePath == rhs.executablePath)) - return false; - if (!(parallelism == rhs.parallelism)) - return false; - if (__isset.appDeploymentDescription != rhs.__isset.appDeploymentDescription) - return false; - else if (__isset.appDeploymentDescription && !(appDeploymentDescription == rhs.appDeploymentDescription)) - return false; - if (__isset.moduleLoadCmds != rhs.__isset.moduleLoadCmds) - return false; - else if (__isset.moduleLoadCmds && !(moduleLoadCmds == rhs.moduleLoadCmds)) - return false; - if (__isset.libPrependPaths != rhs.__isset.libPrependPaths) - return false; - else if (__isset.libPrependPaths && !(libPrependPaths == rhs.libPrependPaths)) - return false; - if (__isset.libAppendPaths != rhs.__isset.libAppendPaths) - return false; - else if (__isset.libAppendPaths && !(libAppendPaths == rhs.libAppendPaths)) - return false; - if (__isset.setEnvironment != rhs.__isset.setEnvironment) - return false; - else if (__isset.setEnvironment && !(setEnvironment == rhs.setEnvironment)) - return false; - if (__isset.preJobCommands != rhs.__isset.preJobCommands) - return false; - else if (__isset.preJobCommands && !(preJobCommands == rhs.preJobCommands)) - return false; - if (__isset.postJobCommands != rhs.__isset.postJobCommands) - return false; - else if (__isset.postJobCommands && !(postJobCommands == rhs.postJobCommands)) - return false; - return true; - } - bool operator != (const ApplicationDeploymentDescription &rhs) const { - return !(*this == rhs); - } - - bool operator < (const ApplicationDeploymentDescription & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - -}; - -void swap(ApplicationDeploymentDescription &a, ApplicationDeploymentDescription &b); - -}}}}} // namespace - -#endif
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/d55608f1/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/applicationInterfaceModel_constants.cpp ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/applicationInterfaceModel_constants.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/applicationInterfaceModel_constants.cpp deleted file mode 100644 index f6ce222..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/applicationInterfaceModel_constants.cpp +++ /dev/null @@ -1,36 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Autogenerated by Thrift Compiler (0.9.1) - * - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING - * @generated - */ -#include "applicationInterfaceModel_constants.h" - -namespace apache { namespace airavata { namespace model { namespace appcatalog { namespace appinterface { - -const applicationInterfaceModelConstants g_applicationInterfaceModel_constants; - -applicationInterfaceModelConstants::applicationInterfaceModelConstants() { - DEFAULT_ID = "DO_NOT_SET_AT_CLIENTS"; - -} - -}}}}} // namespace - http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/d55608f1/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/applicationInterfaceModel_constants.h ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/applicationInterfaceModel_constants.h b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/applicationInterfaceModel_constants.h deleted file mode 100644 index 34684b2..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/applicationInterfaceModel_constants.h +++ /dev/null @@ -1,42 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Autogenerated by Thrift Compiler (0.9.1) - * - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING - * @generated - */ -#ifndef applicationInterfaceModel_CONSTANTS_H -#define applicationInterfaceModel_CONSTANTS_H - -#include "applicationInterfaceModel_types.h" - -namespace apache { namespace airavata { namespace model { namespace appcatalog { namespace appinterface { - -class applicationInterfaceModelConstants { - public: - applicationInterfaceModelConstants(); - - std::string DEFAULT_ID; -}; - -extern const applicationInterfaceModelConstants g_applicationInterfaceModel_constants; - -}}}}} // namespace - -#endif http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/d55608f1/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/applicationInterfaceModel_types.cpp ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/applicationInterfaceModel_types.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/applicationInterfaceModel_types.cpp deleted file mode 100644 index 1991bda..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/applicationInterfaceModel_types.cpp +++ /dev/null @@ -1,631 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Autogenerated by Thrift Compiler (0.9.1) - * - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING - * @generated - */ -#include "applicationInterfaceModel_types.h" - -#include <algorithm> - -namespace apache { namespace airavata { namespace model { namespace appcatalog { namespace appinterface { - -int _kDataTypeValues[] = { - DataType::STRING, - DataType::INTEGER, - DataType::FLOAT, - DataType::URI, - DataType::STDOUT, - DataType::STDERR -}; -const char* _kDataTypeNames[] = { - "STRING", - "INTEGER", - "FLOAT", - "URI", - "STDOUT", - "STDERR" -}; -const std::map<int, const char*> _DataType_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(6, _kDataTypeValues, _kDataTypeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -const char* InputDataObjectType::ascii_fingerprint = "22DB8CAA7C1FBBFDD0CA6E19790BA799"; -const uint8_t InputDataObjectType::binary_fingerprint[16] = {0x22,0xDB,0x8C,0xAA,0x7C,0x1F,0xBB,0xFD,0xD0,0xCA,0x6E,0x19,0x79,0x0B,0xA7,0x99}; - -uint32_t InputDataObjectType::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - bool isset_name = false; - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->name); - isset_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->value); - this->__isset.value = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast0; - xfer += iprot->readI32(ecast0); - this->type = (DataType::type)ecast0; - this->__isset.type = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->applicationArgument); - this->__isset.applicationArgument = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->standardInput); - this->__isset.standardInput = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->userFriendlyDescription); - this->__isset.userFriendlyDescription = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->metaData); - this->__isset.metaData = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 8: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->inputOrder); - this->__isset.inputOrder = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 9: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->isRequired); - this->__isset.isRequired = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 10: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->requiredToAddedToCommandLine); - this->__isset.requiredToAddedToCommandLine = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 11: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->dataStaged); - this->__isset.dataStaged = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - if (!isset_name) - throw TProtocolException(TProtocolException::INVALID_DATA); - return xfer; -} - -uint32_t InputDataObjectType::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - xfer += oprot->writeStructBegin("InputDataObjectType"); - - xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->name); - xfer += oprot->writeFieldEnd(); - - if (this->__isset.value) { - xfer += oprot->writeFieldBegin("value", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->value); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.type) { - xfer += oprot->writeFieldBegin("type", ::apache::thrift::protocol::T_I32, 3); - xfer += oprot->writeI32((int32_t)this->type); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.applicationArgument) { - xfer += oprot->writeFieldBegin("applicationArgument", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString(this->applicationArgument); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.standardInput) { - xfer += oprot->writeFieldBegin("standardInput", ::apache::thrift::protocol::T_BOOL, 5); - xfer += oprot->writeBool(this->standardInput); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.userFriendlyDescription) { - xfer += oprot->writeFieldBegin("userFriendlyDescription", ::apache::thrift::protocol::T_STRING, 6); - xfer += oprot->writeString(this->userFriendlyDescription); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.metaData) { - xfer += oprot->writeFieldBegin("metaData", ::apache::thrift::protocol::T_STRING, 7); - xfer += oprot->writeString(this->metaData); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.inputOrder) { - xfer += oprot->writeFieldBegin("inputOrder", ::apache::thrift::protocol::T_I32, 8); - xfer += oprot->writeI32(this->inputOrder); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.isRequired) { - xfer += oprot->writeFieldBegin("isRequired", ::apache::thrift::protocol::T_BOOL, 9); - xfer += oprot->writeBool(this->isRequired); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.requiredToAddedToCommandLine) { - xfer += oprot->writeFieldBegin("requiredToAddedToCommandLine", ::apache::thrift::protocol::T_BOOL, 10); - xfer += oprot->writeBool(this->requiredToAddedToCommandLine); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.dataStaged) { - xfer += oprot->writeFieldBegin("dataStaged", ::apache::thrift::protocol::T_BOOL, 11); - xfer += oprot->writeBool(this->dataStaged); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(InputDataObjectType &a, InputDataObjectType &b) { - using ::std::swap; - swap(a.name, b.name); - swap(a.value, b.value); - swap(a.type, b.type); - swap(a.applicationArgument, b.applicationArgument); - swap(a.standardInput, b.standardInput); - swap(a.userFriendlyDescription, b.userFriendlyDescription); - swap(a.metaData, b.metaData); - swap(a.inputOrder, b.inputOrder); - swap(a.isRequired, b.isRequired); - swap(a.requiredToAddedToCommandLine, b.requiredToAddedToCommandLine); - swap(a.dataStaged, b.dataStaged); - swap(a.__isset, b.__isset); -} - -const char* OutputDataObjectType::ascii_fingerprint = "3259D81CA906AEEBC4D76ED47386A18B"; -const uint8_t OutputDataObjectType::binary_fingerprint[16] = {0x32,0x59,0xD8,0x1C,0xA9,0x06,0xAE,0xEB,0xC4,0xD7,0x6E,0xD4,0x73,0x86,0xA1,0x8B}; - -uint32_t OutputDataObjectType::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - bool isset_name = false; - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->name); - isset_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->value); - this->__isset.value = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1; - xfer += iprot->readI32(ecast1); - this->type = (DataType::type)ecast1; - this->__isset.type = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->applicationArgument); - this->__isset.applicationArgument = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->isRequired); - this->__isset.isRequired = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->requiredToAddedToCommandLine); - this->__isset.requiredToAddedToCommandLine = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->dataMovement); - this->__isset.dataMovement = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 8: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->location); - this->__isset.location = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 9: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->searchQuery); - this->__isset.searchQuery = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - if (!isset_name) - throw TProtocolException(TProtocolException::INVALID_DATA); - return xfer; -} - -uint32_t OutputDataObjectType::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - xfer += oprot->writeStructBegin("OutputDataObjectType"); - - xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->name); - xfer += oprot->writeFieldEnd(); - - if (this->__isset.value) { - xfer += oprot->writeFieldBegin("value", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->value); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.type) { - xfer += oprot->writeFieldBegin("type", ::apache::thrift::protocol::T_I32, 3); - xfer += oprot->writeI32((int32_t)this->type); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.applicationArgument) { - xfer += oprot->writeFieldBegin("applicationArgument", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString(this->applicationArgument); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.isRequired) { - xfer += oprot->writeFieldBegin("isRequired", ::apache::thrift::protocol::T_BOOL, 5); - xfer += oprot->writeBool(this->isRequired); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.requiredToAddedToCommandLine) { - xfer += oprot->writeFieldBegin("requiredToAddedToCommandLine", ::apache::thrift::protocol::T_BOOL, 6); - xfer += oprot->writeBool(this->requiredToAddedToCommandLine); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.dataMovement) { - xfer += oprot->writeFieldBegin("dataMovement", ::apache::thrift::protocol::T_BOOL, 7); - xfer += oprot->writeBool(this->dataMovement); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.location) { - xfer += oprot->writeFieldBegin("location", ::apache::thrift::protocol::T_STRING, 8); - xfer += oprot->writeString(this->location); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.searchQuery) { - xfer += oprot->writeFieldBegin("searchQuery", ::apache::thrift::protocol::T_STRING, 9); - xfer += oprot->writeString(this->searchQuery); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(OutputDataObjectType &a, OutputDataObjectType &b) { - using ::std::swap; - swap(a.name, b.name); - swap(a.value, b.value); - swap(a.type, b.type); - swap(a.applicationArgument, b.applicationArgument); - swap(a.isRequired, b.isRequired); - swap(a.requiredToAddedToCommandLine, b.requiredToAddedToCommandLine); - swap(a.dataMovement, b.dataMovement); - swap(a.location, b.location); - swap(a.searchQuery, b.searchQuery); - swap(a.__isset, b.__isset); -} - -const char* ApplicationInterfaceDescription::ascii_fingerprint = "C21011258B830B950ECA4A73DCB61630"; -const uint8_t ApplicationInterfaceDescription::binary_fingerprint[16] = {0xC2,0x10,0x11,0x25,0x8B,0x83,0x0B,0x95,0x0E,0xCA,0x4A,0x73,0xDC,0xB6,0x16,0x30}; - -uint32_t ApplicationInterfaceDescription::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - bool isset_applicationInterfaceId = false; - bool isset_applicationName = false; - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->applicationInterfaceId); - isset_applicationInterfaceId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->applicationName); - isset_applicationName = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->applicationDescription); - this->__isset.applicationDescription = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->applicationModules.clear(); - uint32_t _size2; - ::apache::thrift::protocol::TType _etype5; - xfer += iprot->readListBegin(_etype5, _size2); - this->applicationModules.resize(_size2); - uint32_t _i6; - for (_i6 = 0; _i6 < _size2; ++_i6) - { - xfer += iprot->readString(this->applicationModules[_i6]); - } - xfer += iprot->readListEnd(); - } - this->__isset.applicationModules = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->applicationInputs.clear(); - uint32_t _size7; - ::apache::thrift::protocol::TType _etype10; - xfer += iprot->readListBegin(_etype10, _size7); - this->applicationInputs.resize(_size7); - uint32_t _i11; - for (_i11 = 0; _i11 < _size7; ++_i11) - { - xfer += this->applicationInputs[_i11].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.applicationInputs = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->applicationOutputs.clear(); - uint32_t _size12; - ::apache::thrift::protocol::TType _etype15; - xfer += iprot->readListBegin(_etype15, _size12); - this->applicationOutputs.resize(_size12); - uint32_t _i16; - for (_i16 = 0; _i16 < _size12; ++_i16) - { - xfer += this->applicationOutputs[_i16].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.applicationOutputs = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - if (!isset_applicationInterfaceId) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_applicationName) - throw TProtocolException(TProtocolException::INVALID_DATA); - return xfer; -} - -uint32_t ApplicationInterfaceDescription::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ApplicationInterfaceDescription"); - - xfer += oprot->writeFieldBegin("applicationInterfaceId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->applicationInterfaceId); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("applicationName", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->applicationName); - xfer += oprot->writeFieldEnd(); - - if (this->__isset.applicationDescription) { - xfer += oprot->writeFieldBegin("applicationDescription", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->applicationDescription); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.applicationModules) { - xfer += oprot->writeFieldBegin("applicationModules", ::apache::thrift::protocol::T_LIST, 4); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->applicationModules.size())); - std::vector<std::string> ::const_iterator _iter17; - for (_iter17 = this->applicationModules.begin(); _iter17 != this->applicationModules.end(); ++_iter17) - { - xfer += oprot->writeString((*_iter17)); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.applicationInputs) { - xfer += oprot->writeFieldBegin("applicationInputs", ::apache::thrift::protocol::T_LIST, 5); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->applicationInputs.size())); - std::vector<InputDataObjectType> ::const_iterator _iter18; - for (_iter18 = this->applicationInputs.begin(); _iter18 != this->applicationInputs.end(); ++_iter18) - { - xfer += (*_iter18).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.applicationOutputs) { - xfer += oprot->writeFieldBegin("applicationOutputs", ::apache::thrift::protocol::T_LIST, 6); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->applicationOutputs.size())); - std::vector<OutputDataObjectType> ::const_iterator _iter19; - for (_iter19 = this->applicationOutputs.begin(); _iter19 != this->applicationOutputs.end(); ++_iter19) - { - xfer += (*_iter19).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(ApplicationInterfaceDescription &a, ApplicationInterfaceDescription &b) { - using ::std::swap; - swap(a.applicationInterfaceId, b.applicationInterfaceId); - swap(a.applicationName, b.applicationName); - swap(a.applicationDescription, b.applicationDescription); - swap(a.applicationModules, b.applicationModules); - swap(a.applicationInputs, b.applicationInputs); - swap(a.applicationOutputs, b.applicationOutputs); - swap(a.__isset, b.__isset); -} - -}}}}} // namespace http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/d55608f1/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/applicationInterfaceModel_types.h ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/applicationInterfaceModel_types.h b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/applicationInterfaceModel_types.h deleted file mode 100644 index da49d62..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/applicationInterfaceModel_types.h +++ /dev/null @@ -1,427 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Autogenerated by Thrift Compiler (0.9.1) - * - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING - * @generated - */ -#ifndef applicationInterfaceModel_TYPES_H -#define applicationInterfaceModel_TYPES_H - -#include <thrift/Thrift.h> -#include <thrift/TApplicationException.h> -#include <thrift/protocol/TProtocol.h> -#include <thrift/transport/TTransport.h> - -#include <thrift/cxxfunctional.h> - - -namespace apache { namespace airavata { namespace model { namespace appcatalog { namespace appinterface { - -struct DataType { - enum type { - STRING = 0, - INTEGER = 1, - FLOAT = 2, - URI = 3, - STDOUT = 4, - STDERR = 5 - }; -}; - -extern const std::map<int, const char*> _DataType_VALUES_TO_NAMES; - -typedef struct _InputDataObjectType__isset { - _InputDataObjectType__isset() : value(false), type(false), applicationArgument(false), standardInput(true), userFriendlyDescription(false), metaData(false), inputOrder(false), isRequired(false), requiredToAddedToCommandLine(false), dataStaged(true) {} - bool value; - bool type; - bool applicationArgument; - bool standardInput; - bool userFriendlyDescription; - bool metaData; - bool inputOrder; - bool isRequired; - bool requiredToAddedToCommandLine; - bool dataStaged; -} _InputDataObjectType__isset; - -class InputDataObjectType { - public: - - static const char* ascii_fingerprint; // = "22DB8CAA7C1FBBFDD0CA6E19790BA799"; - static const uint8_t binary_fingerprint[16]; // = {0x22,0xDB,0x8C,0xAA,0x7C,0x1F,0xBB,0xFD,0xD0,0xCA,0x6E,0x19,0x79,0x0B,0xA7,0x99}; - - InputDataObjectType() : name(), value(), type((DataType::type)0), applicationArgument(), standardInput(false), userFriendlyDescription(), metaData(), inputOrder(0), isRequired(0), requiredToAddedToCommandLine(0), dataStaged(false) { - } - - virtual ~InputDataObjectType() throw() {} - - std::string name; - std::string value; - DataType::type type; - std::string applicationArgument; - bool standardInput; - std::string userFriendlyDescription; - std::string metaData; - int32_t inputOrder; - bool isRequired; - bool requiredToAddedToCommandLine; - bool dataStaged; - - _InputDataObjectType__isset __isset; - - void __set_name(const std::string& val) { - name = val; - } - - void __set_value(const std::string& val) { - value = val; - __isset.value = true; - } - - void __set_type(const DataType::type val) { - type = val; - __isset.type = true; - } - - void __set_applicationArgument(const std::string& val) { - applicationArgument = val; - __isset.applicationArgument = true; - } - - void __set_standardInput(const bool val) { - standardInput = val; - __isset.standardInput = true; - } - - void __set_userFriendlyDescription(const std::string& val) { - userFriendlyDescription = val; - __isset.userFriendlyDescription = true; - } - - void __set_metaData(const std::string& val) { - metaData = val; - __isset.metaData = true; - } - - void __set_inputOrder(const int32_t val) { - inputOrder = val; - __isset.inputOrder = true; - } - - void __set_isRequired(const bool val) { - isRequired = val; - __isset.isRequired = true; - } - - void __set_requiredToAddedToCommandLine(const bool val) { - requiredToAddedToCommandLine = val; - __isset.requiredToAddedToCommandLine = true; - } - - void __set_dataStaged(const bool val) { - dataStaged = val; - __isset.dataStaged = true; - } - - bool operator == (const InputDataObjectType & rhs) const - { - if (!(name == rhs.name)) - return false; - if (__isset.value != rhs.__isset.value) - return false; - else if (__isset.value && !(value == rhs.value)) - return false; - if (__isset.type != rhs.__isset.type) - return false; - else if (__isset.type && !(type == rhs.type)) - return false; - if (__isset.applicationArgument != rhs.__isset.applicationArgument) - return false; - else if (__isset.applicationArgument && !(applicationArgument == rhs.applicationArgument)) - return false; - if (__isset.standardInput != rhs.__isset.standardInput) - return false; - else if (__isset.standardInput && !(standardInput == rhs.standardInput)) - return false; - if (__isset.userFriendlyDescription != rhs.__isset.userFriendlyDescription) - return false; - else if (__isset.userFriendlyDescription && !(userFriendlyDescription == rhs.userFriendlyDescription)) - return false; - if (__isset.metaData != rhs.__isset.metaData) - return false; - else if (__isset.metaData && !(metaData == rhs.metaData)) - return false; - if (__isset.inputOrder != rhs.__isset.inputOrder) - return false; - else if (__isset.inputOrder && !(inputOrder == rhs.inputOrder)) - return false; - if (__isset.isRequired != rhs.__isset.isRequired) - return false; - else if (__isset.isRequired && !(isRequired == rhs.isRequired)) - return false; - if (__isset.requiredToAddedToCommandLine != rhs.__isset.requiredToAddedToCommandLine) - return false; - else if (__isset.requiredToAddedToCommandLine && !(requiredToAddedToCommandLine == rhs.requiredToAddedToCommandLine)) - return false; - if (__isset.dataStaged != rhs.__isset.dataStaged) - return false; - else if (__isset.dataStaged && !(dataStaged == rhs.dataStaged)) - return false; - return true; - } - bool operator != (const InputDataObjectType &rhs) const { - return !(*this == rhs); - } - - bool operator < (const InputDataObjectType & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - -}; - -void swap(InputDataObjectType &a, InputDataObjectType &b); - -typedef struct _OutputDataObjectType__isset { - _OutputDataObjectType__isset() : value(false), type(false), applicationArgument(false), isRequired(false), requiredToAddedToCommandLine(false), dataMovement(false), location(false), searchQuery(false) {} - bool value; - bool type; - bool applicationArgument; - bool isRequired; - bool requiredToAddedToCommandLine; - bool dataMovement; - bool location; - bool searchQuery; -} _OutputDataObjectType__isset; - -class OutputDataObjectType { - public: - - static const char* ascii_fingerprint; // = "3259D81CA906AEEBC4D76ED47386A18B"; - static const uint8_t binary_fingerprint[16]; // = {0x32,0x59,0xD8,0x1C,0xA9,0x06,0xAE,0xEB,0xC4,0xD7,0x6E,0xD4,0x73,0x86,0xA1,0x8B}; - - OutputDataObjectType() : name(), value(), type((DataType::type)0), applicationArgument(), isRequired(0), requiredToAddedToCommandLine(0), dataMovement(0), location(), searchQuery() { - } - - virtual ~OutputDataObjectType() throw() {} - - std::string name; - std::string value; - DataType::type type; - std::string applicationArgument; - bool isRequired; - bool requiredToAddedToCommandLine; - bool dataMovement; - std::string location; - std::string searchQuery; - - _OutputDataObjectType__isset __isset; - - void __set_name(const std::string& val) { - name = val; - } - - void __set_value(const std::string& val) { - value = val; - __isset.value = true; - } - - void __set_type(const DataType::type val) { - type = val; - __isset.type = true; - } - - void __set_applicationArgument(const std::string& val) { - applicationArgument = val; - __isset.applicationArgument = true; - } - - void __set_isRequired(const bool val) { - isRequired = val; - __isset.isRequired = true; - } - - void __set_requiredToAddedToCommandLine(const bool val) { - requiredToAddedToCommandLine = val; - __isset.requiredToAddedToCommandLine = true; - } - - void __set_dataMovement(const bool val) { - dataMovement = val; - __isset.dataMovement = true; - } - - void __set_location(const std::string& val) { - location = val; - __isset.location = true; - } - - void __set_searchQuery(const std::string& val) { - searchQuery = val; - __isset.searchQuery = true; - } - - bool operator == (const OutputDataObjectType & rhs) const - { - if (!(name == rhs.name)) - return false; - if (__isset.value != rhs.__isset.value) - return false; - else if (__isset.value && !(value == rhs.value)) - return false; - if (__isset.type != rhs.__isset.type) - return false; - else if (__isset.type && !(type == rhs.type)) - return false; - if (__isset.applicationArgument != rhs.__isset.applicationArgument) - return false; - else if (__isset.applicationArgument && !(applicationArgument == rhs.applicationArgument)) - return false; - if (__isset.isRequired != rhs.__isset.isRequired) - return false; - else if (__isset.isRequired && !(isRequired == rhs.isRequired)) - return false; - if (__isset.requiredToAddedToCommandLine != rhs.__isset.requiredToAddedToCommandLine) - return false; - else if (__isset.requiredToAddedToCommandLine && !(requiredToAddedToCommandLine == rhs.requiredToAddedToCommandLine)) - return false; - if (__isset.dataMovement != rhs.__isset.dataMovement) - return false; - else if (__isset.dataMovement && !(dataMovement == rhs.dataMovement)) - return false; - if (__isset.location != rhs.__isset.location) - return false; - else if (__isset.location && !(location == rhs.location)) - return false; - if (__isset.searchQuery != rhs.__isset.searchQuery) - return false; - else if (__isset.searchQuery && !(searchQuery == rhs.searchQuery)) - return false; - return true; - } - bool operator != (const OutputDataObjectType &rhs) const { - return !(*this == rhs); - } - - bool operator < (const OutputDataObjectType & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - -}; - -void swap(OutputDataObjectType &a, OutputDataObjectType &b); - -typedef struct _ApplicationInterfaceDescription__isset { - _ApplicationInterfaceDescription__isset() : applicationDescription(false), applicationModules(false), applicationInputs(false), applicationOutputs(false) {} - bool applicationDescription; - bool applicationModules; - bool applicationInputs; - bool applicationOutputs; -} _ApplicationInterfaceDescription__isset; - -class ApplicationInterfaceDescription { - public: - - static const char* ascii_fingerprint; // = "C21011258B830B950ECA4A73DCB61630"; - static const uint8_t binary_fingerprint[16]; // = {0xC2,0x10,0x11,0x25,0x8B,0x83,0x0B,0x95,0x0E,0xCA,0x4A,0x73,0xDC,0xB6,0x16,0x30}; - - ApplicationInterfaceDescription() : applicationInterfaceId("DO_NOT_SET_AT_CLIENTS"), applicationName(), applicationDescription() { - } - - virtual ~ApplicationInterfaceDescription() throw() {} - - std::string applicationInterfaceId; - std::string applicationName; - std::string applicationDescription; - std::vector<std::string> applicationModules; - std::vector<InputDataObjectType> applicationInputs; - std::vector<OutputDataObjectType> applicationOutputs; - - _ApplicationInterfaceDescription__isset __isset; - - void __set_applicationInterfaceId(const std::string& val) { - applicationInterfaceId = val; - } - - void __set_applicationName(const std::string& val) { - applicationName = val; - } - - void __set_applicationDescription(const std::string& val) { - applicationDescription = val; - __isset.applicationDescription = true; - } - - void __set_applicationModules(const std::vector<std::string> & val) { - applicationModules = val; - __isset.applicationModules = true; - } - - void __set_applicationInputs(const std::vector<InputDataObjectType> & val) { - applicationInputs = val; - __isset.applicationInputs = true; - } - - void __set_applicationOutputs(const std::vector<OutputDataObjectType> & val) { - applicationOutputs = val; - __isset.applicationOutputs = true; - } - - bool operator == (const ApplicationInterfaceDescription & rhs) const - { - if (!(applicationInterfaceId == rhs.applicationInterfaceId)) - return false; - if (!(applicationName == rhs.applicationName)) - return false; - if (__isset.applicationDescription != rhs.__isset.applicationDescription) - return false; - else if (__isset.applicationDescription && !(applicationDescription == rhs.applicationDescription)) - return false; - if (__isset.applicationModules != rhs.__isset.applicationModules) - return false; - else if (__isset.applicationModules && !(applicationModules == rhs.applicationModules)) - return false; - if (__isset.applicationInputs != rhs.__isset.applicationInputs) - return false; - else if (__isset.applicationInputs && !(applicationInputs == rhs.applicationInputs)) - return false; - if (__isset.applicationOutputs != rhs.__isset.applicationOutputs) - return false; - else if (__isset.applicationOutputs && !(applicationOutputs == rhs.applicationOutputs)) - return false; - return true; - } - bool operator != (const ApplicationInterfaceDescription &rhs) const { - return !(*this == rhs); - } - - bool operator < (const ApplicationInterfaceDescription & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - -}; - -void swap(ApplicationInterfaceDescription &a, ApplicationInterfaceDescription &b); - -}}}}} // namespace - -#endif http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/d55608f1/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/application_deployment_model_constants.cpp ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/application_deployment_model_constants.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/application_deployment_model_constants.cpp deleted file mode 100644 index 4c325ce..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/application_deployment_model_constants.cpp +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Autogenerated by Thrift Compiler (0.9.3) - * - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING - * @generated - */ -#include "application_deployment_model_constants.h" - -namespace apache { namespace airavata { namespace model { namespace appcatalog { namespace appdeployment { - -const application_deployment_modelConstants g_application_deployment_model_constants; - -application_deployment_modelConstants::application_deployment_modelConstants() { -} - -}}}}} // namespace - http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/d55608f1/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/application_deployment_model_constants.h ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/application_deployment_model_constants.h b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/application_deployment_model_constants.h deleted file mode 100644 index bb51aad..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/application_deployment_model_constants.h +++ /dev/null @@ -1,41 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Autogenerated by Thrift Compiler (0.9.3) - * - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING - * @generated - */ -#ifndef application_deployment_model_CONSTANTS_H -#define application_deployment_model_CONSTANTS_H - -#include "application_deployment_model_types.h" - -namespace apache { namespace airavata { namespace model { namespace appcatalog { namespace appdeployment { - -class application_deployment_modelConstants { - public: - application_deployment_modelConstants(); - -}; - -extern const application_deployment_modelConstants g_application_deployment_model_constants; - -}}}}} // namespace - -#endif
