airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject [12/16] airavata git commit: refactoring the datacatalog code
Date Tue, 22 Mar 2016 16:37:27 GMT
http://git-wip-us.apache.org/repos/asf/airavata/blob/a963d3f0/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/data_catalog_models_types.h
----------------------------------------------------------------------
diff --git a/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/data_catalog_models_types.h
b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/data_catalog_models_types.h
new file mode 100644
index 0000000..395ceef
--- /dev/null
+++ b/airavata-api/airavata-client-sdks/airavata-cpp-sdk/src/main/resources/lib/airavata/data_catalog_models_types.h
@@ -0,0 +1,355 @@
+/**
+ * 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 data_catalog_models_TYPES_H
+#define data_catalog_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>
+
+
+namespace apache { namespace airavata { namespace model { namespace data { namespace product
{
+
+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 DataProductType {
+  enum type {
+    DIR = 0,
+    FILE = 1,
+    COLLECTION = 2
+  };
+};
+
+extern const std::map<int, const char*> _DataProductType_VALUES_TO_NAMES;
+
+class DataProductModel;
+
+class DataReplicaLocationModel;
+
+typedef struct _DataProductModel__isset {
+  _DataProductModel__isset() : productId(false), gatewayId(false), parentProductId(false),
productName(false), productDescription(false), ownerName(false), dataProductType(false), productSize(false),
creationTime(false), lastModifiedTime(false), productMetadata(false), replicaLocations(false),
childProducts(false) {}
+  bool productId :1;
+  bool gatewayId :1;
+  bool parentProductId :1;
+  bool productName :1;
+  bool productDescription :1;
+  bool ownerName :1;
+  bool dataProductType :1;
+  bool productSize :1;
+  bool creationTime :1;
+  bool lastModifiedTime :1;
+  bool productMetadata :1;
+  bool replicaLocations :1;
+  bool childProducts :1;
+} _DataProductModel__isset;
+
+class DataProductModel {
+ public:
+
+  DataProductModel(const DataProductModel&);
+  DataProductModel& operator=(const DataProductModel&);
+  DataProductModel() : productId(), gatewayId(), parentProductId(), productName(), productDescription(),
ownerName(), dataProductType((DataProductType::type)0), productSize(0), creationTime(0), lastModifiedTime(0)
{
+  }
+
+  virtual ~DataProductModel() throw();
+  std::string productId;
+  std::string gatewayId;
+  std::string parentProductId;
+  std::string productName;
+  std::string productDescription;
+  std::string ownerName;
+  DataProductType::type dataProductType;
+  int32_t productSize;
+  int64_t creationTime;
+  int64_t lastModifiedTime;
+  std::map<std::string, std::string>  productMetadata;
+  std::vector<DataReplicaLocationModel>  replicaLocations;
+  std::vector<DataProductModel>  childProducts;
+
+  _DataProductModel__isset __isset;
+
+  void __set_productId(const std::string& val);
+
+  void __set_gatewayId(const std::string& val);
+
+  void __set_parentProductId(const std::string& val);
+
+  void __set_productName(const std::string& val);
+
+  void __set_productDescription(const std::string& val);
+
+  void __set_ownerName(const std::string& val);
+
+  void __set_dataProductType(const DataProductType::type val);
+
+  void __set_productSize(const int32_t val);
+
+  void __set_creationTime(const int64_t val);
+
+  void __set_lastModifiedTime(const int64_t val);
+
+  void __set_productMetadata(const std::map<std::string, std::string> & val);
+
+  void __set_replicaLocations(const std::vector<DataReplicaLocationModel> & val);
+
+  void __set_childProducts(const std::vector<DataProductModel> & val);
+
+  bool operator == (const DataProductModel & rhs) const
+  {
+    if (__isset.productId != rhs.__isset.productId)
+      return false;
+    else if (__isset.productId && !(productId == rhs.productId))
+      return false;
+    if (__isset.gatewayId != rhs.__isset.gatewayId)
+      return false;
+    else if (__isset.gatewayId && !(gatewayId == rhs.gatewayId))
+      return false;
+    if (__isset.parentProductId != rhs.__isset.parentProductId)
+      return false;
+    else if (__isset.parentProductId && !(parentProductId == rhs.parentProductId))
+      return false;
+    if (__isset.productName != rhs.__isset.productName)
+      return false;
+    else if (__isset.productName && !(productName == rhs.productName))
+      return false;
+    if (__isset.productDescription != rhs.__isset.productDescription)
+      return false;
+    else if (__isset.productDescription && !(productDescription == rhs.productDescription))
+      return false;
+    if (__isset.ownerName != rhs.__isset.ownerName)
+      return false;
+    else if (__isset.ownerName && !(ownerName == rhs.ownerName))
+      return false;
+    if (__isset.dataProductType != rhs.__isset.dataProductType)
+      return false;
+    else if (__isset.dataProductType && !(dataProductType == rhs.dataProductType))
+      return false;
+    if (__isset.productSize != rhs.__isset.productSize)
+      return false;
+    else if (__isset.productSize && !(productSize == rhs.productSize))
+      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.productMetadata != rhs.__isset.productMetadata)
+      return false;
+    else if (__isset.productMetadata && !(productMetadata == rhs.productMetadata))
+      return false;
+    if (__isset.replicaLocations != rhs.__isset.replicaLocations)
+      return false;
+    else if (__isset.replicaLocations && !(replicaLocations == rhs.replicaLocations))
+      return false;
+    if (__isset.childProducts != rhs.__isset.childProducts)
+      return false;
+    else if (__isset.childProducts && !(childProducts == rhs.childProducts))
+      return false;
+    return true;
+  }
+  bool operator != (const DataProductModel &rhs) const {
+    return !(*this == rhs);
+  }
+
+  bool operator < (const DataProductModel & ) 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(DataProductModel &a, DataProductModel &b);
+
+inline std::ostream& operator<<(std::ostream& out, const DataProductModel&
obj)
+{
+  obj.printTo(out);
+  return out;
+}
+
+typedef struct _DataReplicaLocationModel__isset {
+  _DataReplicaLocationModel__isset() : replicaId(false), productId(false), replicaName(false),
replicaDescription(false), creationTime(false), lastModifiedTime(false), validUntilTime(false),
replicaLocationCategory(false), replicaPersistentType(false), storageResourceId(false), fileAbsolutePath(false),
replicaMetadata(false) {}
+  bool replicaId :1;
+  bool productId :1;
+  bool replicaName :1;
+  bool replicaDescription :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(), productId(), replicaName(), replicaDescription(),
creationTime(0), lastModifiedTime(0), validUntilTime(0), replicaLocationCategory((ReplicaLocationCategory::type)0),
replicaPersistentType((ReplicaPersistentType::type)0), storageResourceId(), fileAbsolutePath()
{
+  }
+
+  virtual ~DataReplicaLocationModel() throw();
+  std::string replicaId;
+  std::string productId;
+  std::string replicaName;
+  std::string replicaDescription;
+  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_productId(const std::string& val);
+
+  void __set_replicaName(const std::string& val);
+
+  void __set_replicaDescription(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.productId != rhs.__isset.productId)
+      return false;
+    else if (__isset.productId && !(productId == rhs.productId))
+      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.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


Mime
View raw message