Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
EventFilter
Utilities
src
RateStat.cc
Go to the documentation of this file.
1
#include "
EventFilter/Utilities/interface/RateStat.h
"
2
#include "
EventFilter/Utilities/interface/CurlPoster.h
"
3
#include "
EventFilter/Utilities/interface/DebugUtils.h
"
4
5
#include <iostream>
6
7
namespace
evf{
8
9
RateStat::RateStat
(
std::string
iDieUrl) : iDieUrl_(iDieUrl)
10
{
11
poster_
=
new
CurlPoster
(
iDieUrl_
);
12
}
13
14
RateStat::~RateStat
()
15
{
16
delete
poster_
;
17
}
18
19
void
RateStat::sendStat
(
const
unsigned
char
*buf,
size_t
len,
unsigned
int
lsid)
20
{
21
poster_
->
postBinary
(buf,len,lsid);
22
}
23
24
void
RateStat::sendLegenda
(
const
std::string
&
message
)
25
{
26
poster_
->
postString
(message.c_str(),message.length(),0,
CurlPoster::leg
);
27
}
28
29
void
RateStat::sendAuxLegenda
(
const
std::string
&
message
)
30
{
31
poster_
->
postString
(message.c_str(),message.length(),0,
CurlPoster::legaux
);
32
}
33
34
}
evf::RateStat::sendAuxLegenda
void sendAuxLegenda(const std::string &)
Definition:
RateStat.cc:29
evf::CurlPoster::postString
void postString(const char *, size_t, unsigned int, mode, const std::string &=standard_post_method_)
Definition:
CurlPoster.cc:112
evf::CurlPoster::leg
Definition:
CurlPoster.h:14
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
evf::CurlPoster::legaux
Definition:
CurlPoster.h:14
RateStat.h
evf::CurlPoster::postBinary
void postBinary(const unsigned char *, size_t, unsigned int, const std::string &=standard_post_method_)
Definition:
CurlPoster.cc:118
evf::RateStat::poster_
CurlPoster * poster_
Definition:
RateStat.h:20
evf::CurlPoster
Definition:
CurlPoster.h:10
CurlPoster.h
DebugUtils.h
evf::RateStat::~RateStat
~RateStat()
Definition:
RateStat.cc:14
evf::RateStat::iDieUrl_
std::string iDieUrl_
Definition:
RateStat.h:19
evf::RateStat::sendLegenda
void sendLegenda(const std::string &)
Definition:
RateStat.cc:24
python.rootplot.argparse.message
string message
Definition:
argparse.py:130
evf::RateStat::RateStat
RateStat(std::string iDieUrl)
Definition:
RateStat.cc:9
evf::RateStat::sendStat
void sendStat(const unsigned char *, size_t, unsigned int)
Definition:
RateStat.cc:19
Generated for CMSSW Reference Manual by
1.8.5