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.
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
CatalogPrintMetadata.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
* CatalogPrintMetadata.h
20
*
21
*/
22
23
#ifndef CATALOG_PRINT_METADATA_H_
24
#define CATALOG_PRINT_METADATA_H_
25
26
#include <iostream>
27
#include "
Object.h
"
28
#include "
PDBString.h
"
29
#include "
PDBVector.h
"
30
31
// PRELOAD %CatalogPrintMetadata%
32
33
using namespace
std;
34
35
namespace
pdb {
36
37
// This class serves to retrieve metadata from the Catalog and returns it
38
// as a String
39
40
class
CatalogPrintMetadata
:
public
Object
{
41
public
:
42
CatalogPrintMetadata
() {}
43
44
CatalogPrintMetadata
(
45
String
itemName,
46
String
timeStamp,
47
String
categoryIn)
48
: itemName(itemName),
49
timeStamp(timeStamp),
50
category(categoryIn) {}
51
52
53
// Copy constructor
54
CatalogPrintMetadata
(
const
CatalogPrintMetadata
& pdbItemToCopy) {
55
itemName = pdbItemToCopy.
itemName
;
56
timeStamp = pdbItemToCopy.
timeStamp
;
57
category = pdbItemToCopy.
category
;
58
59
}
60
61
// Copy constructor
62
CatalogPrintMetadata
(
const
Handle<CatalogPrintMetadata>
& pdbItemToCopy) {
63
itemName = pdbItemToCopy->getItemName();
64
timeStamp = pdbItemToCopy->getTimeStamp();
65
category = pdbItemToCopy->getCategoryToPrint();
66
}
67
68
69
String
getItemName
() {
70
return
itemName;
71
}
72
73
String
getTimeStamp
() {
74
return
timeStamp;
75
}
76
77
String
getCategoryToPrint
() {
78
return
category;
79
}
80
81
String
getMetadataToPrint
() {
82
return
metadataToPrint;
83
}
84
85
String
setMetadataToPrint
(
string
&metadataIn) {
86
return
metadataToPrint =
String
(metadataIn);
87
}
88
89
ENABLE_DEEP_COPY
90
91
private
:
92
// the category to print (databases, sets, nodes, udts)
93
// udts are user-defined types
94
String
category
;
95
// the item Name to print
96
String
itemName
;
97
// the starting timeStamp to include, will retrieve
98
// only metadata created after a given timeline
99
String
timeStamp
;
100
// a string with the metadata to print
101
String
metadataToPrint
;
102
};
103
104
}
/* namespace pdb */
105
106
#endif
/* CATALOG_PRINT_METADATA_H_ */
ENABLE_DEEP_COPY
#define ENABLE_DEEP_COPY
Definition:
DeepCopy.h:52
pdb::CatalogPrintMetadata::getItemName
String getItemName()
Definition:
CatalogPrintMetadata.h:69
pdb::CatalogPrintMetadata::CatalogPrintMetadata
CatalogPrintMetadata(const CatalogPrintMetadata &pdbItemToCopy)
Definition:
CatalogPrintMetadata.h:54
pdb::Object
Definition:
Object.h:42
pdb::CatalogPrintMetadata
Definition:
CatalogPrintMetadata.h:40
PDBString.h
pdb::CatalogPrintMetadata::timeStamp
String timeStamp
Definition:
CatalogPrintMetadata.h:99
pdb::CatalogPrintMetadata::setMetadataToPrint
String setMetadataToPrint(string &metadataIn)
Definition:
CatalogPrintMetadata.h:85
pdb::CatalogPrintMetadata::CatalogPrintMetadata
CatalogPrintMetadata()
Definition:
CatalogPrintMetadata.h:42
pdb::CatalogPrintMetadata::metadataToPrint
String metadataToPrint
Definition:
CatalogPrintMetadata.h:101
pdb::CatalogPrintMetadata::getCategoryToPrint
String getCategoryToPrint()
Definition:
CatalogPrintMetadata.h:77
pdb::CatalogPrintMetadata::category
String category
Definition:
CatalogPrintMetadata.h:94
pdb::CatalogPrintMetadata::CatalogPrintMetadata
CatalogPrintMetadata(String itemName, String timeStamp, String categoryIn)
Definition:
CatalogPrintMetadata.h:44
pdb::String
Definition:
PDBString.h:43
PDBVector.h
Object.h
pdb::CatalogPrintMetadata::CatalogPrintMetadata
CatalogPrintMetadata(const Handle< CatalogPrintMetadata > &pdbItemToCopy)
Definition:
CatalogPrintMetadata.h:62
pdb::CatalogPrintMetadata::getMetadataToPrint
String getMetadataToPrint()
Definition:
CatalogPrintMetadata.h:81
pdb::CatalogPrintMetadata::getTimeStamp
String getTimeStamp()
Definition:
CatalogPrintMetadata.h:73
pdb::CatalogPrintMetadata::itemName
String itemName
Definition:
CatalogPrintMetadata.h:96
pdb::Handle
Definition:
Allocator.h:399
plinycompute
pdb
src
builtInPDBObjects
headers
CatalogPrintMetadata.h
Generated on Mon Jun 18 2018 18:10:35 by
1.8.6