BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Validator.cpp File Reference
#include "XmlRpc.h"
#include <iostream>

Go to the source code of this file.

Classes

class  ArrayOfStructsTest
class  CountTheEntities
class  EasyStructTest
class  EchoStructTest
class  ManyTypesTest
class  ModerateSizeArrayCheck
class  NestedStructTest
class  SimpleStructReturnTest

Functions

 ArrayOfStructsTest (XmlRpcServer *s)
void execute (XmlRpcValue &params, XmlRpcValue &result)
 CountTheEntities (XmlRpcServer *s)
 EasyStructTest (XmlRpcServer *s)
 EchoStructTest (XmlRpcServer *s)
 ManyTypesTest (XmlRpcServer *s)
 ModerateSizeArrayCheck (XmlRpcServer *s)
 NestedStructTest (XmlRpcServer *s)
 SimpleStructReturnTest (XmlRpcServer *s)
int main (int argc, char *argv[])

Variables

XmlRpcServer s

Function Documentation

◆ ArrayOfStructsTest()

s::ArrayOfStructsTest ( XmlRpcServer * s)

Definition at line 28 of file Validator.cpp.

◆ CountTheEntities()

s::CountTheEntities ( XmlRpcServer * s)

Definition at line 66 of file Validator.cpp.

◆ EasyStructTest()

s::EasyStructTest ( XmlRpcServer * s)

Definition at line 82 of file Validator.cpp.

◆ EchoStructTest()

s::EchoStructTest ( XmlRpcServer * s)

Definition at line 94 of file Validator.cpp.

◆ execute()

void s::execute ( XmlRpcValue & params,
XmlRpcValue & result )

Definition at line 31 of file Validator.cpp.

34 : public XmlRpcServerMethod {
35public:
37 : XmlRpcServerMethod( "validator1.countTheEntities", s ) {}
38
XmlRpcServer s
CountTheEntities(XmlRpcServer *s)
Definition Validator.cpp:66
Abstract class representing a single RPC method.
A class to handle XML RPC requests.

◆ main()

int main ( int argc,
char * argv[] )

Definition at line 160 of file Validator.cpp.

160 {
161 if ( argc != 2 )
162 {
163 std::cerr << "Usage: Validator port\n";
164 return -1;
165 }
166 int port = atoi( argv[1] );
167
169
170 // Create the server socket on the specified port
171 s.bindAndListen( port );
172
173 // Wait for requests indefinitely
174 s.work( -1.0 );
175
176 return 0;
177}
void setVerbosity(int level)
Sets log message verbosity. This is short for XmlRpcLogHandler::setVerbosity(level).

◆ ManyTypesTest()

s::ManyTypesTest ( XmlRpcServer * s)

Definition at line 106 of file Validator.cpp.

◆ ModerateSizeArrayCheck()

s::ModerateSizeArrayCheck ( XmlRpcServer * s)

Definition at line 123 of file Validator.cpp.

◆ NestedStructTest()

s::NestedStructTest ( XmlRpcServer * s)

Definition at line 143 of file Validator.cpp.

◆ SimpleStructReturnTest()

s::SimpleStructReturnTest ( XmlRpcServer * s)

Definition at line 160 of file Validator.cpp.

160 {
161 if ( argc != 2 )

Variable Documentation

◆ s