XmlServer Class Reference

#include <xmlServer.h>

List of all members.

Public Member Functions

void Start (int port)
void SetVerbose (bool verbose)
void Export (TDirectory *dir, const char *exportName)
void Export (TFolder *folder, const char *exportName)
void Export (TCollection *collection, const char *exportName)

Detailed Description

Definition at line 11 of file xmlServer.h.


Member Function Documentation

void XmlServer::Export ( TCollection *  collection,
const char *  exportName 
)

Definition at line 1020 of file xmlServer.cxx.

References gExportNames, gExports, and gVerbose.

01021 {
01022   if (gVerbose)
01023     printf("Export TCollection %p named [%s] of type [%s] as [%s]\n", collection, collection->GetName(), collection->IsA()->GetName(), exportName);
01024 
01025   bool found = false;
01026   for (unsigned int i=0; i<gExports.size(); i++)
01027     {
01028       const char* ename = gExports[i].c_str();
01029       if (strcmp(ename, exportName) == 0)
01030         found = true;
01031     }
01032 
01033   if (!found)
01034     gExports.push_back(exportName);
01035   gExportNames[exportName] = collection->GetName();
01036 }

void XmlServer::Export ( TFolder *  folder,
const char *  exportName 
)

Definition at line 1002 of file xmlServer.cxx.

References gExportNames, gExports, and gVerbose.

01003 {
01004   if (gVerbose)
01005     printf("Export TFolder %p named [%s] of type [%s] as [%s]\n", folder, folder->GetName(), folder->IsA()->GetName(), exportName);
01006 
01007   bool found = false;
01008   for (unsigned int i=0; i<gExports.size(); i++)
01009     {
01010       const char* ename = gExports[i].c_str();
01011       if (strcmp(ename, exportName) == 0)
01012         found = true;
01013     }
01014 
01015   if (!found)
01016     gExports.push_back(exportName);
01017   gExportNames[exportName] = folder->GetName();
01018 }

void XmlServer::Export ( TDirectory dir,
const char *  exportName 
)

Definition at line 984 of file xmlServer.cxx.

References gExportNames, gExports, and gVerbose.

Referenced by main().

00985 {
00986   if (gVerbose)
00987     printf("Export TDirectory %p named [%s] of type [%s] as [%s]\n", dir, dir->GetName(), dir->IsA()->GetName(), exportName);
00988 
00989   bool found = false;
00990   for (unsigned int i=0; i<gExports.size(); i++)
00991     {
00992       const char* ename = gExports[i].c_str();
00993       if (strcmp(ename, exportName) == 0)
00994         found = true;
00995     }
00996 
00997   if (!found)
00998     gExports.push_back(exportName);
00999   gExportNames[exportName] = dir->GetName();
01000 }

Here is the caller graph for this function:

void XmlServer::SetVerbose ( bool  verbose  ) 

Definition at line 977 of file xmlServer.cxx.

References gVerbose.

Referenced by main().

00978 {
00979   gVerbose = verbose;
00980 }

Here is the caller graph for this function:

void XmlServer::Start ( int  port  ) 

Definition at line 1038 of file xmlServer.cxx.

References xsocket_listener().

Referenced by main().

01039 {
01040   if (port==0)
01041     return;
01042 
01043   //printf("Here!\n");
01044 
01045   static int pport = port;
01046 #if 1
01047   TThread *thread = new TThread("XmlServer", xsocket_listener, &pport);
01048   thread->Run();
01049 #else
01050   LPDWORD lpThreadId = 0;
01051   CloseHandle(CreateThread(NULL, 1024, &xroot_socket_server, &pport, 0, lpThreadId));
01052 #endif
01053 }

Here is the call graph for this function:

Here is the caller graph for this function:


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

Generated on 12 Feb 2016 for ROOT Analyzer by  doxygen 1.6.1