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/parallelism_model_constants.h ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/parallelism_model_constants.h b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/parallelism_model_constants.h deleted file mode 100644 index 7069c90..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/parallelism_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 parallelism_model_CONSTANTS_H -#define parallelism_model_CONSTANTS_H - -#include "parallelism_model_types.h" - -namespace apache { namespace airavata { namespace model { namespace appcatalog { namespace parallelism { - -class parallelism_modelConstants { - public: - parallelism_modelConstants(); - -}; - -extern const parallelism_modelConstants g_parallelism_model_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/parallelism_model_types.cpp ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/parallelism_model_types.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/parallelism_model_types.cpp deleted file mode 100644 index 554914e..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/parallelism_model_types.cpp +++ /dev/null @@ -1,51 +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 "parallelism_model_types.h" - -#include <algorithm> -#include <ostream> - -#include <thrift/TToString.h> - -namespace apache { namespace airavata { namespace model { namespace appcatalog { namespace parallelism { - -int _kApplicationParallelismTypeValues[] = { - ApplicationParallelismType::SERIAL, - ApplicationParallelismType::MPI, - ApplicationParallelismType::OPENMP, - ApplicationParallelismType::OPENMP_MPI, - ApplicationParallelismType::CCM, - ApplicationParallelismType::CRAY_MPI -}; -const char* _kApplicationParallelismTypeNames[] = { - "SERIAL", - "MPI", - "OPENMP", - "OPENMP_MPI", - "CCM", - "CRAY_MPI" -}; -const std::map<int, const char*> _ApplicationParallelismType_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(6, _kApplicationParallelismTypeValues, _kApplicationParallelismTypeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -}}}}} // 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/parallelism_model_types.h ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/parallelism_model_types.h b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/parallelism_model_types.h deleted file mode 100644 index c123c08..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/parallelism_model_types.h +++ /dev/null @@ -1,54 +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 parallelism_model_TYPES_H -#define parallelism_model_TYPES_H - -#include <iosfwd> - -#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 parallelism { - -struct ApplicationParallelismType { - enum type { - SERIAL = 0, - MPI = 1, - OPENMP = 2, - OPENMP_MPI = 3, - CCM = 4, - CRAY_MPI = 5 - }; -}; - -extern const std::map<int, const char*> _ApplicationParallelismType_VALUES_TO_NAMES; - -}}}}} // 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/process_model_constants.cpp ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/process_model_constants.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/process_model_constants.cpp deleted file mode 100644 index 515e27f..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/process_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 "process_model_constants.h" - -namespace apache { namespace airavata { namespace model { namespace process { - -const process_modelConstants g_process_model_constants; - -process_modelConstants::process_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/process_model_constants.h ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/process_model_constants.h b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/process_model_constants.h deleted file mode 100644 index 64283fc..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/process_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 process_model_CONSTANTS_H -#define process_model_CONSTANTS_H - -#include "process_model_types.h" - -namespace apache { namespace airavata { namespace model { namespace process { - -class process_modelConstants { - public: - process_modelConstants(); - -}; - -extern const process_modelConstants g_process_model_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/process_model_types.cpp ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/process_model_types.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/process_model_types.cpp deleted file mode 100644 index a2cf1a2..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/process_model_types.cpp +++ /dev/null @@ -1,749 +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 "process_model_types.h" - -#include <algorithm> -#include <ostream> - -#include <thrift/TToString.h> - -namespace apache { namespace airavata { namespace model { namespace process { - - -ProcessModel::~ProcessModel() throw() { -} - - -void ProcessModel::__set_processId(const std::string& val) { - this->processId = val; -} - -void ProcessModel::__set_experimentId(const std::string& val) { - this->experimentId = val; -} - -void ProcessModel::__set_creationTime(const int64_t val) { - this->creationTime = val; -__isset.creationTime = true; -} - -void ProcessModel::__set_lastUpdateTime(const int64_t val) { - this->lastUpdateTime = val; -__isset.lastUpdateTime = true; -} - -void ProcessModel::__set_processStatuses(const std::vector< ::apache::airavata::model::status::ProcessStatus> & val) { - this->processStatuses = val; -__isset.processStatuses = true; -} - -void ProcessModel::__set_processDetail(const std::string& val) { - this->processDetail = val; -__isset.processDetail = true; -} - -void ProcessModel::__set_applicationInterfaceId(const std::string& val) { - this->applicationInterfaceId = val; -__isset.applicationInterfaceId = true; -} - -void ProcessModel::__set_applicationDeploymentId(const std::string& val) { - this->applicationDeploymentId = val; -__isset.applicationDeploymentId = true; -} - -void ProcessModel::__set_computeResourceId(const std::string& val) { - this->computeResourceId = val; -__isset.computeResourceId = true; -} - -void ProcessModel::__set_processInputs(const std::vector< ::apache::airavata::model::application::io::InputDataObjectType> & val) { - this->processInputs = val; -__isset.processInputs = true; -} - -void ProcessModel::__set_processOutputs(const std::vector< ::apache::airavata::model::application::io::OutputDataObjectType> & val) { - this->processOutputs = val; -__isset.processOutputs = true; -} - -void ProcessModel::__set_processResourceSchedule(const ::apache::airavata::model::scheduling::ComputationalResourceSchedulingModel& val) { - this->processResourceSchedule = val; -__isset.processResourceSchedule = true; -} - -void ProcessModel::__set_tasks(const std::vector< ::apache::airavata::model::task::TaskModel> & val) { - this->tasks = val; -__isset.tasks = true; -} - -void ProcessModel::__set_taskDag(const std::string& val) { - this->taskDag = val; -__isset.taskDag = true; -} - -void ProcessModel::__set_processErrors(const std::vector< ::apache::airavata::model::commons::ErrorModel> & val) { - this->processErrors = val; -__isset.processErrors = true; -} - -void ProcessModel::__set_gatewayExecutionId(const std::string& val) { - this->gatewayExecutionId = val; -__isset.gatewayExecutionId = true; -} - -void ProcessModel::__set_enableEmailNotification(const bool val) { - this->enableEmailNotification = val; -__isset.enableEmailNotification = true; -} - -void ProcessModel::__set_emailAddresses(const std::vector<std::string> & val) { - this->emailAddresses = val; -__isset.emailAddresses = true; -} - -void ProcessModel::__set_storageResourceId(const std::string& val) { - this->storageResourceId = val; -__isset.storageResourceId = true; -} - -void ProcessModel::__set_userDn(const std::string& val) { - this->userDn = val; -__isset.userDn = true; -} - -void ProcessModel::__set_generateCert(const bool val) { - this->generateCert = val; -__isset.generateCert = true; -} - -void ProcessModel::__set_experimentDataDir(const std::string& val) { - this->experimentDataDir = val; -__isset.experimentDataDir = true; -} - -void ProcessModel::__set_userName(const std::string& val) { - this->userName = val; -__isset.userName = true; -} - -void ProcessModel::__set_useUserCRPref(const bool val) { - this->useUserCRPref = val; -__isset.useUserCRPref = true; -} - -uint32_t ProcessModel::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*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_processId = false; - bool isset_experimentId = 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->processId); - isset_processId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->experimentId); - isset_experimentId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->creationTime); - this->__isset.creationTime = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->lastUpdateTime); - this->__isset.lastUpdateTime = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->processStatuses.clear(); - uint32_t _size0; - ::apache::thrift::protocol::TType _etype3; - xfer += iprot->readListBegin(_etype3, _size0); - this->processStatuses.resize(_size0); - uint32_t _i4; - for (_i4 = 0; _i4 < _size0; ++_i4) - { - xfer += this->processStatuses[_i4].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.processStatuses = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->processDetail); - this->__isset.processDetail = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->applicationInterfaceId); - this->__isset.applicationInterfaceId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 8: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->applicationDeploymentId); - this->__isset.applicationDeploymentId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 9: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->computeResourceId); - this->__isset.computeResourceId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 10: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->processInputs.clear(); - uint32_t _size5; - ::apache::thrift::protocol::TType _etype8; - xfer += iprot->readListBegin(_etype8, _size5); - this->processInputs.resize(_size5); - uint32_t _i9; - for (_i9 = 0; _i9 < _size5; ++_i9) - { - xfer += this->processInputs[_i9].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.processInputs = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 11: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->processOutputs.clear(); - uint32_t _size10; - ::apache::thrift::protocol::TType _etype13; - xfer += iprot->readListBegin(_etype13, _size10); - this->processOutputs.resize(_size10); - uint32_t _i14; - for (_i14 = 0; _i14 < _size10; ++_i14) - { - xfer += this->processOutputs[_i14].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.processOutputs = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 12: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->processResourceSchedule.read(iprot); - this->__isset.processResourceSchedule = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 13: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->tasks.clear(); - uint32_t _size15; - ::apache::thrift::protocol::TType _etype18; - xfer += iprot->readListBegin(_etype18, _size15); - this->tasks.resize(_size15); - uint32_t _i19; - for (_i19 = 0; _i19 < _size15; ++_i19) - { - xfer += this->tasks[_i19].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.tasks = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 14: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->taskDag); - this->__isset.taskDag = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 15: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->processErrors.clear(); - uint32_t _size20; - ::apache::thrift::protocol::TType _etype23; - xfer += iprot->readListBegin(_etype23, _size20); - this->processErrors.resize(_size20); - uint32_t _i24; - for (_i24 = 0; _i24 < _size20; ++_i24) - { - xfer += this->processErrors[_i24].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.processErrors = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 16: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->gatewayExecutionId); - this->__isset.gatewayExecutionId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 17: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->enableEmailNotification); - this->__isset.enableEmailNotification = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 18: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->emailAddresses.clear(); - uint32_t _size25; - ::apache::thrift::protocol::TType _etype28; - xfer += iprot->readListBegin(_etype28, _size25); - this->emailAddresses.resize(_size25); - uint32_t _i29; - for (_i29 = 0; _i29 < _size25; ++_i29) - { - xfer += iprot->readString(this->emailAddresses[_i29]); - } - xfer += iprot->readListEnd(); - } - this->__isset.emailAddresses = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 19: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->storageResourceId); - this->__isset.storageResourceId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 20: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->userDn); - this->__isset.userDn = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 21: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->generateCert); - this->__isset.generateCert = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 22: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->experimentDataDir); - this->__isset.experimentDataDir = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 23: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->userName); - this->__isset.userName = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 24: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->useUserCRPref); - this->__isset.useUserCRPref = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - if (!isset_processId) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_experimentId) - throw TProtocolException(TProtocolException::INVALID_DATA); - return xfer; -} - -uint32_t ProcessModel::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ProcessModel"); - - xfer += oprot->writeFieldBegin("processId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->processId); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("experimentId", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->experimentId); - xfer += oprot->writeFieldEnd(); - - if (this->__isset.creationTime) { - xfer += oprot->writeFieldBegin("creationTime", ::apache::thrift::protocol::T_I64, 3); - xfer += oprot->writeI64(this->creationTime); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.lastUpdateTime) { - xfer += oprot->writeFieldBegin("lastUpdateTime", ::apache::thrift::protocol::T_I64, 4); - xfer += oprot->writeI64(this->lastUpdateTime); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.processStatuses) { - xfer += oprot->writeFieldBegin("processStatuses", ::apache::thrift::protocol::T_LIST, 5); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->processStatuses.size())); - std::vector< ::apache::airavata::model::status::ProcessStatus> ::const_iterator _iter30; - for (_iter30 = this->processStatuses.begin(); _iter30 != this->processStatuses.end(); ++_iter30) - { - xfer += (*_iter30).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.processDetail) { - xfer += oprot->writeFieldBegin("processDetail", ::apache::thrift::protocol::T_STRING, 6); - xfer += oprot->writeString(this->processDetail); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.applicationInterfaceId) { - xfer += oprot->writeFieldBegin("applicationInterfaceId", ::apache::thrift::protocol::T_STRING, 7); - xfer += oprot->writeString(this->applicationInterfaceId); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.applicationDeploymentId) { - xfer += oprot->writeFieldBegin("applicationDeploymentId", ::apache::thrift::protocol::T_STRING, 8); - xfer += oprot->writeString(this->applicationDeploymentId); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.computeResourceId) { - xfer += oprot->writeFieldBegin("computeResourceId", ::apache::thrift::protocol::T_STRING, 9); - xfer += oprot->writeString(this->computeResourceId); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.processInputs) { - xfer += oprot->writeFieldBegin("processInputs", ::apache::thrift::protocol::T_LIST, 10); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->processInputs.size())); - std::vector< ::apache::airavata::model::application::io::InputDataObjectType> ::const_iterator _iter31; - for (_iter31 = this->processInputs.begin(); _iter31 != this->processInputs.end(); ++_iter31) - { - xfer += (*_iter31).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.processOutputs) { - xfer += oprot->writeFieldBegin("processOutputs", ::apache::thrift::protocol::T_LIST, 11); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->processOutputs.size())); - std::vector< ::apache::airavata::model::application::io::OutputDataObjectType> ::const_iterator _iter32; - for (_iter32 = this->processOutputs.begin(); _iter32 != this->processOutputs.end(); ++_iter32) - { - xfer += (*_iter32).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.processResourceSchedule) { - xfer += oprot->writeFieldBegin("processResourceSchedule", ::apache::thrift::protocol::T_STRUCT, 12); - xfer += this->processResourceSchedule.write(oprot); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.tasks) { - xfer += oprot->writeFieldBegin("tasks", ::apache::thrift::protocol::T_LIST, 13); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->tasks.size())); - std::vector< ::apache::airavata::model::task::TaskModel> ::const_iterator _iter33; - for (_iter33 = this->tasks.begin(); _iter33 != this->tasks.end(); ++_iter33) - { - xfer += (*_iter33).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.taskDag) { - xfer += oprot->writeFieldBegin("taskDag", ::apache::thrift::protocol::T_STRING, 14); - xfer += oprot->writeString(this->taskDag); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.processErrors) { - xfer += oprot->writeFieldBegin("processErrors", ::apache::thrift::protocol::T_LIST, 15); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->processErrors.size())); - std::vector< ::apache::airavata::model::commons::ErrorModel> ::const_iterator _iter34; - for (_iter34 = this->processErrors.begin(); _iter34 != this->processErrors.end(); ++_iter34) - { - xfer += (*_iter34).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.gatewayExecutionId) { - xfer += oprot->writeFieldBegin("gatewayExecutionId", ::apache::thrift::protocol::T_STRING, 16); - xfer += oprot->writeString(this->gatewayExecutionId); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.enableEmailNotification) { - xfer += oprot->writeFieldBegin("enableEmailNotification", ::apache::thrift::protocol::T_BOOL, 17); - xfer += oprot->writeBool(this->enableEmailNotification); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.emailAddresses) { - xfer += oprot->writeFieldBegin("emailAddresses", ::apache::thrift::protocol::T_LIST, 18); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->emailAddresses.size())); - std::vector<std::string> ::const_iterator _iter35; - for (_iter35 = this->emailAddresses.begin(); _iter35 != this->emailAddresses.end(); ++_iter35) - { - xfer += oprot->writeString((*_iter35)); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.storageResourceId) { - xfer += oprot->writeFieldBegin("storageResourceId", ::apache::thrift::protocol::T_STRING, 19); - xfer += oprot->writeString(this->storageResourceId); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.userDn) { - xfer += oprot->writeFieldBegin("userDn", ::apache::thrift::protocol::T_STRING, 20); - xfer += oprot->writeString(this->userDn); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.generateCert) { - xfer += oprot->writeFieldBegin("generateCert", ::apache::thrift::protocol::T_BOOL, 21); - xfer += oprot->writeBool(this->generateCert); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.experimentDataDir) { - xfer += oprot->writeFieldBegin("experimentDataDir", ::apache::thrift::protocol::T_STRING, 22); - xfer += oprot->writeString(this->experimentDataDir); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.userName) { - xfer += oprot->writeFieldBegin("userName", ::apache::thrift::protocol::T_STRING, 23); - xfer += oprot->writeString(this->userName); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.useUserCRPref) { - xfer += oprot->writeFieldBegin("useUserCRPref", ::apache::thrift::protocol::T_BOOL, 24); - xfer += oprot->writeBool(this->useUserCRPref); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(ProcessModel &a, ProcessModel &b) { - using ::std::swap; - swap(a.processId, b.processId); - swap(a.experimentId, b.experimentId); - swap(a.creationTime, b.creationTime); - swap(a.lastUpdateTime, b.lastUpdateTime); - swap(a.processStatuses, b.processStatuses); - swap(a.processDetail, b.processDetail); - swap(a.applicationInterfaceId, b.applicationInterfaceId); - swap(a.applicationDeploymentId, b.applicationDeploymentId); - swap(a.computeResourceId, b.computeResourceId); - swap(a.processInputs, b.processInputs); - swap(a.processOutputs, b.processOutputs); - swap(a.processResourceSchedule, b.processResourceSchedule); - swap(a.tasks, b.tasks); - swap(a.taskDag, b.taskDag); - swap(a.processErrors, b.processErrors); - swap(a.gatewayExecutionId, b.gatewayExecutionId); - swap(a.enableEmailNotification, b.enableEmailNotification); - swap(a.emailAddresses, b.emailAddresses); - swap(a.storageResourceId, b.storageResourceId); - swap(a.userDn, b.userDn); - swap(a.generateCert, b.generateCert); - swap(a.experimentDataDir, b.experimentDataDir); - swap(a.userName, b.userName); - swap(a.useUserCRPref, b.useUserCRPref); - swap(a.__isset, b.__isset); -} - -ProcessModel::ProcessModel(const ProcessModel& other36) { - processId = other36.processId; - experimentId = other36.experimentId; - creationTime = other36.creationTime; - lastUpdateTime = other36.lastUpdateTime; - processStatuses = other36.processStatuses; - processDetail = other36.processDetail; - applicationInterfaceId = other36.applicationInterfaceId; - applicationDeploymentId = other36.applicationDeploymentId; - computeResourceId = other36.computeResourceId; - processInputs = other36.processInputs; - processOutputs = other36.processOutputs; - processResourceSchedule = other36.processResourceSchedule; - tasks = other36.tasks; - taskDag = other36.taskDag; - processErrors = other36.processErrors; - gatewayExecutionId = other36.gatewayExecutionId; - enableEmailNotification = other36.enableEmailNotification; - emailAddresses = other36.emailAddresses; - storageResourceId = other36.storageResourceId; - userDn = other36.userDn; - generateCert = other36.generateCert; - experimentDataDir = other36.experimentDataDir; - userName = other36.userName; - useUserCRPref = other36.useUserCRPref; - __isset = other36.__isset; -} -ProcessModel& ProcessModel::operator=(const ProcessModel& other37) { - processId = other37.processId; - experimentId = other37.experimentId; - creationTime = other37.creationTime; - lastUpdateTime = other37.lastUpdateTime; - processStatuses = other37.processStatuses; - processDetail = other37.processDetail; - applicationInterfaceId = other37.applicationInterfaceId; - applicationDeploymentId = other37.applicationDeploymentId; - computeResourceId = other37.computeResourceId; - processInputs = other37.processInputs; - processOutputs = other37.processOutputs; - processResourceSchedule = other37.processResourceSchedule; - tasks = other37.tasks; - taskDag = other37.taskDag; - processErrors = other37.processErrors; - gatewayExecutionId = other37.gatewayExecutionId; - enableEmailNotification = other37.enableEmailNotification; - emailAddresses = other37.emailAddresses; - storageResourceId = other37.storageResourceId; - userDn = other37.userDn; - generateCert = other37.generateCert; - experimentDataDir = other37.experimentDataDir; - userName = other37.userName; - useUserCRPref = other37.useUserCRPref; - __isset = other37.__isset; - return *this; -} -void ProcessModel::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "ProcessModel("; - out << "processId=" << to_string(processId); - out << ", " << "experimentId=" << to_string(experimentId); - out << ", " << "creationTime="; (__isset.creationTime ? (out << to_string(creationTime)) : (out << "<null>")); - out << ", " << "lastUpdateTime="; (__isset.lastUpdateTime ? (out << to_string(lastUpdateTime)) : (out << "<null>")); - out << ", " << "processStatuses="; (__isset.processStatuses ? (out << to_string(processStatuses)) : (out << "<null>")); - out << ", " << "processDetail="; (__isset.processDetail ? (out << to_string(processDetail)) : (out << "<null>")); - out << ", " << "applicationInterfaceId="; (__isset.applicationInterfaceId ? (out << to_string(applicationInterfaceId)) : (out << "<null>")); - out << ", " << "applicationDeploymentId="; (__isset.applicationDeploymentId ? (out << to_string(applicationDeploymentId)) : (out << "<null>")); - out << ", " << "computeResourceId="; (__isset.computeResourceId ? (out << to_string(computeResourceId)) : (out << "<null>")); - out << ", " << "processInputs="; (__isset.processInputs ? (out << to_string(processInputs)) : (out << "<null>")); - out << ", " << "processOutputs="; (__isset.processOutputs ? (out << to_string(processOutputs)) : (out << "<null>")); - out << ", " << "processResourceSchedule="; (__isset.processResourceSchedule ? (out << to_string(processResourceSchedule)) : (out << "<null>")); - out << ", " << "tasks="; (__isset.tasks ? (out << to_string(tasks)) : (out << "<null>")); - out << ", " << "taskDag="; (__isset.taskDag ? (out << to_string(taskDag)) : (out << "<null>")); - out << ", " << "processErrors="; (__isset.processErrors ? (out << to_string(processErrors)) : (out << "<null>")); - out << ", " << "gatewayExecutionId="; (__isset.gatewayExecutionId ? (out << to_string(gatewayExecutionId)) : (out << "<null>")); - out << ", " << "enableEmailNotification="; (__isset.enableEmailNotification ? (out << to_string(enableEmailNotification)) : (out << "<null>")); - out << ", " << "emailAddresses="; (__isset.emailAddresses ? (out << to_string(emailAddresses)) : (out << "<null>")); - out << ", " << "storageResourceId="; (__isset.storageResourceId ? (out << to_string(storageResourceId)) : (out << "<null>")); - out << ", " << "userDn="; (__isset.userDn ? (out << to_string(userDn)) : (out << "<null>")); - out << ", " << "generateCert="; (__isset.generateCert ? (out << to_string(generateCert)) : (out << "<null>")); - out << ", " << "experimentDataDir="; (__isset.experimentDataDir ? (out << to_string(experimentDataDir)) : (out << "<null>")); - out << ", " << "userName="; (__isset.userName ? (out << to_string(userName)) : (out << "<null>")); - out << ", " << "useUserCRPref="; (__isset.useUserCRPref ? (out << to_string(useUserCRPref)) : (out << "<null>")); - out << ")"; -} - -}}}} // 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/process_model_types.h ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/process_model_types.h b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/process_model_types.h deleted file mode 100644 index 179de33..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/process_model_types.h +++ /dev/null @@ -1,274 +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 process_model_TYPES_H -#define process_model_TYPES_H - -#include <iosfwd> - -#include <thrift/Thrift.h> -#include <thrift/TApplicationException.h> -#include <thrift/protocol/TProtocol.h> -#include <thrift/transport/TTransport.h> - -#include <thrift/cxxfunctional.h> -#include "airavata_commons_types.h" -#include "application_io_models_types.h" -#include "status_models_types.h" -#include "task_model_types.h" -#include "scheduling_model_types.h" - - -namespace apache { namespace airavata { namespace model { namespace process { - -class ProcessModel; - -typedef struct _ProcessModel__isset { - _ProcessModel__isset() : creationTime(false), lastUpdateTime(false), processStatuses(false), processDetail(false), applicationInterfaceId(false), applicationDeploymentId(false), computeResourceId(false), processInputs(false), processOutputs(false), processResourceSchedule(false), tasks(false), taskDag(false), processErrors(false), gatewayExecutionId(false), enableEmailNotification(false), emailAddresses(false), storageResourceId(false), userDn(false), generateCert(true), experimentDataDir(false), userName(false), useUserCRPref(false) {} - bool creationTime :1; - bool lastUpdateTime :1; - bool processStatuses :1; - bool processDetail :1; - bool applicationInterfaceId :1; - bool applicationDeploymentId :1; - bool computeResourceId :1; - bool processInputs :1; - bool processOutputs :1; - bool processResourceSchedule :1; - bool tasks :1; - bool taskDag :1; - bool processErrors :1; - bool gatewayExecutionId :1; - bool enableEmailNotification :1; - bool emailAddresses :1; - bool storageResourceId :1; - bool userDn :1; - bool generateCert :1; - bool experimentDataDir :1; - bool userName :1; - bool useUserCRPref :1; -} _ProcessModel__isset; - -class ProcessModel { - public: - - ProcessModel(const ProcessModel&); - ProcessModel& operator=(const ProcessModel&); - ProcessModel() : processId("DO_NOT_SET_AT_CLIENTS"), experimentId(), creationTime(0), lastUpdateTime(0), processDetail(), applicationInterfaceId(), applicationDeploymentId(), computeResourceId(), taskDag(), gatewayExecutionId(), enableEmailNotification(0), storageResourceId(), userDn(), generateCert(false), experimentDataDir(), userName(), useUserCRPref(0) { - } - - virtual ~ProcessModel() throw(); - std::string processId; - std::string experimentId; - int64_t creationTime; - int64_t lastUpdateTime; - std::vector< ::apache::airavata::model::status::ProcessStatus> processStatuses; - std::string processDetail; - std::string applicationInterfaceId; - std::string applicationDeploymentId; - std::string computeResourceId; - std::vector< ::apache::airavata::model::application::io::InputDataObjectType> processInputs; - std::vector< ::apache::airavata::model::application::io::OutputDataObjectType> processOutputs; - ::apache::airavata::model::scheduling::ComputationalResourceSchedulingModel processResourceSchedule; - std::vector< ::apache::airavata::model::task::TaskModel> tasks; - std::string taskDag; - std::vector< ::apache::airavata::model::commons::ErrorModel> processErrors; - std::string gatewayExecutionId; - bool enableEmailNotification; - std::vector<std::string> emailAddresses; - std::string storageResourceId; - std::string userDn; - bool generateCert; - std::string experimentDataDir; - std::string userName; - bool useUserCRPref; - - _ProcessModel__isset __isset; - - void __set_processId(const std::string& val); - - void __set_experimentId(const std::string& val); - - void __set_creationTime(const int64_t val); - - void __set_lastUpdateTime(const int64_t val); - - void __set_processStatuses(const std::vector< ::apache::airavata::model::status::ProcessStatus> & val); - - void __set_processDetail(const std::string& val); - - void __set_applicationInterfaceId(const std::string& val); - - void __set_applicationDeploymentId(const std::string& val); - - void __set_computeResourceId(const std::string& val); - - void __set_processInputs(const std::vector< ::apache::airavata::model::application::io::InputDataObjectType> & val); - - void __set_processOutputs(const std::vector< ::apache::airavata::model::application::io::OutputDataObjectType> & val); - - void __set_processResourceSchedule(const ::apache::airavata::model::scheduling::ComputationalResourceSchedulingModel& val); - - void __set_tasks(const std::vector< ::apache::airavata::model::task::TaskModel> & val); - - void __set_taskDag(const std::string& val); - - void __set_processErrors(const std::vector< ::apache::airavata::model::commons::ErrorModel> & val); - - void __set_gatewayExecutionId(const std::string& val); - - void __set_enableEmailNotification(const bool val); - - void __set_emailAddresses(const std::vector<std::string> & val); - - void __set_storageResourceId(const std::string& val); - - void __set_userDn(const std::string& val); - - void __set_generateCert(const bool val); - - void __set_experimentDataDir(const std::string& val); - - void __set_userName(const std::string& val); - - void __set_useUserCRPref(const bool val); - - bool operator == (const ProcessModel & rhs) const - { - if (!(processId == rhs.processId)) - return false; - if (!(experimentId == rhs.experimentId)) - return false; - if (__isset.creationTime != rhs.__isset.creationTime) - return false; - else if (__isset.creationTime && !(creationTime == rhs.creationTime)) - return false; - if (__isset.lastUpdateTime != rhs.__isset.lastUpdateTime) - return false; - else if (__isset.lastUpdateTime && !(lastUpdateTime == rhs.lastUpdateTime)) - return false; - if (__isset.processStatuses != rhs.__isset.processStatuses) - return false; - else if (__isset.processStatuses && !(processStatuses == rhs.processStatuses)) - return false; - if (__isset.processDetail != rhs.__isset.processDetail) - return false; - else if (__isset.processDetail && !(processDetail == rhs.processDetail)) - return false; - if (__isset.applicationInterfaceId != rhs.__isset.applicationInterfaceId) - return false; - else if (__isset.applicationInterfaceId && !(applicationInterfaceId == rhs.applicationInterfaceId)) - return false; - if (__isset.applicationDeploymentId != rhs.__isset.applicationDeploymentId) - return false; - else if (__isset.applicationDeploymentId && !(applicationDeploymentId == rhs.applicationDeploymentId)) - return false; - if (__isset.computeResourceId != rhs.__isset.computeResourceId) - return false; - else if (__isset.computeResourceId && !(computeResourceId == rhs.computeResourceId)) - return false; - if (__isset.processInputs != rhs.__isset.processInputs) - return false; - else if (__isset.processInputs && !(processInputs == rhs.processInputs)) - return false; - if (__isset.processOutputs != rhs.__isset.processOutputs) - return false; - else if (__isset.processOutputs && !(processOutputs == rhs.processOutputs)) - return false; - if (__isset.processResourceSchedule != rhs.__isset.processResourceSchedule) - return false; - else if (__isset.processResourceSchedule && !(processResourceSchedule == rhs.processResourceSchedule)) - return false; - if (__isset.tasks != rhs.__isset.tasks) - return false; - else if (__isset.tasks && !(tasks == rhs.tasks)) - return false; - if (__isset.taskDag != rhs.__isset.taskDag) - return false; - else if (__isset.taskDag && !(taskDag == rhs.taskDag)) - return false; - if (__isset.processErrors != rhs.__isset.processErrors) - return false; - else if (__isset.processErrors && !(processErrors == rhs.processErrors)) - return false; - if (__isset.gatewayExecutionId != rhs.__isset.gatewayExecutionId) - return false; - else if (__isset.gatewayExecutionId && !(gatewayExecutionId == rhs.gatewayExecutionId)) - return false; - if (__isset.enableEmailNotification != rhs.__isset.enableEmailNotification) - return false; - else if (__isset.enableEmailNotification && !(enableEmailNotification == rhs.enableEmailNotification)) - return false; - if (__isset.emailAddresses != rhs.__isset.emailAddresses) - return false; - else if (__isset.emailAddresses && !(emailAddresses == rhs.emailAddresses)) - return false; - if (__isset.storageResourceId != rhs.__isset.storageResourceId) - return false; - else if (__isset.storageResourceId && !(storageResourceId == rhs.storageResourceId)) - return false; - if (__isset.userDn != rhs.__isset.userDn) - return false; - else if (__isset.userDn && !(userDn == rhs.userDn)) - return false; - if (__isset.generateCert != rhs.__isset.generateCert) - return false; - else if (__isset.generateCert && !(generateCert == rhs.generateCert)) - return false; - if (__isset.experimentDataDir != rhs.__isset.experimentDataDir) - return false; - else if (__isset.experimentDataDir && !(experimentDataDir == rhs.experimentDataDir)) - return false; - if (__isset.userName != rhs.__isset.userName) - return false; - else if (__isset.userName && !(userName == rhs.userName)) - return false; - if (__isset.useUserCRPref != rhs.__isset.useUserCRPref) - return false; - else if (__isset.useUserCRPref && !(useUserCRPref == rhs.useUserCRPref)) - return false; - return true; - } - bool operator != (const ProcessModel &rhs) const { - return !(*this == rhs); - } - - bool operator < (const ProcessModel & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - - virtual void printTo(std::ostream& out) const; -}; - -void swap(ProcessModel &a, ProcessModel &b); - -inline std::ostream& operator<<(std::ostream& out, const ProcessModel& obj) -{ - obj.printTo(out); - return out; -} - -}}}} // 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/replica_catalog_models_constants.cpp ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/replica_catalog_models_constants.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/replica_catalog_models_constants.cpp deleted file mode 100644 index 9e2c499..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/replica_catalog_models_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 "replica_catalog_models_constants.h" - -namespace apache { namespace airavata { namespace model { namespace data { namespace replica { - -const replica_catalog_modelsConstants g_replica_catalog_models_constants; - -replica_catalog_modelsConstants::replica_catalog_modelsConstants() { -} - -}}}}} // 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/replica_catalog_models_constants.h ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/replica_catalog_models_constants.h b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/replica_catalog_models_constants.h deleted file mode 100644 index 67322de..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/replica_catalog_models_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 replica_catalog_models_CONSTANTS_H -#define replica_catalog_models_CONSTANTS_H - -#include "replica_catalog_models_types.h" - -namespace apache { namespace airavata { namespace model { namespace data { namespace replica { - -class replica_catalog_modelsConstants { - public: - replica_catalog_modelsConstants(); - -}; - -extern const replica_catalog_modelsConstants g_replica_catalog_models_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/replica_catalog_models_types.cpp ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/replica_catalog_models_types.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/replica_catalog_models_types.cpp deleted file mode 100644 index 937030b..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/replica_catalog_models_types.cpp +++ /dev/null @@ -1,801 +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 "replica_catalog_models_types.h" - -#include <algorithm> -#include <ostream> - -#include <thrift/TToString.h> - -namespace apache { namespace airavata { namespace model { namespace data { namespace replica { - -int _kReplicaLocationCategoryValues[] = { - ReplicaLocationCategory::GATEWAY_DATA_STORE, - ReplicaLocationCategory::COMPUTE_RESOURCE, - ReplicaLocationCategory::LONG_TERM_STORAGE_RESOURCE, - ReplicaLocationCategory::OTHER -}; -const char* _kReplicaLocationCategoryNames[] = { - "GATEWAY_DATA_STORE", - "COMPUTE_RESOURCE", - "LONG_TERM_STORAGE_RESOURCE", - "OTHER" -}; -const std::map<int, const char*> _ReplicaLocationCategory_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(4, _kReplicaLocationCategoryValues, _kReplicaLocationCategoryNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -int _kReplicaPersistentTypeValues[] = { - ReplicaPersistentType::TRANSIENT, - ReplicaPersistentType::PERSISTENT -}; -const char* _kReplicaPersistentTypeNames[] = { - "TRANSIENT", - "PERSISTENT" -}; -const std::map<int, const char*> _ReplicaPersistentType_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(2, _kReplicaPersistentTypeValues, _kReplicaPersistentTypeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - -int _kDataProductTypeValues[] = { - DataProductType::FILE, - DataProductType::COLLECTION -}; -const char* _kDataProductTypeNames[] = { - "FILE", - "COLLECTION" -}; -const std::map<int, const char*> _DataProductType_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(2, _kDataProductTypeValues, _kDataProductTypeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); - - -DataProductModel::~DataProductModel() throw() { -} - - -void DataProductModel::__set_productUri(const std::string& val) { - this->productUri = val; -__isset.productUri = true; -} - -void DataProductModel::__set_gatewayId(const std::string& val) { - this->gatewayId = val; -__isset.gatewayId = true; -} - -void DataProductModel::__set_parentProductUri(const std::string& val) { - this->parentProductUri = val; -__isset.parentProductUri = true; -} - -void DataProductModel::__set_productName(const std::string& val) { - this->productName = val; -__isset.productName = true; -} - -void DataProductModel::__set_productDescription(const std::string& val) { - this->productDescription = val; -__isset.productDescription = true; -} - -void DataProductModel::__set_ownerName(const std::string& val) { - this->ownerName = val; -__isset.ownerName = true; -} - -void DataProductModel::__set_dataProductType(const DataProductType::type val) { - this->dataProductType = val; -__isset.dataProductType = true; -} - -void DataProductModel::__set_productSize(const int32_t val) { - this->productSize = val; -__isset.productSize = true; -} - -void DataProductModel::__set_creationTime(const int64_t val) { - this->creationTime = val; -__isset.creationTime = true; -} - -void DataProductModel::__set_lastModifiedTime(const int64_t val) { - this->lastModifiedTime = val; -__isset.lastModifiedTime = true; -} - -void DataProductModel::__set_productMetadata(const std::map<std::string, std::string> & val) { - this->productMetadata = val; -__isset.productMetadata = true; -} - -void DataProductModel::__set_replicaLocations(const std::vector<DataReplicaLocationModel> & val) { - this->replicaLocations = val; -__isset.replicaLocations = true; -} - -uint32_t DataProductModel::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*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; - - - 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->productUri); - this->__isset.productUri = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->gatewayId); - this->__isset.gatewayId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->parentProductUri); - this->__isset.parentProductUri = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->productName); - this->__isset.productName = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->productDescription); - this->__isset.productDescription = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->ownerName); - this->__isset.ownerName = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast0; - xfer += iprot->readI32(ecast0); - this->dataProductType = (DataProductType::type)ecast0; - this->__isset.dataProductType = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 8: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->productSize); - this->__isset.productSize = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 9: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->creationTime); - this->__isset.creationTime = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 10: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->lastModifiedTime); - this->__isset.lastModifiedTime = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 11: - if (ftype == ::apache::thrift::protocol::T_MAP) { - { - this->productMetadata.clear(); - uint32_t _size1; - ::apache::thrift::protocol::TType _ktype2; - ::apache::thrift::protocol::TType _vtype3; - xfer += iprot->readMapBegin(_ktype2, _vtype3, _size1); - uint32_t _i5; - for (_i5 = 0; _i5 < _size1; ++_i5) - { - std::string _key6; - xfer += iprot->readString(_key6); - std::string& _val7 = this->productMetadata[_key6]; - xfer += iprot->readString(_val7); - } - xfer += iprot->readMapEnd(); - } - this->__isset.productMetadata = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 12: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->replicaLocations.clear(); - uint32_t _size8; - ::apache::thrift::protocol::TType _etype11; - xfer += iprot->readListBegin(_etype11, _size8); - this->replicaLocations.resize(_size8); - uint32_t _i12; - for (_i12 = 0; _i12 < _size8; ++_i12) - { - xfer += this->replicaLocations[_i12].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.replicaLocations = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t DataProductModel::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("DataProductModel"); - - if (this->__isset.productUri) { - xfer += oprot->writeFieldBegin("productUri", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->productUri); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.gatewayId) { - xfer += oprot->writeFieldBegin("gatewayId", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->gatewayId); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.parentProductUri) { - xfer += oprot->writeFieldBegin("parentProductUri", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->parentProductUri); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.productName) { - xfer += oprot->writeFieldBegin("productName", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString(this->productName); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.productDescription) { - xfer += oprot->writeFieldBegin("productDescription", ::apache::thrift::protocol::T_STRING, 5); - xfer += oprot->writeString(this->productDescription); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.ownerName) { - xfer += oprot->writeFieldBegin("ownerName", ::apache::thrift::protocol::T_STRING, 6); - xfer += oprot->writeString(this->ownerName); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.dataProductType) { - xfer += oprot->writeFieldBegin("dataProductType", ::apache::thrift::protocol::T_I32, 7); - xfer += oprot->writeI32((int32_t)this->dataProductType); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.productSize) { - xfer += oprot->writeFieldBegin("productSize", ::apache::thrift::protocol::T_I32, 8); - xfer += oprot->writeI32(this->productSize); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.creationTime) { - xfer += oprot->writeFieldBegin("creationTime", ::apache::thrift::protocol::T_I64, 9); - xfer += oprot->writeI64(this->creationTime); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.lastModifiedTime) { - xfer += oprot->writeFieldBegin("lastModifiedTime", ::apache::thrift::protocol::T_I64, 10); - xfer += oprot->writeI64(this->lastModifiedTime); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.productMetadata) { - xfer += oprot->writeFieldBegin("productMetadata", ::apache::thrift::protocol::T_MAP, 11); - { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->productMetadata.size())); - std::map<std::string, std::string> ::const_iterator _iter13; - for (_iter13 = this->productMetadata.begin(); _iter13 != this->productMetadata.end(); ++_iter13) - { - xfer += oprot->writeString(_iter13->first); - xfer += oprot->writeString(_iter13->second); - } - xfer += oprot->writeMapEnd(); - } - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.replicaLocations) { - xfer += oprot->writeFieldBegin("replicaLocations", ::apache::thrift::protocol::T_LIST, 12); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->replicaLocations.size())); - std::vector<DataReplicaLocationModel> ::const_iterator _iter14; - for (_iter14 = this->replicaLocations.begin(); _iter14 != this->replicaLocations.end(); ++_iter14) - { - xfer += (*_iter14).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(DataProductModel &a, DataProductModel &b) { - using ::std::swap; - swap(a.productUri, b.productUri); - swap(a.gatewayId, b.gatewayId); - swap(a.parentProductUri, b.parentProductUri); - swap(a.productName, b.productName); - swap(a.productDescription, b.productDescription); - swap(a.ownerName, b.ownerName); - swap(a.dataProductType, b.dataProductType); - swap(a.productSize, b.productSize); - swap(a.creationTime, b.creationTime); - swap(a.lastModifiedTime, b.lastModifiedTime); - swap(a.productMetadata, b.productMetadata); - swap(a.replicaLocations, b.replicaLocations); - swap(a.__isset, b.__isset); -} - -DataProductModel::DataProductModel(const DataProductModel& other15) { - productUri = other15.productUri; - gatewayId = other15.gatewayId; - parentProductUri = other15.parentProductUri; - productName = other15.productName; - productDescription = other15.productDescription; - ownerName = other15.ownerName; - dataProductType = other15.dataProductType; - productSize = other15.productSize; - creationTime = other15.creationTime; - lastModifiedTime = other15.lastModifiedTime; - productMetadata = other15.productMetadata; - replicaLocations = other15.replicaLocations; - __isset = other15.__isset; -} -DataProductModel& DataProductModel::operator=(const DataProductModel& other16) { - productUri = other16.productUri; - gatewayId = other16.gatewayId; - parentProductUri = other16.parentProductUri; - productName = other16.productName; - productDescription = other16.productDescription; - ownerName = other16.ownerName; - dataProductType = other16.dataProductType; - productSize = other16.productSize; - creationTime = other16.creationTime; - lastModifiedTime = other16.lastModifiedTime; - productMetadata = other16.productMetadata; - replicaLocations = other16.replicaLocations; - __isset = other16.__isset; - return *this; -} -void DataProductModel::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "DataProductModel("; - out << "productUri="; (__isset.productUri ? (out << to_string(productUri)) : (out << "<null>")); - out << ", " << "gatewayId="; (__isset.gatewayId ? (out << to_string(gatewayId)) : (out << "<null>")); - out << ", " << "parentProductUri="; (__isset.parentProductUri ? (out << to_string(parentProductUri)) : (out << "<null>")); - out << ", " << "productName="; (__isset.productName ? (out << to_string(productName)) : (out << "<null>")); - out << ", " << "productDescription="; (__isset.productDescription ? (out << to_string(productDescription)) : (out << "<null>")); - out << ", " << "ownerName="; (__isset.ownerName ? (out << to_string(ownerName)) : (out << "<null>")); - out << ", " << "dataProductType="; (__isset.dataProductType ? (out << to_string(dataProductType)) : (out << "<null>")); - out << ", " << "productSize="; (__isset.productSize ? (out << to_string(productSize)) : (out << "<null>")); - out << ", " << "creationTime="; (__isset.creationTime ? (out << to_string(creationTime)) : (out << "<null>")); - out << ", " << "lastModifiedTime="; (__isset.lastModifiedTime ? (out << to_string(lastModifiedTime)) : (out << "<null>")); - out << ", " << "productMetadata="; (__isset.productMetadata ? (out << to_string(productMetadata)) : (out << "<null>")); - out << ", " << "replicaLocations="; (__isset.replicaLocations ? (out << to_string(replicaLocations)) : (out << "<null>")); - out << ")"; -} - - -DataReplicaLocationModel::~DataReplicaLocationModel() throw() { -} - - -void DataReplicaLocationModel::__set_replicaId(const std::string& val) { - this->replicaId = val; -__isset.replicaId = true; -} - -void DataReplicaLocationModel::__set_productUri(const std::string& val) { - this->productUri = val; -__isset.productUri = true; -} - -void DataReplicaLocationModel::__set_replicaName(const std::string& val) { - this->replicaName = val; -__isset.replicaName = true; -} - -void DataReplicaLocationModel::__set_replicaDescription(const std::string& val) { - this->replicaDescription = val; -__isset.replicaDescription = true; -} - -void DataReplicaLocationModel::__set_creationTime(const int64_t val) { - this->creationTime = val; -__isset.creationTime = true; -} - -void DataReplicaLocationModel::__set_lastModifiedTime(const int64_t val) { - this->lastModifiedTime = val; -__isset.lastModifiedTime = true; -} - -void DataReplicaLocationModel::__set_validUntilTime(const int64_t val) { - this->validUntilTime = val; -__isset.validUntilTime = true; -} - -void DataReplicaLocationModel::__set_replicaLocationCategory(const ReplicaLocationCategory::type val) { - this->replicaLocationCategory = val; -__isset.replicaLocationCategory = true; -} - -void DataReplicaLocationModel::__set_replicaPersistentType(const ReplicaPersistentType::type val) { - this->replicaPersistentType = val; -__isset.replicaPersistentType = true; -} - -void DataReplicaLocationModel::__set_storageResourceId(const std::string& val) { - this->storageResourceId = val; -__isset.storageResourceId = true; -} - -void DataReplicaLocationModel::__set_filePath(const std::string& val) { - this->filePath = val; -__isset.filePath = true; -} - -void DataReplicaLocationModel::__set_replicaMetadata(const std::map<std::string, std::string> & val) { - this->replicaMetadata = val; -__isset.replicaMetadata = true; -} - -uint32_t DataReplicaLocationModel::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*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; - - - 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->replicaId); - this->__isset.replicaId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->productUri); - this->__isset.productUri = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->replicaName); - this->__isset.replicaName = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->replicaDescription); - this->__isset.replicaDescription = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->creationTime); - this->__isset.creationTime = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->lastModifiedTime); - this->__isset.lastModifiedTime = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_I64) { - xfer += iprot->readI64(this->validUntilTime); - this->__isset.validUntilTime = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 8: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast17; - xfer += iprot->readI32(ecast17); - this->replicaLocationCategory = (ReplicaLocationCategory::type)ecast17; - this->__isset.replicaLocationCategory = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 9: - if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast18; - xfer += iprot->readI32(ecast18); - this->replicaPersistentType = (ReplicaPersistentType::type)ecast18; - this->__isset.replicaPersistentType = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 10: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->storageResourceId); - this->__isset.storageResourceId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 11: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->filePath); - this->__isset.filePath = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 12: - if (ftype == ::apache::thrift::protocol::T_MAP) { - { - this->replicaMetadata.clear(); - uint32_t _size19; - ::apache::thrift::protocol::TType _ktype20; - ::apache::thrift::protocol::TType _vtype21; - xfer += iprot->readMapBegin(_ktype20, _vtype21, _size19); - uint32_t _i23; - for (_i23 = 0; _i23 < _size19; ++_i23) - { - std::string _key24; - xfer += iprot->readString(_key24); - std::string& _val25 = this->replicaMetadata[_key24]; - xfer += iprot->readString(_val25); - } - xfer += iprot->readMapEnd(); - } - this->__isset.replicaMetadata = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t DataReplicaLocationModel::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("DataReplicaLocationModel"); - - if (this->__isset.replicaId) { - xfer += oprot->writeFieldBegin("replicaId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->replicaId); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.productUri) { - xfer += oprot->writeFieldBegin("productUri", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->productUri); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.replicaName) { - xfer += oprot->writeFieldBegin("replicaName", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->replicaName); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.replicaDescription) { - xfer += oprot->writeFieldBegin("replicaDescription", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString(this->replicaDescription); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.creationTime) { - xfer += oprot->writeFieldBegin("creationTime", ::apache::thrift::protocol::T_I64, 5); - xfer += oprot->writeI64(this->creationTime); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.lastModifiedTime) { - xfer += oprot->writeFieldBegin("lastModifiedTime", ::apache::thrift::protocol::T_I64, 6); - xfer += oprot->writeI64(this->lastModifiedTime); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.validUntilTime) { - xfer += oprot->writeFieldBegin("validUntilTime", ::apache::thrift::protocol::T_I64, 7); - xfer += oprot->writeI64(this->validUntilTime); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.replicaLocationCategory) { - xfer += oprot->writeFieldBegin("replicaLocationCategory", ::apache::thrift::protocol::T_I32, 8); - xfer += oprot->writeI32((int32_t)this->replicaLocationCategory); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.replicaPersistentType) { - xfer += oprot->writeFieldBegin("replicaPersistentType", ::apache::thrift::protocol::T_I32, 9); - xfer += oprot->writeI32((int32_t)this->replicaPersistentType); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.storageResourceId) { - xfer += oprot->writeFieldBegin("storageResourceId", ::apache::thrift::protocol::T_STRING, 10); - xfer += oprot->writeString(this->storageResourceId); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.filePath) { - xfer += oprot->writeFieldBegin("filePath", ::apache::thrift::protocol::T_STRING, 11); - xfer += oprot->writeString(this->filePath); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.replicaMetadata) { - xfer += oprot->writeFieldBegin("replicaMetadata", ::apache::thrift::protocol::T_MAP, 12); - { - xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->replicaMetadata.size())); - std::map<std::string, std::string> ::const_iterator _iter26; - for (_iter26 = this->replicaMetadata.begin(); _iter26 != this->replicaMetadata.end(); ++_iter26) - { - xfer += oprot->writeString(_iter26->first); - xfer += oprot->writeString(_iter26->second); - } - xfer += oprot->writeMapEnd(); - } - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(DataReplicaLocationModel &a, DataReplicaLocationModel &b) { - using ::std::swap; - swap(a.replicaId, b.replicaId); - swap(a.productUri, b.productUri); - swap(a.replicaName, b.replicaName); - swap(a.replicaDescription, b.replicaDescription); - swap(a.creationTime, b.creationTime); - swap(a.lastModifiedTime, b.lastModifiedTime); - swap(a.validUntilTime, b.validUntilTime); - swap(a.replicaLocationCategory, b.replicaLocationCategory); - swap(a.replicaPersistentType, b.replicaPersistentType); - swap(a.storageResourceId, b.storageResourceId); - swap(a.filePath, b.filePath); - swap(a.replicaMetadata, b.replicaMetadata); - swap(a.__isset, b.__isset); -} - -DataReplicaLocationModel::DataReplicaLocationModel(const DataReplicaLocationModel& other27) { - replicaId = other27.replicaId; - productUri = other27.productUri; - replicaName = other27.replicaName; - replicaDescription = other27.replicaDescription; - creationTime = other27.creationTime; - lastModifiedTime = other27.lastModifiedTime; - validUntilTime = other27.validUntilTime; - replicaLocationCategory = other27.replicaLocationCategory; - replicaPersistentType = other27.replicaPersistentType; - storageResourceId = other27.storageResourceId; - filePath = other27.filePath; - replicaMetadata = other27.replicaMetadata; - __isset = other27.__isset; -} -DataReplicaLocationModel& DataReplicaLocationModel::operator=(const DataReplicaLocationModel& other28) { - replicaId = other28.replicaId; - productUri = other28.productUri; - replicaName = other28.replicaName; - replicaDescription = other28.replicaDescription; - creationTime = other28.creationTime; - lastModifiedTime = other28.lastModifiedTime; - validUntilTime = other28.validUntilTime; - replicaLocationCategory = other28.replicaLocationCategory; - replicaPersistentType = other28.replicaPersistentType; - storageResourceId = other28.storageResourceId; - filePath = other28.filePath; - replicaMetadata = other28.replicaMetadata; - __isset = other28.__isset; - return *this; -} -void DataReplicaLocationModel::printTo(std::ostream& out) const { - using ::apache::thrift::to_string; - out << "DataReplicaLocationModel("; - out << "replicaId="; (__isset.replicaId ? (out << to_string(replicaId)) : (out << "<null>")); - out << ", " << "productUri="; (__isset.productUri ? (out << to_string(productUri)) : (out << "<null>")); - out << ", " << "replicaName="; (__isset.replicaName ? (out << to_string(replicaName)) : (out << "<null>")); - out << ", " << "replicaDescription="; (__isset.replicaDescription ? (out << to_string(replicaDescription)) : (out << "<null>")); - out << ", " << "creationTime="; (__isset.creationTime ? (out << to_string(creationTime)) : (out << "<null>")); - out << ", " << "lastModifiedTime="; (__isset.lastModifiedTime ? (out << to_string(lastModifiedTime)) : (out << "<null>")); - out << ", " << "validUntilTime="; (__isset.validUntilTime ? (out << to_string(validUntilTime)) : (out << "<null>")); - out << ", " << "replicaLocationCategory="; (__isset.replicaLocationCategory ? (out << to_string(replicaLocationCategory)) : (out << "<null>")); - out << ", " << "replicaPersistentType="; (__isset.replicaPersistentType ? (out << to_string(replicaPersistentType)) : (out << "<null>")); - out << ", " << "storageResourceId="; (__isset.storageResourceId ? (out << to_string(storageResourceId)) : (out << "<null>")); - out << ", " << "filePath="; (__isset.filePath ? (out << to_string(filePath)) : (out << "<null>")); - out << ", " << "replicaMetadata="; (__isset.replicaMetadata ? (out << to_string(replicaMetadata)) : (out << "<null>")); - out << ")"; -} - -}}}}} // namespace
