BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
TestBase64 Class Reference
+ Inheritance diagram for TestBase64:

Public Member Functions

 TestBase64 (XmlRpcServer *s)
 
void execute (XmlRpcValue &params, XmlRpcValue &result)
 Execute the method. Subclasses must provide a definition for this method.
 
- Public Member Functions inherited from XmlRpc::XmlRpcServerMethod
 XmlRpcServerMethod (std::string const &name, XmlRpcServer *server=0)
 Constructor.
 
virtual ~XmlRpcServerMethod ()
 Destructor.
 
std::string & name ()
 Returns the name of the method.
 
virtual std::string help ()
 

Additional Inherited Members

- Protected Attributes inherited from XmlRpc::XmlRpcServerMethod
std::string _name
 
XmlRpcServer_server
 

Detailed Description

Definition at line 22 of file TestBase64Server.cpp.

Constructor & Destructor Documentation

◆ TestBase64()

TestBase64::TestBase64 ( XmlRpcServer * s)
inline

Definition at line 25 of file TestBase64Server.cpp.

25: XmlRpcServerMethod("TestBase64", s) {}
XmlRpcServer s
XmlRpcServerMethod(std::string const &name, XmlRpcServer *server=0)
Constructor.

Member Function Documentation

◆ execute()

void TestBase64::execute ( XmlRpcValue & params,
XmlRpcValue & result )
inlinevirtual

Execute the method. Subclasses must provide a definition for this method.

Implements XmlRpc::XmlRpcServerMethod.

Definition at line 27 of file TestBase64Server.cpp.

28 {
29 std::ifstream infile("pngnow.png", std::ios::binary);
30 if (infile.fail())
31 infile.open("../pngnow.png", std::ios::binary);
32 if (infile.fail())
33 result = "Could not open file pngnow.png";
34 else {
35
37 int n = 0;
38 for (;; ++n) {
39 char c = infile.get();
40 if (infile.eof()) break;
41 data.push_back(c);
42 }
43 std::cerr << "Read " << n << " bytes from pngnow.png\n";
44 }
45 }
const Int_t n
TTree * data
std::vector< char > BinaryData
Definition XmlRpcValue.h:39

The documentation for this class was generated from the following file: