http://git-wip-us.apache.org/repos/asf/airavata/blob/5881af94/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/replica_models_types.cpp ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/replica_models_types.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/replica_models_types.cpp new file mode 100644 index 0000000..ee8a947 --- /dev/null +++ b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/replica_models_types.cpp @@ -0,0 +1,909 @@ +/** + * 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_models_types.h" + +#include <algorithm> +#include <ostream> + +#include <thrift/TToString.h> + +namespace apache { namespace airavata { namespace model { 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 _kDataResourceTypeValues[] = { + DataResourceType::COLLECTION, + DataResourceType::FILE +}; +const char* _kDataResourceTypeNames[] = { + "COLLECTION", + "FILE" +}; +const std::map<int, const char*> _DataResourceType_VALUES_TO_NAMES(::apache::thrift::TEnumIterator(2, _kDataResourceTypeValues, _kDataResourceTypeNames), ::apache::thrift::TEnumIterator(-1, NULL, NULL)); + + +DataResourceModel::~DataResourceModel() throw() { +} + + +void DataResourceModel::__set_resourceId(const std::string& val) { + this->resourceId = val; +__isset.resourceId = true; +} + +void DataResourceModel::__set_gatewayId(const std::string& val) { + this->gatewayId = val; +__isset.gatewayId = true; +} + +void DataResourceModel::__set_parentResourceId(const std::string& val) { + this->parentResourceId = val; +__isset.parentResourceId = true; +} + +void DataResourceModel::__set_resourceName(const std::string& val) { + this->resourceName = val; +__isset.resourceName = true; +} + +void DataResourceModel::__set_resourceDescription(const std::string& val) { + this->resourceDescription = val; +__isset.resourceDescription = true; +} + +void DataResourceModel::__set_ownerName(const std::string& val) { + this->ownerName = val; +__isset.ownerName = true; +} + +void DataResourceModel::__set_sha256Checksum(const std::string& val) { + this->sha256Checksum = val; +__isset.sha256Checksum = true; +} + +void DataResourceModel::__set_dataResourceType(const DataResourceType::type val) { + this->dataResourceType = val; +__isset.dataResourceType = true; +} + +void DataResourceModel::__set_resourceSize(const int32_t val) { + this->resourceSize = val; +__isset.resourceSize = true; +} + +void DataResourceModel::__set_nativeFormat(const std::string& val) { + this->nativeFormat = val; +__isset.nativeFormat = true; +} + +void DataResourceModel::__set_creationTime(const int64_t val) { + this->creationTime = val; +__isset.creationTime = true; +} + +void DataResourceModel::__set_lastModifiedTime(const int64_t val) { + this->lastModifiedTime = val; +__isset.lastModifiedTime = true; +} + +void DataResourceModel::__set_resourceMetadata(const std::map<std::string, std::string> & val) { + this->resourceMetadata = val; +__isset.resourceMetadata = true; +} + +void DataResourceModel::__set_replicaLocations(const std::vector<DataReplicaLocationModel> & val) { + this->replicaLocations = val; +__isset.replicaLocations = true; +} + +void DataResourceModel::__set_childResources(const std::vector<DataResourceModel> & val) { + this->childResources = val; +__isset.childResources = true; +} + +uint32_t DataResourceModel::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->resourceId); + this->__isset.resourceId = 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->parentResourceId); + this->__isset.parentResourceId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->resourceName); + this->__isset.resourceName = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->resourceDescription); + this->__isset.resourceDescription = 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_STRING) { + xfer += iprot->readString(this->sha256Checksum); + this->__isset.sha256Checksum = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 8: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast0; + xfer += iprot->readI32(ecast0); + this->dataResourceType = (DataResourceType::type)ecast0; + this->__isset.dataResourceType = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 9: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->resourceSize); + this->__isset.resourceSize = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 10: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->nativeFormat); + this->__isset.nativeFormat = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 11: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->creationTime); + this->__isset.creationTime = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 12: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->lastModifiedTime); + this->__isset.lastModifiedTime = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 13: + if (ftype == ::apache::thrift::protocol::T_MAP) { + { + this->resourceMetadata.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->resourceMetadata[_key6]; + xfer += iprot->readString(_val7); + } + xfer += iprot->readMapEnd(); + } + this->__isset.resourceMetadata = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 14: + 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; + case 15: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->childResources.clear(); + uint32_t _size13; + ::apache::thrift::protocol::TType _etype16; + xfer += iprot->readListBegin(_etype16, _size13); + this->childResources.resize(_size13); + uint32_t _i17; + for (_i17 = 0; _i17 < _size13; ++_i17) + { + xfer += this->childResources[_i17].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.childResources = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t DataResourceModel::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("DataResourceModel"); + + if (this->__isset.resourceId) { + xfer += oprot->writeFieldBegin("resourceId", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->resourceId); + 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.parentResourceId) { + xfer += oprot->writeFieldBegin("parentResourceId", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->parentResourceId); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.resourceName) { + xfer += oprot->writeFieldBegin("resourceName", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->resourceName); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.resourceDescription) { + xfer += oprot->writeFieldBegin("resourceDescription", ::apache::thrift::protocol::T_STRING, 5); + xfer += oprot->writeString(this->resourceDescription); + 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.sha256Checksum) { + xfer += oprot->writeFieldBegin("sha256Checksum", ::apache::thrift::protocol::T_STRING, 7); + xfer += oprot->writeString(this->sha256Checksum); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.dataResourceType) { + xfer += oprot->writeFieldBegin("dataResourceType", ::apache::thrift::protocol::T_I32, 8); + xfer += oprot->writeI32((int32_t)this->dataResourceType); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.resourceSize) { + xfer += oprot->writeFieldBegin("resourceSize", ::apache::thrift::protocol::T_I32, 9); + xfer += oprot->writeI32(this->resourceSize); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.nativeFormat) { + xfer += oprot->writeFieldBegin("nativeFormat", ::apache::thrift::protocol::T_STRING, 10); + xfer += oprot->writeString(this->nativeFormat); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.creationTime) { + xfer += oprot->writeFieldBegin("creationTime", ::apache::thrift::protocol::T_I64, 11); + xfer += oprot->writeI64(this->creationTime); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.lastModifiedTime) { + xfer += oprot->writeFieldBegin("lastModifiedTime", ::apache::thrift::protocol::T_I64, 12); + xfer += oprot->writeI64(this->lastModifiedTime); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.resourceMetadata) { + xfer += oprot->writeFieldBegin("resourceMetadata", ::apache::thrift::protocol::T_MAP, 13); + { + xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast<uint32_t>(this->resourceMetadata.size())); + std::map<std::string, std::string> ::const_iterator _iter18; + for (_iter18 = this->resourceMetadata.begin(); _iter18 != this->resourceMetadata.end(); ++_iter18) + { + xfer += oprot->writeString(_iter18->first); + xfer += oprot->writeString(_iter18->second); + } + xfer += oprot->writeMapEnd(); + } + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.replicaLocations) { + xfer += oprot->writeFieldBegin("replicaLocations", ::apache::thrift::protocol::T_LIST, 14); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->replicaLocations.size())); + std::vector<DataReplicaLocationModel> ::const_iterator _iter19; + for (_iter19 = this->replicaLocations.begin(); _iter19 != this->replicaLocations.end(); ++_iter19) + { + xfer += (*_iter19).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.childResources) { + xfer += oprot->writeFieldBegin("childResources", ::apache::thrift::protocol::T_LIST, 15); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->childResources.size())); + std::vector<DataResourceModel> ::const_iterator _iter20; + for (_iter20 = this->childResources.begin(); _iter20 != this->childResources.end(); ++_iter20) + { + xfer += (*_iter20).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(DataResourceModel &a, DataResourceModel &b) { + using ::std::swap; + swap(a.resourceId, b.resourceId); + swap(a.gatewayId, b.gatewayId); + swap(a.parentResourceId, b.parentResourceId); + swap(a.resourceName, b.resourceName); + swap(a.resourceDescription, b.resourceDescription); + swap(a.ownerName, b.ownerName); + swap(a.sha256Checksum, b.sha256Checksum); + swap(a.dataResourceType, b.dataResourceType); + swap(a.resourceSize, b.resourceSize); + swap(a.nativeFormat, b.nativeFormat); + swap(a.creationTime, b.creationTime); + swap(a.lastModifiedTime, b.lastModifiedTime); + swap(a.resourceMetadata, b.resourceMetadata); + swap(a.replicaLocations, b.replicaLocations); + swap(a.childResources, b.childResources); + swap(a.__isset, b.__isset); +} + +DataResourceModel::DataResourceModel(const DataResourceModel& other21) { + resourceId = other21.resourceId; + gatewayId = other21.gatewayId; + parentResourceId = other21.parentResourceId; + resourceName = other21.resourceName; + resourceDescription = other21.resourceDescription; + ownerName = other21.ownerName; + sha256Checksum = other21.sha256Checksum; + dataResourceType = other21.dataResourceType; + resourceSize = other21.resourceSize; + nativeFormat = other21.nativeFormat; + creationTime = other21.creationTime; + lastModifiedTime = other21.lastModifiedTime; + resourceMetadata = other21.resourceMetadata; + replicaLocations = other21.replicaLocations; + childResources = other21.childResources; + __isset = other21.__isset; +} +DataResourceModel& DataResourceModel::operator=(const DataResourceModel& other22) { + resourceId = other22.resourceId; + gatewayId = other22.gatewayId; + parentResourceId = other22.parentResourceId; + resourceName = other22.resourceName; + resourceDescription = other22.resourceDescription; + ownerName = other22.ownerName; + sha256Checksum = other22.sha256Checksum; + dataResourceType = other22.dataResourceType; + resourceSize = other22.resourceSize; + nativeFormat = other22.nativeFormat; + creationTime = other22.creationTime; + lastModifiedTime = other22.lastModifiedTime; + resourceMetadata = other22.resourceMetadata; + replicaLocations = other22.replicaLocations; + childResources = other22.childResources; + __isset = other22.__isset; + return *this; +} +void DataResourceModel::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "DataResourceModel("; + out << "resourceId="; (__isset.resourceId ? (out << to_string(resourceId)) : (out << "<null>")); + out << ", " << "gatewayId="; (__isset.gatewayId ? (out << to_string(gatewayId)) : (out << "<null>")); + out << ", " << "parentResourceId="; (__isset.parentResourceId ? (out << to_string(parentResourceId)) : (out << "<null>")); + out << ", " << "resourceName="; (__isset.resourceName ? (out << to_string(resourceName)) : (out << "<null>")); + out << ", " << "resourceDescription="; (__isset.resourceDescription ? (out << to_string(resourceDescription)) : (out << "<null>")); + out << ", " << "ownerName="; (__isset.ownerName ? (out << to_string(ownerName)) : (out << "<null>")); + out << ", " << "sha256Checksum="; (__isset.sha256Checksum ? (out << to_string(sha256Checksum)) : (out << "<null>")); + out << ", " << "dataResourceType="; (__isset.dataResourceType ? (out << to_string(dataResourceType)) : (out << "<null>")); + out << ", " << "resourceSize="; (__isset.resourceSize ? (out << to_string(resourceSize)) : (out << "<null>")); + out << ", " << "nativeFormat="; (__isset.nativeFormat ? (out << to_string(nativeFormat)) : (out << "<null>")); + out << ", " << "creationTime="; (__isset.creationTime ? (out << to_string(creationTime)) : (out << "<null>")); + out << ", " << "lastModifiedTime="; (__isset.lastModifiedTime ? (out << to_string(lastModifiedTime)) : (out << "<null>")); + out << ", " << "resourceMetadata="; (__isset.resourceMetadata ? (out << to_string(resourceMetadata)) : (out << "<null>")); + out << ", " << "replicaLocations="; (__isset.replicaLocations ? (out << to_string(replicaLocations)) : (out << "<null>")); + out << ", " << "childResources="; (__isset.childResources ? (out << to_string(childResources)) : (out << "<null>")); + out << ")"; +} + + +DataReplicaLocationModel::~DataReplicaLocationModel() throw() { +} + + +void DataReplicaLocationModel::__set_replicaId(const std::string& val) { + this->replicaId = val; +__isset.replicaId = true; +} + +void DataReplicaLocationModel::__set_resourceId(const std::string& val) { + this->resourceId = val; +__isset.resourceId = 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_sourceReplicaId(const std::string& val) { + this->sourceReplicaId = val; +__isset.sourceReplicaId = 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_fileAbsolutePath(const std::string& val) { + this->fileAbsolutePath = val; +__isset.fileAbsolutePath = 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->resourceId); + this->__isset.resourceId = 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_STRING) { + xfer += iprot->readString(this->sourceReplicaId); + this->__isset.sourceReplicaId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->creationTime); + this->__isset.creationTime = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->lastModifiedTime); + this->__isset.lastModifiedTime = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 8: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->validUntilTime); + this->__isset.validUntilTime = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 9: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast23; + xfer += iprot->readI32(ecast23); + this->replicaLocationCategory = (ReplicaLocationCategory::type)ecast23; + this->__isset.replicaLocationCategory = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 10: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast24; + xfer += iprot->readI32(ecast24); + this->replicaPersistentType = (ReplicaPersistentType::type)ecast24; + this->__isset.replicaPersistentType = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 11: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->storageResourceId); + this->__isset.storageResourceId = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 12: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->fileAbsolutePath); + this->__isset.fileAbsolutePath = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 13: + if (ftype == ::apache::thrift::protocol::T_MAP) { + { + this->replicaMetadata.clear(); + uint32_t _size25; + ::apache::thrift::protocol::TType _ktype26; + ::apache::thrift::protocol::TType _vtype27; + xfer += iprot->readMapBegin(_ktype26, _vtype27, _size25); + uint32_t _i29; + for (_i29 = 0; _i29 < _size25; ++_i29) + { + std::string _key30; + xfer += iprot->readString(_key30); + std::string& _val31 = this->replicaMetadata[_key30]; + xfer += iprot->readString(_val31); + } + 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.resourceId) { + xfer += oprot->writeFieldBegin("resourceId", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->resourceId); + 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.sourceReplicaId) { + xfer += oprot->writeFieldBegin("sourceReplicaId", ::apache::thrift::protocol::T_STRING, 5); + xfer += oprot->writeString(this->sourceReplicaId); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.creationTime) { + xfer += oprot->writeFieldBegin("creationTime", ::apache::thrift::protocol::T_I64, 6); + xfer += oprot->writeI64(this->creationTime); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.lastModifiedTime) { + xfer += oprot->writeFieldBegin("lastModifiedTime", ::apache::thrift::protocol::T_I64, 7); + xfer += oprot->writeI64(this->lastModifiedTime); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.validUntilTime) { + xfer += oprot->writeFieldBegin("validUntilTime", ::apache::thrift::protocol::T_I64, 8); + xfer += oprot->writeI64(this->validUntilTime); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.replicaLocationCategory) { + xfer += oprot->writeFieldBegin("replicaLocationCategory", ::apache::thrift::protocol::T_I32, 9); + xfer += oprot->writeI32((int32_t)this->replicaLocationCategory); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.replicaPersistentType) { + xfer += oprot->writeFieldBegin("replicaPersistentType", ::apache::thrift::protocol::T_I32, 10); + xfer += oprot->writeI32((int32_t)this->replicaPersistentType); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.storageResourceId) { + xfer += oprot->writeFieldBegin("storageResourceId", ::apache::thrift::protocol::T_STRING, 11); + xfer += oprot->writeString(this->storageResourceId); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.fileAbsolutePath) { + xfer += oprot->writeFieldBegin("fileAbsolutePath", ::apache::thrift::protocol::T_STRING, 12); + xfer += oprot->writeString(this->fileAbsolutePath); + xfer += oprot->writeFieldEnd(); + } + if (this->__isset.replicaMetadata) { + xfer += oprot->writeFieldBegin("replicaMetadata", ::apache::thrift::protocol::T_MAP, 13); + { + 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 _iter32; + for (_iter32 = this->replicaMetadata.begin(); _iter32 != this->replicaMetadata.end(); ++_iter32) + { + xfer += oprot->writeString(_iter32->first); + xfer += oprot->writeString(_iter32->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.resourceId, b.resourceId); + swap(a.replicaName, b.replicaName); + swap(a.replicaDescription, b.replicaDescription); + swap(a.sourceReplicaId, b.sourceReplicaId); + 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.fileAbsolutePath, b.fileAbsolutePath); + swap(a.replicaMetadata, b.replicaMetadata); + swap(a.__isset, b.__isset); +} + +DataReplicaLocationModel::DataReplicaLocationModel(const DataReplicaLocationModel& other33) { + replicaId = other33.replicaId; + resourceId = other33.resourceId; + replicaName = other33.replicaName; + replicaDescription = other33.replicaDescription; + sourceReplicaId = other33.sourceReplicaId; + creationTime = other33.creationTime; + lastModifiedTime = other33.lastModifiedTime; + validUntilTime = other33.validUntilTime; + replicaLocationCategory = other33.replicaLocationCategory; + replicaPersistentType = other33.replicaPersistentType; + storageResourceId = other33.storageResourceId; + fileAbsolutePath = other33.fileAbsolutePath; + replicaMetadata = other33.replicaMetadata; + __isset = other33.__isset; +} +DataReplicaLocationModel& DataReplicaLocationModel::operator=(const DataReplicaLocationModel& other34) { + replicaId = other34.replicaId; + resourceId = other34.resourceId; + replicaName = other34.replicaName; + replicaDescription = other34.replicaDescription; + sourceReplicaId = other34.sourceReplicaId; + creationTime = other34.creationTime; + lastModifiedTime = other34.lastModifiedTime; + validUntilTime = other34.validUntilTime; + replicaLocationCategory = other34.replicaLocationCategory; + replicaPersistentType = other34.replicaPersistentType; + storageResourceId = other34.storageResourceId; + fileAbsolutePath = other34.fileAbsolutePath; + replicaMetadata = other34.replicaMetadata; + __isset = other34.__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 << ", " << "resourceId="; (__isset.resourceId ? (out << to_string(resourceId)) : (out << "<null>")); + out << ", " << "replicaName="; (__isset.replicaName ? (out << to_string(replicaName)) : (out << "<null>")); + out << ", " << "replicaDescription="; (__isset.replicaDescription ? (out << to_string(replicaDescription)) : (out << "<null>")); + out << ", " << "sourceReplicaId="; (__isset.sourceReplicaId ? (out << to_string(sourceReplicaId)) : (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 << ", " << "fileAbsolutePath="; (__isset.fileAbsolutePath ? (out << to_string(fileAbsolutePath)) : (out << "<null>")); + out << ", " << "replicaMetadata="; (__isset.replicaMetadata ? (out << to_string(replicaMetadata)) : (out << "<null>")); + out << ")"; +} + +}}}} // namespace
http://git-wip-us.apache.org/repos/asf/airavata/blob/5881af94/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/replica_models_types.h ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/replica_models_types.h b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/replica_models_types.h new file mode 100644 index 0000000..b40cb2d --- /dev/null +++ b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/replica_models_types.h @@ -0,0 +1,379 @@ +/** + * 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_models_TYPES_H +#define replica_models_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 "data_movement_models_types.h" + + +namespace apache { namespace airavata { namespace model { namespace replica { + +struct ReplicaLocationCategory { + enum type { + GATEWAY_DATA_STORE = 0, + COMPUTE_RESOURCE = 1, + LONG_TERM_STORAGE_RESOURCE = 2, + OTHER = 3 + }; +}; + +extern const std::map<int, const char*> _ReplicaLocationCategory_VALUES_TO_NAMES; + +struct ReplicaPersistentType { + enum type { + TRANSIENT = 0, + PERSISTENT = 1 + }; +}; + +extern const std::map<int, const char*> _ReplicaPersistentType_VALUES_TO_NAMES; + +struct DataResourceType { + enum type { + COLLECTION = 0, + FILE = 1 + }; +}; + +extern const std::map<int, const char*> _DataResourceType_VALUES_TO_NAMES; + +class DataResourceModel; + +class DataReplicaLocationModel; + +typedef struct _DataResourceModel__isset { + _DataResourceModel__isset() : resourceId(false), gatewayId(false), parentResourceId(false), resourceName(false), resourceDescription(false), ownerName(false), sha256Checksum(false), dataResourceType(false), resourceSize(false), nativeFormat(false), creationTime(false), lastModifiedTime(false), resourceMetadata(false), replicaLocations(false), childResources(false) {} + bool resourceId :1; + bool gatewayId :1; + bool parentResourceId :1; + bool resourceName :1; + bool resourceDescription :1; + bool ownerName :1; + bool sha256Checksum :1; + bool dataResourceType :1; + bool resourceSize :1; + bool nativeFormat :1; + bool creationTime :1; + bool lastModifiedTime :1; + bool resourceMetadata :1; + bool replicaLocations :1; + bool childResources :1; +} _DataResourceModel__isset; + +class DataResourceModel { + public: + + DataResourceModel(const DataResourceModel&); + DataResourceModel& operator=(const DataResourceModel&); + DataResourceModel() : resourceId(), gatewayId(), parentResourceId(), resourceName(), resourceDescription(), ownerName(), sha256Checksum(), dataResourceType((DataResourceType::type)0), resourceSize(0), nativeFormat(), creationTime(0), lastModifiedTime(0) { + } + + virtual ~DataResourceModel() throw(); + std::string resourceId; + std::string gatewayId; + std::string parentResourceId; + std::string resourceName; + std::string resourceDescription; + std::string ownerName; + std::string sha256Checksum; + DataResourceType::type dataResourceType; + int32_t resourceSize; + std::string nativeFormat; + int64_t creationTime; + int64_t lastModifiedTime; + std::map<std::string, std::string> resourceMetadata; + std::vector<DataReplicaLocationModel> replicaLocations; + std::vector<DataResourceModel> childResources; + + _DataResourceModel__isset __isset; + + void __set_resourceId(const std::string& val); + + void __set_gatewayId(const std::string& val); + + void __set_parentResourceId(const std::string& val); + + void __set_resourceName(const std::string& val); + + void __set_resourceDescription(const std::string& val); + + void __set_ownerName(const std::string& val); + + void __set_sha256Checksum(const std::string& val); + + void __set_dataResourceType(const DataResourceType::type val); + + void __set_resourceSize(const int32_t val); + + void __set_nativeFormat(const std::string& val); + + void __set_creationTime(const int64_t val); + + void __set_lastModifiedTime(const int64_t val); + + void __set_resourceMetadata(const std::map<std::string, std::string> & val); + + void __set_replicaLocations(const std::vector<DataReplicaLocationModel> & val); + + void __set_childResources(const std::vector<DataResourceModel> & val); + + bool operator == (const DataResourceModel & rhs) const + { + if (__isset.resourceId != rhs.__isset.resourceId) + return false; + else if (__isset.resourceId && !(resourceId == rhs.resourceId)) + return false; + if (__isset.gatewayId != rhs.__isset.gatewayId) + return false; + else if (__isset.gatewayId && !(gatewayId == rhs.gatewayId)) + return false; + if (__isset.parentResourceId != rhs.__isset.parentResourceId) + return false; + else if (__isset.parentResourceId && !(parentResourceId == rhs.parentResourceId)) + return false; + if (__isset.resourceName != rhs.__isset.resourceName) + return false; + else if (__isset.resourceName && !(resourceName == rhs.resourceName)) + return false; + if (__isset.resourceDescription != rhs.__isset.resourceDescription) + return false; + else if (__isset.resourceDescription && !(resourceDescription == rhs.resourceDescription)) + return false; + if (__isset.ownerName != rhs.__isset.ownerName) + return false; + else if (__isset.ownerName && !(ownerName == rhs.ownerName)) + return false; + if (__isset.sha256Checksum != rhs.__isset.sha256Checksum) + return false; + else if (__isset.sha256Checksum && !(sha256Checksum == rhs.sha256Checksum)) + return false; + if (__isset.dataResourceType != rhs.__isset.dataResourceType) + return false; + else if (__isset.dataResourceType && !(dataResourceType == rhs.dataResourceType)) + return false; + if (__isset.resourceSize != rhs.__isset.resourceSize) + return false; + else if (__isset.resourceSize && !(resourceSize == rhs.resourceSize)) + return false; + if (__isset.nativeFormat != rhs.__isset.nativeFormat) + return false; + else if (__isset.nativeFormat && !(nativeFormat == rhs.nativeFormat)) + return false; + if (__isset.creationTime != rhs.__isset.creationTime) + return false; + else if (__isset.creationTime && !(creationTime == rhs.creationTime)) + return false; + if (__isset.lastModifiedTime != rhs.__isset.lastModifiedTime) + return false; + else if (__isset.lastModifiedTime && !(lastModifiedTime == rhs.lastModifiedTime)) + return false; + if (__isset.resourceMetadata != rhs.__isset.resourceMetadata) + return false; + else if (__isset.resourceMetadata && !(resourceMetadata == rhs.resourceMetadata)) + return false; + if (__isset.replicaLocations != rhs.__isset.replicaLocations) + return false; + else if (__isset.replicaLocations && !(replicaLocations == rhs.replicaLocations)) + return false; + if (__isset.childResources != rhs.__isset.childResources) + return false; + else if (__isset.childResources && !(childResources == rhs.childResources)) + return false; + return true; + } + bool operator != (const DataResourceModel &rhs) const { + return !(*this == rhs); + } + + bool operator < (const DataResourceModel & ) 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(DataResourceModel &a, DataResourceModel &b); + +inline std::ostream& operator<<(std::ostream& out, const DataResourceModel& obj) +{ + obj.printTo(out); + return out; +} + +typedef struct _DataReplicaLocationModel__isset { + _DataReplicaLocationModel__isset() : replicaId(false), resourceId(false), replicaName(false), replicaDescription(false), sourceReplicaId(false), creationTime(false), lastModifiedTime(false), validUntilTime(false), replicaLocationCategory(false), replicaPersistentType(false), storageResourceId(false), fileAbsolutePath(false), replicaMetadata(false) {} + bool replicaId :1; + bool resourceId :1; + bool replicaName :1; + bool replicaDescription :1; + bool sourceReplicaId :1; + bool creationTime :1; + bool lastModifiedTime :1; + bool validUntilTime :1; + bool replicaLocationCategory :1; + bool replicaPersistentType :1; + bool storageResourceId :1; + bool fileAbsolutePath :1; + bool replicaMetadata :1; +} _DataReplicaLocationModel__isset; + +class DataReplicaLocationModel { + public: + + DataReplicaLocationModel(const DataReplicaLocationModel&); + DataReplicaLocationModel& operator=(const DataReplicaLocationModel&); + DataReplicaLocationModel() : replicaId(), resourceId(), replicaName(), replicaDescription(), sourceReplicaId(), creationTime(0), lastModifiedTime(0), validUntilTime(0), replicaLocationCategory((ReplicaLocationCategory::type)0), replicaPersistentType((ReplicaPersistentType::type)0), storageResourceId(), fileAbsolutePath() { + } + + virtual ~DataReplicaLocationModel() throw(); + std::string replicaId; + std::string resourceId; + std::string replicaName; + std::string replicaDescription; + std::string sourceReplicaId; + int64_t creationTime; + int64_t lastModifiedTime; + int64_t validUntilTime; + ReplicaLocationCategory::type replicaLocationCategory; + ReplicaPersistentType::type replicaPersistentType; + std::string storageResourceId; + std::string fileAbsolutePath; + std::map<std::string, std::string> replicaMetadata; + + _DataReplicaLocationModel__isset __isset; + + void __set_replicaId(const std::string& val); + + void __set_resourceId(const std::string& val); + + void __set_replicaName(const std::string& val); + + void __set_replicaDescription(const std::string& val); + + void __set_sourceReplicaId(const std::string& val); + + void __set_creationTime(const int64_t val); + + void __set_lastModifiedTime(const int64_t val); + + void __set_validUntilTime(const int64_t val); + + void __set_replicaLocationCategory(const ReplicaLocationCategory::type val); + + void __set_replicaPersistentType(const ReplicaPersistentType::type val); + + void __set_storageResourceId(const std::string& val); + + void __set_fileAbsolutePath(const std::string& val); + + void __set_replicaMetadata(const std::map<std::string, std::string> & val); + + bool operator == (const DataReplicaLocationModel & rhs) const + { + if (__isset.replicaId != rhs.__isset.replicaId) + return false; + else if (__isset.replicaId && !(replicaId == rhs.replicaId)) + return false; + if (__isset.resourceId != rhs.__isset.resourceId) + return false; + else if (__isset.resourceId && !(resourceId == rhs.resourceId)) + return false; + if (__isset.replicaName != rhs.__isset.replicaName) + return false; + else if (__isset.replicaName && !(replicaName == rhs.replicaName)) + return false; + if (__isset.replicaDescription != rhs.__isset.replicaDescription) + return false; + else if (__isset.replicaDescription && !(replicaDescription == rhs.replicaDescription)) + return false; + if (__isset.sourceReplicaId != rhs.__isset.sourceReplicaId) + return false; + else if (__isset.sourceReplicaId && !(sourceReplicaId == rhs.sourceReplicaId)) + return false; + if (__isset.creationTime != rhs.__isset.creationTime) + return false; + else if (__isset.creationTime && !(creationTime == rhs.creationTime)) + return false; + if (__isset.lastModifiedTime != rhs.__isset.lastModifiedTime) + return false; + else if (__isset.lastModifiedTime && !(lastModifiedTime == rhs.lastModifiedTime)) + return false; + if (__isset.validUntilTime != rhs.__isset.validUntilTime) + return false; + else if (__isset.validUntilTime && !(validUntilTime == rhs.validUntilTime)) + return false; + if (__isset.replicaLocationCategory != rhs.__isset.replicaLocationCategory) + return false; + else if (__isset.replicaLocationCategory && !(replicaLocationCategory == rhs.replicaLocationCategory)) + return false; + if (__isset.replicaPersistentType != rhs.__isset.replicaPersistentType) + return false; + else if (__isset.replicaPersistentType && !(replicaPersistentType == rhs.replicaPersistentType)) + return false; + if (__isset.storageResourceId != rhs.__isset.storageResourceId) + return false; + else if (__isset.storageResourceId && !(storageResourceId == rhs.storageResourceId)) + return false; + if (__isset.fileAbsolutePath != rhs.__isset.fileAbsolutePath) + return false; + else if (__isset.fileAbsolutePath && !(fileAbsolutePath == rhs.fileAbsolutePath)) + return false; + if (__isset.replicaMetadata != rhs.__isset.replicaMetadata) + return false; + else if (__isset.replicaMetadata && !(replicaMetadata == rhs.replicaMetadata)) + return false; + return true; + } + bool operator != (const DataReplicaLocationModel &rhs) const { + return !(*this == rhs); + } + + bool operator < (const DataReplicaLocationModel & ) 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(DataReplicaLocationModel &a, DataReplicaLocationModel &b); + +inline std::ostream& operator<<(std::ostream& out, const DataReplicaLocationModel& obj) +{ + obj.printTo(out); + return out; +} + +}}}} // namespace + +#endif http://git-wip-us.apache.org/repos/asf/airavata/blob/5881af94/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/workflowAPI_constants.cpp ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/workflowAPI_constants.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/workflowAPI_constants.cpp deleted file mode 100644 index 4cca0d9..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/workflowAPI_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 "workflowAPI_constants.h" - -namespace airavata { namespace api { namespace workflow { - -const workflowAPIConstants g_workflowAPI_constants; - -workflowAPIConstants::workflowAPIConstants() { - AIRAVATA_API_VERSION = "0.13.0"; - -} - -}}} // namespace - http://git-wip-us.apache.org/repos/asf/airavata/blob/5881af94/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/workflowAPI_constants.h ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/workflowAPI_constants.h b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/workflowAPI_constants.h deleted file mode 100644 index 889f32c..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/workflowAPI_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 workflowAPI_CONSTANTS_H -#define workflowAPI_CONSTANTS_H - -#include "workflowAPI_types.h" - -namespace airavata { namespace api { namespace workflow { - -class workflowAPIConstants { - public: - workflowAPIConstants(); - - std::string AIRAVATA_API_VERSION; -}; - -extern const workflowAPIConstants g_workflowAPI_constants; - -}}} // namespace - -#endif http://git-wip-us.apache.org/repos/asf/airavata/blob/5881af94/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/workflowAPI_types.cpp ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/workflowAPI_types.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/workflowAPI_types.cpp deleted file mode 100644 index 24fcb32..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/workflowAPI_types.cpp +++ /dev/null @@ -1,30 +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 "workflowAPI_types.h" - -#include <algorithm> - -namespace airavata { namespace api { namespace workflow { - -}}} // namespace http://git-wip-us.apache.org/repos/asf/airavata/blob/5881af94/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/workflowAPI_types.h ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/workflowAPI_types.h b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/workflowAPI_types.h deleted file mode 100644 index d4ba089..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/workflowAPI_types.h +++ /dev/null @@ -1,47 +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 workflowAPI_TYPES_H -#define workflowAPI_TYPES_H - -#include <thrift/Thrift.h> -#include <thrift/TApplicationException.h> -#include <thrift/protocol/TProtocol.h> -#include <thrift/transport/TTransport.h> - -#include <thrift/cxxfunctional.h> -#include "airavataErrors_types.h" -#include "airavataDataModel_types.h" -#include "experimentModel_types.h" -#include "workspaceModel_types.h" -#include "computeResourceModel_types.h" -#include "applicationDeploymentModel_types.h" -#include "applicationInterfaceModel_types.h" -#include "workflowDataModel_types.h" - - -namespace airavata { namespace api { namespace workflow { - -}}} // namespace - -#endif http://git-wip-us.apache.org/repos/asf/airavata/blob/5881af94/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/workflowDataModel_constants.cpp ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/workflowDataModel_constants.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/workflowDataModel_constants.cpp deleted file mode 100644 index 57e5c51..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/workflowDataModel_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 "workflowDataModel_constants.h" - - - -const workflowDataModelConstants g_workflowDataModel_constants; - -workflowDataModelConstants::workflowDataModelConstants() { - DEFAULT_ID = "DO_NOT_SET_AT_CLIENTS"; - -} - - - http://git-wip-us.apache.org/repos/asf/airavata/blob/5881af94/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/workflowDataModel_constants.h ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/workflowDataModel_constants.h b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/workflowDataModel_constants.h deleted file mode 100644 index ba51411..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/workflowDataModel_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 workflowDataModel_CONSTANTS_H -#define workflowDataModel_CONSTANTS_H - -#include "workflowDataModel_types.h" - - - -class workflowDataModelConstants { - public: - workflowDataModelConstants(); - - std::string DEFAULT_ID; -}; - -extern const workflowDataModelConstants g_workflowDataModel_constants; - - - -#endif http://git-wip-us.apache.org/repos/asf/airavata/blob/5881af94/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/workflowDataModel_types.cpp ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/workflowDataModel_types.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/workflowDataModel_types.cpp deleted file mode 100644 index 1f8f97e..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/workflowDataModel_types.cpp +++ /dev/null @@ -1,207 +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 "workflowDataModel_types.h" - -#include <algorithm> - - - -const char* Workflow::ascii_fingerprint = "5BEAC53013828D81DABDECEEE0E170C2"; -const uint8_t Workflow::binary_fingerprint[16] = {0x5B,0xEA,0xC5,0x30,0x13,0x82,0x8D,0x81,0xDA,0xBD,0xEC,0xEE,0xE0,0xE1,0x70,0xC2}; - -uint32_t Workflow::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_templateId = false; - 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->templateId); - isset_templateId = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->name); - isset_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->graph); - this->__isset.graph = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readBinary(this->image); - this->__isset.image = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->workflowInputs.clear(); - uint32_t _size0; - ::apache::thrift::protocol::TType _etype3; - xfer += iprot->readListBegin(_etype3, _size0); - this->workflowInputs.resize(_size0); - uint32_t _i4; - for (_i4 = 0; _i4 < _size0; ++_i4) - { - xfer += this->workflowInputs[_i4].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.workflowInputs = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->workflowOutputs.clear(); - uint32_t _size5; - ::apache::thrift::protocol::TType _etype8; - xfer += iprot->readListBegin(_etype8, _size5); - this->workflowOutputs.resize(_size5); - uint32_t _i9; - for (_i9 = 0; _i9 < _size5; ++_i9) - { - xfer += this->workflowOutputs[_i9].read(iprot); - } - xfer += iprot->readListEnd(); - } - this->__isset.workflowOutputs = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - if (!isset_templateId) - throw TProtocolException(TProtocolException::INVALID_DATA); - if (!isset_name) - throw TProtocolException(TProtocolException::INVALID_DATA); - return xfer; -} - -uint32_t Workflow::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - xfer += oprot->writeStructBegin("Workflow"); - - xfer += oprot->writeFieldBegin("templateId", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->templateId); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->name); - xfer += oprot->writeFieldEnd(); - - if (this->__isset.graph) { - xfer += oprot->writeFieldBegin("graph", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->graph); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.image) { - xfer += oprot->writeFieldBegin("image", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeBinary(this->image); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.workflowInputs) { - xfer += oprot->writeFieldBegin("workflowInputs", ::apache::thrift::protocol::T_LIST, 5); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->workflowInputs.size())); - std::vector< ::apache::airavata::model::appcatalog::appinterface::InputDataObjectType> ::const_iterator _iter10; - for (_iter10 = this->workflowInputs.begin(); _iter10 != this->workflowInputs.end(); ++_iter10) - { - xfer += (*_iter10).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.workflowOutputs) { - xfer += oprot->writeFieldBegin("workflowOutputs", ::apache::thrift::protocol::T_LIST, 6); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast<uint32_t>(this->workflowOutputs.size())); - std::vector< ::apache::airavata::model::appcatalog::appinterface::OutputDataObjectType> ::const_iterator _iter11; - for (_iter11 = this->workflowOutputs.begin(); _iter11 != this->workflowOutputs.end(); ++_iter11) - { - xfer += (*_iter11).write(oprot); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -void swap(Workflow &a, Workflow &b) { - using ::std::swap; - swap(a.templateId, b.templateId); - swap(a.name, b.name); - swap(a.graph, b.graph); - swap(a.image, b.image); - swap(a.workflowInputs, b.workflowInputs); - swap(a.workflowOutputs, b.workflowOutputs); - swap(a.__isset, b.__isset); -} - - http://git-wip-us.apache.org/repos/asf/airavata/blob/5881af94/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/workflowDataModel_types.h ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/workflowDataModel_types.h b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/workflowDataModel_types.h deleted file mode 100644 index 8b1a774..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/workflowDataModel_types.h +++ /dev/null @@ -1,133 +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 workflowDataModel_TYPES_H -#define workflowDataModel_TYPES_H - -#include <thrift/Thrift.h> -#include <thrift/TApplicationException.h> -#include <thrift/protocol/TProtocol.h> -#include <thrift/transport/TTransport.h> - -#include <thrift/cxxfunctional.h> -#include "applicationInterfaceModel_types.h" - - - - -typedef struct _Workflow__isset { - _Workflow__isset() : graph(false), image(false), workflowInputs(false), workflowOutputs(false) {} - bool graph; - bool image; - bool workflowInputs; - bool workflowOutputs; -} _Workflow__isset; - -class Workflow { - public: - - static const char* ascii_fingerprint; // = "5BEAC53013828D81DABDECEEE0E170C2"; - static const uint8_t binary_fingerprint[16]; // = {0x5B,0xEA,0xC5,0x30,0x13,0x82,0x8D,0x81,0xDA,0xBD,0xEC,0xEE,0xE0,0xE1,0x70,0xC2}; - - Workflow() : templateId("DO_NOT_SET_AT_CLIENTS"), name(), graph(), image() { - } - - virtual ~Workflow() throw() {} - - std::string templateId; - std::string name; - std::string graph; - std::string image; - std::vector< ::apache::airavata::model::appcatalog::appinterface::InputDataObjectType> workflowInputs; - std::vector< ::apache::airavata::model::appcatalog::appinterface::OutputDataObjectType> workflowOutputs; - - _Workflow__isset __isset; - - void __set_templateId(const std::string& val) { - templateId = val; - } - - void __set_name(const std::string& val) { - name = val; - } - - void __set_graph(const std::string& val) { - graph = val; - __isset.graph = true; - } - - void __set_image(const std::string& val) { - image = val; - __isset.image = true; - } - - void __set_workflowInputs(const std::vector< ::apache::airavata::model::appcatalog::appinterface::InputDataObjectType> & val) { - workflowInputs = val; - __isset.workflowInputs = true; - } - - void __set_workflowOutputs(const std::vector< ::apache::airavata::model::appcatalog::appinterface::OutputDataObjectType> & val) { - workflowOutputs = val; - __isset.workflowOutputs = true; - } - - bool operator == (const Workflow & rhs) const - { - if (!(templateId == rhs.templateId)) - return false; - if (!(name == rhs.name)) - return false; - if (__isset.graph != rhs.__isset.graph) - return false; - else if (__isset.graph && !(graph == rhs.graph)) - return false; - if (__isset.image != rhs.__isset.image) - return false; - else if (__isset.image && !(image == rhs.image)) - return false; - if (__isset.workflowInputs != rhs.__isset.workflowInputs) - return false; - else if (__isset.workflowInputs && !(workflowInputs == rhs.workflowInputs)) - return false; - if (__isset.workflowOutputs != rhs.__isset.workflowOutputs) - return false; - else if (__isset.workflowOutputs && !(workflowOutputs == rhs.workflowOutputs)) - return false; - return true; - } - bool operator != (const Workflow &rhs) const { - return !(*this == rhs); - } - - bool operator < (const Workflow & ) const; - - uint32_t read(::apache::thrift::protocol::TProtocol* iprot); - uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; - -}; - -void swap(Workflow &a, Workflow &b); - - - -#endif http://git-wip-us.apache.org/repos/asf/airavata/blob/5881af94/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/workspaceModel_constants.cpp ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/workspaceModel_constants.cpp b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/workspaceModel_constants.cpp deleted file mode 100644 index 1cb752b..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/workspaceModel_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.1) - * - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING - * @generated - */ -#include "workspaceModel_constants.h" - -namespace apache { namespace airavata { namespace model { namespace workspace { - -const workspaceModelConstants g_workspaceModel_constants; - -workspaceModelConstants::workspaceModelConstants() { -} - -}}}} // namespace - http://git-wip-us.apache.org/repos/asf/airavata/blob/5881af94/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/workspaceModel_constants.h ---------------------------------------------------------------------- diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/workspaceModel_constants.h b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/workspaceModel_constants.h deleted file mode 100644 index 1d2fe8f..0000000 --- a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/workspaceModel_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.1) - * - * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING - * @generated - */ -#ifndef workspaceModel_CONSTANTS_H -#define workspaceModel_CONSTANTS_H - -#include "workspaceModel_types.h" - -namespace apache { namespace airavata { namespace model { namespace workspace { - -class workspaceModelConstants { - public: - workspaceModelConstants(); - -}; - -extern const workspaceModelConstants g_workspaceModel_constants; - -}}}} // namespace - -#endif
