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
BackendTestSetCopy.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
#ifndef BACKEND_TEST_SET_COPY_H
20
#define BACKEND_TEST_SET_COPY_H
21
22
#include "
Object.h
"
23
#include "
Handle.h
"
24
#include "
PDBString.h
"
25
#include "
DataTypes.h
"
26
#include <string>
27
28
// PRELOAD %BackendTestSetCopy%
29
30
namespace
pdb {
31
32
// encapsulates a request to copy a set stored in the database into another set
33
class
BackendTestSetCopy
:
public
Object
{
34
35
public
:
36
BackendTestSetCopy
(
DatabaseID
dbIdIn,
37
UserTypeID
typeIdIn,
38
SetID
setIdIn,
39
DatabaseID
dbIdOut,
40
UserTypeID
typeIdOut,
41
SetID
setIdOut) {
42
srcDatabaseID
= dbIdIn;
43
srcUserTypeID
= typeIdIn;
44
srcSetID
= setIdIn;
45
destDatabaseID
= dbIdOut;
46
destUserTypeID
= typeIdOut;
47
destSetID
= setIdOut;
48
}
49
50
BackendTestSetCopy
() {}
51
~BackendTestSetCopy
() {}
52
53
DatabaseID
getDatabaseIn
() {
54
return
srcDatabaseID
;
55
}
56
57
UserTypeID
getTypeIdIn
() {
58
return
srcUserTypeID
;
59
}
60
61
SetID
getSetIdIn
() {
62
return
srcSetID
;
63
}
64
65
DatabaseID
getDatabaseOut
() {
66
return
destDatabaseID
;
67
}
68
69
UserTypeID
getTypeIdOut
() {
70
return
destUserTypeID
;
71
}
72
73
SetID
getSetIdOut
() {
74
return
destSetID
;
75
}
76
77
ENABLE_DEEP_COPY
78
79
private
:
80
// this is the database ID of the source set
81
DatabaseID
srcDatabaseID
;
82
83
// this is the type ID of the source set
84
UserTypeID
srcUserTypeID
;
85
86
// this is the ID of the source set
87
SetID
srcSetID
;
88
89
// this is the database ID of the destination set
90
DatabaseID
destDatabaseID
;
91
92
// this is the type ID of the destination set
93
UserTypeID
destUserTypeID
;
94
95
// this is the ID of the destination set
96
SetID
destSetID
;
97
};
98
}
99
100
#endif
ENABLE_DEEP_COPY
#define ENABLE_DEEP_COPY
Definition:
DeepCopy.h:52
SetID
unsigned int SetID
Definition:
DataTypes.h:31
pdb::BackendTestSetCopy::BackendTestSetCopy
BackendTestSetCopy()
Definition:
BackendTestSetCopy.h:50
pdb::BackendTestSetCopy::srcUserTypeID
UserTypeID srcUserTypeID
Definition:
BackendTestSetCopy.h:84
pdb::Object
Definition:
Object.h:42
PDBString.h
Handle.h
pdb::BackendTestSetCopy::~BackendTestSetCopy
~BackendTestSetCopy()
Definition:
BackendTestSetCopy.h:51
pdb::BackendTestSetCopy::getSetIdIn
SetID getSetIdIn()
Definition:
BackendTestSetCopy.h:61
pdb::BackendTestSetCopy::destSetID
SetID destSetID
Definition:
BackendTestSetCopy.h:96
DataTypes.h
pdb::BackendTestSetCopy::destUserTypeID
UserTypeID destUserTypeID
Definition:
BackendTestSetCopy.h:93
DatabaseID
unsigned int DatabaseID
Definition:
DataTypes.h:29
pdb::BackendTestSetCopy::getSetIdOut
SetID getSetIdOut()
Definition:
BackendTestSetCopy.h:73
pdb::BackendTestSetCopy::srcDatabaseID
DatabaseID srcDatabaseID
Definition:
BackendTestSetCopy.h:81
pdb::BackendTestSetCopy::srcSetID
SetID srcSetID
Definition:
BackendTestSetCopy.h:87
Object.h
pdb::BackendTestSetCopy::getDatabaseIn
DatabaseID getDatabaseIn()
Definition:
BackendTestSetCopy.h:53
pdb::BackendTestSetCopy::BackendTestSetCopy
BackendTestSetCopy(DatabaseID dbIdIn, UserTypeID typeIdIn, SetID setIdIn, DatabaseID dbIdOut, UserTypeID typeIdOut, SetID setIdOut)
Definition:
BackendTestSetCopy.h:36
pdb::BackendTestSetCopy
Definition:
BackendTestSetCopy.h:33
pdb::BackendTestSetCopy::getTypeIdOut
UserTypeID getTypeIdOut()
Definition:
BackendTestSetCopy.h:69
pdb::BackendTestSetCopy::getTypeIdIn
UserTypeID getTypeIdIn()
Definition:
BackendTestSetCopy.h:57
pdb::BackendTestSetCopy::getDatabaseOut
DatabaseID getDatabaseOut()
Definition:
BackendTestSetCopy.h:65
pdb::BackendTestSetCopy::destDatabaseID
DatabaseID destDatabaseID
Definition:
BackendTestSetCopy.h:90
UserTypeID
unsigned int UserTypeID
Definition:
DataTypes.h:25
plinycompute
pdb
src
builtInPDBObjects
headers
BackendTestSetCopy.h
Generated on Mon Jun 18 2018 18:10:35 by
1.8.6