Skip to content
Snippets Groups Projects
Commit fdd33058 authored by Fons Rademakers's avatar Fons Rademakers
Browse files

rename TSQLWriter to TSQLMonitoringWriter and move it from libProofPlayer

to libNet (like all other abstract SQL interfaces).


git-svn-id: http://root.cern.ch/svn/root/trunk@19295 27541ba8-7e3a-0410-8455-c3a389f83636
parent 714e7139
No related branches found
No related tags found
No related merge requests found
/* @(#)root/net:$Name: $:$Id: LinkDef.h,v 1.25 2007/03/19 21:40:25 brun Exp $ */
/* @(#)root/net:$Name: $:$Id: LinkDef.h,v 1.26 2007/05/10 16:01:32 brun Exp $ */
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
......@@ -36,6 +36,7 @@
#pragma link C++ class TSQLStatement;
#pragma link C++ class TSQLTableInfo;
#pragma link C++ class TSQLColumnInfo;
#pragma link C++ class TSQLMonitoringWriter;
#pragma link C++ class TGrid;
#pragma link C++ class TGridResult+;
#pragma link C++ class TGridJDL+;
......
// @(#)root/proofplayer:$Name: $:$Id:$
// @(#)root/net:$Name: $:$Id: TSQLWriter.h,v 1.1 2007/07/09 15:24:14 rdm Exp $
// Author: J.F. Grosse-Oetringhaus, G.Ganis
/*************************************************************************
......@@ -9,12 +9,12 @@
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOT_TSQLWriter
#define ROOT_TSQLWriter
#ifndef ROOT_TSQLMonitoring
#define ROOT_TSQLMonitoring
//////////////////////////////////////////////////////////////////////////
// //
// TSQLWriter //
// TSQLMonitoringWriter //
// //
// SQL implementation of TVirtualMonitoringWriter. //
// //
......@@ -31,22 +31,22 @@
class TSQLServer;
class TSQLWriter : public TVirtualMonitoringWriter {
class TSQLMonitoringWriter : public TVirtualMonitoringWriter {
private:
TSQLServer *fDB; // SQL database where to write
TString fTable; // SQL table name
TSQLWriter(const TSQLWriter&); // not implemented
TSQLWriter& operator=(const TSQLWriter&); // not implemented
TSQLMonitoringWriter(const TSQLMonitoringWriter&); // not implemented
TSQLMonitoringWriter& operator=(const TSQLMonitoringWriter&); // not implemented
public:
TSQLWriter(const char *serv, const char *user, const char *pass, const char *table);
virtual ~TSQLWriter();
TSQLMonitoringWriter(const char *serv, const char *user, const char *pass, const char *table);
virtual ~TSQLMonitoringWriter();
Bool_t SendParameters(TList *values, const char * /*identifier*/);
ClassDef(TSQLWriter, 0) // Interface to SQL Monitoring
ClassDef(TSQLMonitoringWriter, 0) // Sending monitoring data to a SQL DB
};
#endif
// @(#)root/proofplayer:$Name: $:$Id:$
// @(#)root/proofplayer:$Name: $:$Id: TSQLWriter.cxx,v 1.1 2007/07/09 15:24:14 rdm Exp $
// Author: J.F. Grosse-Oetringhaus, G.Ganis
/*************************************************************************
......@@ -11,7 +11,7 @@
//////////////////////////////////////////////////////////////////////////
// //
// TSQLWriter //
// TSQLMonitoringWriter //
// //
// SQL implementation of TVirtualMonitoringWriter. //
// //
......@@ -19,15 +19,15 @@
#include "TList.h"
#include "TParameter.h"
#include "TSQLWriter.h"
#include "TEnv.h"
#include "TSQLMonitoring.h"
#include "TSQLServer.h"
#include "TSQLResult.h"
//______________________________________________________________________________
TSQLWriter::TSQLWriter(const char *serv, const char *user, const char *pass,
const char *table)
: TVirtualMonitoringWriter("SQL", 0.0), fTable(table)
TSQLMonitoringWriter::TSQLMonitoringWriter(const char *serv, const char *user,
const char *pass, const char *table)
: TVirtualMonitoringWriter("SQL", 0.0), fTable(table)
{
// Constructor.
......@@ -41,7 +41,7 @@ TSQLWriter::TSQLWriter(const char *serv, const char *user, const char *pass,
}
//______________________________________________________________________________
TSQLWriter::~TSQLWriter()
TSQLMonitoringWriter::~TSQLMonitoringWriter()
{
// Destructor
......@@ -49,7 +49,7 @@ TSQLWriter::~TSQLWriter()
}
//______________________________________________________________________________
Bool_t TSQLWriter::SendParameters(TList *values, const char *)
Bool_t TSQLMonitoringWriter::SendParameters(TList *values, const char *)
{
// Register query log using the information in the list which is in the form
// TParameter(<par>,<value>) or TNamed(<name>,<string>).
......
/* @(#)root/proofplayer:$Name: $:$Id: LinkDef.h,v 1.6 2007/05/08 14:56:19 rdm Exp $ */
/* @(#)root/proofplayer:$Name: $:$Id: LinkDef.h,v 1.7 2007/07/09 18:32:17 ganis Exp $ */
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
......@@ -56,6 +56,4 @@
#pragma link C++ class TStatus+;
#pragma link C++ class TFileMerger+;
#pragma link C++ class TSQLWriter+;
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment