ATLAS Offline Software
ONCRPCServerProcs.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef JIVEXML__ONCRPCSERVERPROCS_H
6 #define JIVEXML__ONCRPCSERVERPROCS_H
7 
8 #include <rpc/rpc.h>
9 #include <string>
10 
17 struct EventRequest;
18 struct Event;
19 
20 namespace JiveXML{
21 
22  //Forward declarations
23  class IServer;
24  class IMessage;
25 
30  bool checkResult( const int RetVal, const std::string& Module, IMessage* const ServerSvc);
31 
36  void ReturnNull( SVCXPRT* transp, IServer* const ServerSvc ) ;
37 
42  void ReturnState( SVCXPRT* transp, IServer* const ServerSvc ) ;
43 
48  void ReturnStreams( SVCXPRT* transp, IServer* const ServerSvc ) ;
49 
54  void ReturnEvent( SVCXPRT* transp, const EventRequest* eventReq, IServer* const ServerSvc ) ;
55 
60  void SetNewEvent( SVCXPRT* transp, const Event* event, IServer* const ServerSvc ) ;
61 }
62 #endif
JiveXML::SetNewEvent
void SetNewEvent(SVCXPRT *transp, const Event *event, IServer *const ServerSvc)
Implementation of ONCRPC_SETEVENT_PROC Set a new event for a certain streams.
Definition: ONCRPCServerProcs.cxx:182
JiveXML::ReturnStreams
void ReturnStreams(SVCXPRT *transp, IServer *const ServerSvc)
Implementation of ONCRPC_GETSTREAMS_PROC Return the currently available event streams.
Definition: ONCRPCServerProcs.cxx:73
Event
Definition: trigbs_orderedMerge.cxx:42
JiveXML::EventRequest
struct EventRequest_t EventRequest
Data structures for GetEvent functions.
Definition: ONCRPCServer.h:57
JiveXML::ReturnState
void ReturnState(SVCXPRT *transp, IServer *const ServerSvc)
Implementation of ONCRPC_ATHENASTATUS_PROC Return the current athena status in XDR representation.
Definition: ONCRPCServerProcs.cxx:63
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
JiveXML::ReturnEvent
void ReturnEvent(SVCXPRT *transp, const EventRequest *eventReq, IServer *const ServerSvc)
Implementation of ONCRPC_GETEVENT_PROC Return an event from a certain streams.
Definition: ONCRPCServerProcs.cxx:105
JiveXML
This header is shared inbetween the C-style server thread and the C++ Athena ServerSvc.
Definition: BadLArRetriever.cxx:21
JiveXML::ReturnNull
void ReturnNull(SVCXPRT *transp, IServer *const ServerSvc)
Implementation of NULLPROC Return nothing - server has just been pinged.
Definition: ONCRPCServerProcs.cxx:45
JiveXML::checkResult
bool checkResult(const int RetVal, const std::string &Module, IMessage *const ServerSvc)
Simple result checking routine, that will output an errorMsg throught the ServerSvc if there was an e...
Definition: ONCRPCServerProcs.cxx:24