ROOTANA
Loading...
Searching...
No Matches
Data Structures | Macros | Functions | Variables
xmlServer.cxx File Reference
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include "xmlServer.h"
#include <TROOT.h>
#include <TClass.h>
#include <TDirectory.h>
#include <TKey.h>
#include <TFolder.h>
#include <TSocket.h>
#include <TServerSocket.h>
#include <TThread.h>
#include <TMessage.h>
#include <TObjString.h>
#include <TH1.h>
#include <TCutG.h>
#include <TBufferXML.h>
#include <deque>
#include <map>
#include <string>
Include dependency graph for xmlServer.cxx:

Go to the source code of this file.

Data Structures

class  XLockRootGuard
 

Macros

#define THREADRETURN
 
#define THREADTYPE   void
 

Functions

static std::string HtmlEncode (const char *s)
 
static std::string UrlEncode (const char *s)
 
static int atohex (int a)
 
static std::string HtmlDecode (const char *s)
 
static TObject * FollowPath (TObject *container, char *path)
 
static TObject * FindTopLevelObject (const char *name)
 
static TObject * TopLevel (char *path, char **opath)
 
static TObject * FollowPath (char *path)
 
static void SendString (TSocket *sock, const char *str)
 
static void SendHttpReply (TSocket *sock, const char *mimetype, const char *message)
 
static void SendHttpReply (TSocket *sock, const char *mimetype, const std::string &str)
 
static std::string HtmlTag (const char *tag, const char *contents)
 
static std::string HtmlTag (const char *tag, const std::string &contents)
 
std::string MakeXmlEntry (const TObject *obj)
 
std::string MakeHtmlEntry (const TObject *obj, const char *path)
 
static void SendFile (TSocket *sock, const char *filename, const char *mimetype)
 
static THREADTYPE xroot_server_thread (void *arg)
 
static THREADTYPE xsocket_listener (void *arg)
 

Variables

static bool gVerbose = false
 
static std::deque< std::string > gExports
 
static std::map< std::string, std::string > gExportNames
 

Macro Definition Documentation

◆ THREADRETURN

#define THREADRETURN

Definition at line 21 of file xmlServer.cxx.

◆ THREADTYPE

#define THREADTYPE   void

Definition at line 22 of file xmlServer.cxx.

Function Documentation

◆ atohex()

static int atohex ( int  a)
static

Definition at line 120 of file xmlServer.cxx.

Here is the caller graph for this function:

◆ FindTopLevelObject()

static TObject * FindTopLevelObject ( const char *  name)
static

Definition at line 201 of file xmlServer.cxx.

Here is the caller graph for this function:

◆ FollowPath() [1/2]

static TObject * FollowPath ( char *  path)
static

Definition at line 264 of file xmlServer.cxx.

Here is the call graph for this function:

◆ FollowPath() [2/2]

static TObject * FollowPath ( TObject *  container,
char *  path 
)
static

Definition at line 156 of file xmlServer.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HtmlDecode()

static std::string HtmlDecode ( const char *  s)
static

Definition at line 131 of file xmlServer.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HtmlEncode()

static std::string HtmlEncode ( const char *  s)
static

Definition at line 82 of file xmlServer.cxx.

Here is the caller graph for this function:

◆ HtmlTag() [1/2]

static std::string HtmlTag ( const char *  tag,
const char *  contents 
)
static

Definition at line 344 of file xmlServer.cxx.

Here is the caller graph for this function:

◆ HtmlTag() [2/2]

static std::string HtmlTag ( const char *  tag,
const std::string &  contents 
)
static

Definition at line 357 of file xmlServer.cxx.

◆ MakeHtmlEntry()

std::string MakeHtmlEntry ( const TObject *  obj,
const char *  path 
)

Definition at line 404 of file xmlServer.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MakeXmlEntry()

std::string MakeXmlEntry ( const TObject *  obj)

Definition at line 372 of file xmlServer.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SendFile()

static void SendFile ( TSocket *  sock,
const char *  filename,
const char *  mimetype 
)
static

Definition at line 444 of file xmlServer.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SendHttpReply() [1/2]

static void SendHttpReply ( TSocket *  sock,
const char *  mimetype,
const char *  message 
)
static

Definition at line 319 of file xmlServer.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SendHttpReply() [2/2]

static void SendHttpReply ( TSocket *  sock,
const char *  mimetype,
const std::string &  str 
)
static

Definition at line 337 of file xmlServer.cxx.

Here is the call graph for this function:

◆ SendString()

static void SendString ( TSocket *  sock,
const char *  str 
)
static

Definition at line 314 of file xmlServer.cxx.

Here is the caller graph for this function:

◆ TopLevel()

static TObject * TopLevel ( char *  path,
char **  opath 
)
static

Definition at line 218 of file xmlServer.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UrlEncode()

static std::string UrlEncode ( const char *  s)
static

Definition at line 101 of file xmlServer.cxx.

Here is the caller graph for this function:

◆ xroot_server_thread()

static THREADTYPE xroot_server_thread ( void *  arg)
static

Definition at line 471 of file xmlServer.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ xsocket_listener()

static THREADTYPE xsocket_listener ( void *  arg)
static

Definition at line 946 of file xmlServer.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ gExportNames

std::map<std::string,std::string> gExportNames
static

Definition at line 78 of file xmlServer.cxx.

◆ gExports

std::deque<std::string> gExports
static

Definition at line 77 of file xmlServer.cxx.

◆ gVerbose

bool gVerbose = false
static

Definition at line 75 of file xmlServer.cxx.