BOSS 8.0.0
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 19 of file TestBase64Server.cpp.

Constructor & Destructor Documentation

◆ TestBase64()

TestBase64::TestBase64 ( XmlRpcServer * s)
inline

Definition at line 21 of file TestBase64Server.cpp.

21: 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 23 of file TestBase64Server.cpp.

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

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