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
CatalogStandardUserTypeMetadata.cc
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  * CatalogStandardUserTypeMetadata.cc
20  *
21  */
22 
24 
25 using namespace std;
26 
28 
30  string itemIdIn, string objectIDIn, string objectTypeIn,
31  string objectNameIn, string libraryBytesIn)
32  : itemId(itemIdIn), objectID(objectIDIn), objectType(objectTypeIn),
33  objectName(objectNameIn), libraryBytes(libraryBytesIn) {}
34 
36  const CatalogStandardUserTypeMetadata &pdbCatalogEntryToCopy) {
37  itemId = pdbCatalogEntryToCopy.itemId;
38  objectID = pdbCatalogEntryToCopy.objectID;
39  objectType = pdbCatalogEntryToCopy.objectType;
40  objectName = pdbCatalogEntryToCopy.objectName;
41  libraryBytes = pdbCatalogEntryToCopy.libraryBytes;
42 }
43 
45 
47 
49 
51 
53 
55 
57  return libraryBytes;
58 }
59 
61  objectID = objectIdIn;
62 }
63 
65  itemId = itemIdIn;
66 }
67 
69  objectName = itemKeyIn;
70 }
71 
73  objectName = itemIdIn;
74 }
75 
77  libraryBytes = bytesIn;
78 }
79 
81  string output;
82  output = " Type ID: ";
83  output.append(getObjectID().c_str())
84  .append(" | Type Name: ")
85  .append(getItemName().c_str());
86  return output;
87 }