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
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:
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 
52 
54  return srcDatabaseID;
55  }
56 
58  return srcUserTypeID;
59  }
60 
62  return srcSetID;
63  }
64 
66  return destDatabaseID;
67  }
68 
70  return destUserTypeID;
71  }
72 
74  return destSetID;
75  }
76 
78 
79 private:
80  // this is the database ID of the source set
82 
83  // this is the type ID of the source set
85 
86  // this is the ID of the source set
88 
89  // this is the database ID of the destination set
91 
92  // this is the type ID of the destination set
94 
95  // this is the ID of the destination set
97 };
98 }
99 
100 #endif
#define ENABLE_DEEP_COPY
Definition: DeepCopy.h:52
unsigned int SetID
Definition: DataTypes.h:31
unsigned int DatabaseID
Definition: DataTypes.h:29
BackendTestSetCopy(DatabaseID dbIdIn, UserTypeID typeIdIn, SetID setIdIn, DatabaseID dbIdOut, UserTypeID typeIdOut, SetID setIdOut)
unsigned int UserTypeID
Definition: DataTypes.h:25