CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TestFunct.h
Go to the documentation of this file.
1 #include <iostream>
2 #include <unistd.h>
3 
5 #include <stdexcept>
13 #include "Reflex/Member.h"
14 #include "Reflex/Object.h"
15 #include "CoralBase/Blob.h"
16 
24 //#include "CondCore/RegressionTest/interface/TestPayloadClass.h"
26 #include "RelationalAccess/SchemaException.h"
27 #include "RelationalAccess/ISchema.h"
28 #include "RelationalAccess/ITable.h"
29 #include "RelationalAccess/TableDescription.h"
30 #include "RelationalAccess/ITablePrivilegeManager.h"
31 #include "RelationalAccess/ICursor.h"
32 #include "RelationalAccess/IQuery.h"
33 #include "RelationalAccess/ITableDataEditor.h"
34 #include "CoralBase/AttributeList.h"
35 #include "CoralBase/AttributeSpecification.h"
36 #include "CoralBase/Attribute.h"
37 
38 class TestFunct {
39 public :
41  TestFunct();
42  bool Write(std::string mappingName, int payloadID);
43  bool WriteWithIOV(std::string mappingName, int payloadID, int runValidity, bool updateTestMetadata );
44  std::pair<int,int> GetMetadata(std::string mappingName);
45  bool Read(std::string mappingName);
46  bool ReadWithIOV(std::string mappingName, int seed, int runValidity);
47  bool ReadAll();
48  bool CreateMetaTable();
49  bool DropTables(std::string connStr);
50  bool DropItem(std::string mappingName);
51 };
bool ReadWithIOV(std::string mappingName, int seed, int runValidity)
Definition: TestFunct.cc:82
cond::DbSession s
Definition: TestFunct.h:40
bool WriteWithIOV(std::string mappingName, int payloadID, int runValidity, bool updateTestMetadata)
Definition: TestFunct.cc:168
bool ReadAll()
Definition: TestFunct.cc:116
bool Write(std::string mappingName, int payloadID)
Definition: TestFunct.cc:138
std::pair< int, int > GetMetadata(std::string mappingName)
Definition: TestFunct.cc:10
TestFunct()
Definition: TestFunct.cc:8
bool Read(std::string mappingName)
Definition: TestFunct.cc:41
bool CreateMetaTable()
Definition: TestFunct.cc:204
bool DropTables(std::string connStr)
Definition: TestFunct.cc:231
bool DropItem(std::string mappingName)
Definition: TestFunct.cc:252