A platform for high-performance distributed tool and library development written in C++. It can be deployed in two different cluster modes: standalone or distributed. API for v0.5.0, released on June 13, 2018.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
CatalogStandardSetMetadata.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * *
3  * Copyright 2018 Rice University *
4  * *
5  * Licensed under the Apache License, Version 2.0 (the "License"); *
6  * you may not use this file except in compliance with the License. *
7  * You may obtain a copy of the License at *
8  * *
9  * http://www.apache.org/licenses/LICENSE-2.0 *
10  * *
11  * Unless required by applicable law or agreed to in writing, software *
12  * distributed under the License is distributed on an "AS IS" BASIS, *
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
14  * See the License for the specific language governing permissions and *
15  * limitations under the License. *
16  * *
17  *****************************************************************************/
18 /*
19  * CatalogStandardSetMetadata.h
20  *
21  */
22 
23 #ifndef SRC_CATALOG_CATALOGSTANDARDSETMETADATA_H_
24 #define SRC_CATALOG_CATALOGSTANDARDSETMETADATA_H_
25 
26 #include <iostream>
27 #include <string>
28 
29 using namespace std;
30 
32 public:
34 
35  CatalogStandardSetMetadata(string pdbSetIdIn, string pdbSetKeyIn,
36  string pdbSetNameIn, string pdbDatabaseIdIn,
37  string pdbDatabaseNameIn, string pdbTypeIdIn,
38  string pdbTypeNameIn);
39 
41 
42  void setValues(string pdbSetIdIn, string pdbSetKeyIn, string pdbSetNameIn,
43  string pdbDatabaseIdIn, string pdbDatabaseNameIn,
44  string pdbTypeIdIn, string pdbTypeNameIn);
45 
47 
48  // The set ID is used as key for storing metadata
49  string getItemKey();
50 
51  string getItemId();
52 
53  string getDBId();
54 
55  string getObjectTypeId();
56 
57  string getItemName();
58 
59  string getDBName();
60 
61  string getObjectTypeName();
62 
63  void setTypeName(string &typeNameIn);
64 
65  void setDBName(string &pdbDatabaseNameIn);
66 
67  void setDBId(string &dbIdIn);
68 
69  void setTypeId(string &typeIdIn);
70 
71  void setItemKey(string &itemKeyIn);
72 
73  void setItemId(string &itemIdIn);
74 
75  void setItemName(string &itemNameIn);
76 
77  string printShort();
78 
79  friend std::ostream &operator<<(std::ostream &out,
80  CatalogStandardSetMetadata &catalogSet) {
81  out << "\nCatalogSet Metadata" << endl;
82  out << "-------------------" << endl;
83  out << " DB Id: " << catalogSet.getDBId() << endl;
84  out << " DB name: " << catalogSet.getDBName() << endl;
85  out << " Set Id: " << catalogSet.getItemId() << endl;
86  out << " Set Key: " << catalogSet.getItemKey() << endl;
87  out << " Set Name: " << catalogSet.getItemName() << endl;
88  out << " Type Id: " << catalogSet.getObjectTypeId() << endl;
89  out << " Type Name: " << catalogSet.getObjectTypeName() << endl;
90  out << "-------------------\n" << endl;
91  return out;
92  }
93 
94 private:
95  string pdbSetId;
96  string setKey;
97  string pdbSetName;
98 
99  string pdbDatabaseId;
101 
102  string typeId;
103  string typeName;
104 };
105 
106 #endif /* SRC_CATALOG_CATALOGSTANDARDSETMETADATA_H_ */
friend std::ostream & operator<<(std::ostream &out, CatalogStandardSetMetadata &catalogSet)