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 "CoralBase/Blob.h"
14 
22 //#include "CondCore/RegressionTest/interface/TestPayloadClass.h"
24 #include "RelationalAccess/SchemaException.h"
25 #include "RelationalAccess/ISchema.h"
26 #include "RelationalAccess/ITable.h"
27 #include "RelationalAccess/TableDescription.h"
28 #include "RelationalAccess/ITablePrivilegeManager.h"
29 #include "RelationalAccess/ICursor.h"
30 #include "RelationalAccess/IQuery.h"
31 #include "RelationalAccess/ITableDataEditor.h"
32 #include "CoralBase/AttributeList.h"
33 #include "CoralBase/AttributeSpecification.h"
34 #include "CoralBase/Attribute.h"
35 
36 class TestFunct {
37 public :
39  TestFunct();
40  bool Write(std::string mappingName, int payloadID);
41  bool WriteWithIOV(std::string mappingName, int payloadID, int runValidity, bool updateTestMetadata );
42  std::pair<int,int> GetMetadata(std::string mappingName);
43  bool Read(std::string mappingName);
44  bool ReadWithIOV(std::string mappingName, int seed, int runValidity);
45  bool ReadAll();
46  bool CreateMetaTable();
47  bool DropTables(std::string connStr);
48  bool DropItem(std::string mappingName);
49 };
bool ReadWithIOV(std::string mappingName, int seed, int runValidity)
Definition: TestFunct.cc:82
cond::DbSession s
Definition: TestFunct.h:38
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