ATLAS Offline Software
Loading...
Searching...
No Matches
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
16
17struct EventRequest;
18struct Event;
19
20namespace 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
Pure abstract interface to provide some athena-indepandant messaging Note that only MSG::Level enum i...
Definition IMessage.h:16
Pure abstract interface for all full server implementations.
Definition IServer.h:22
This header is shared inbetween the C-style server thread and the C++ Athena ServerSvc.
void ReturnState(SVCXPRT *transp, IServer *const ServerSvc)
Implementation of ONCRPC_ATHENASTATUS_PROC Return the current athena status in XDR representation.
void ReturnEvent(SVCXPRT *transp, const EventRequest *eventReq, IServer *const ServerSvc)
Implementation of ONCRPC_GETEVENT_PROC Return an event from a certain streams.
void ReturnStreams(SVCXPRT *transp, IServer *const ServerSvc)
Implementation of ONCRPC_GETSTREAMS_PROC Return the currently available event streams.
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...
struct EventRequest_t EventRequest
Data structures for GetEvent functions.
void SetNewEvent(SVCXPRT *transp, const Event *event, IServer *const ServerSvc)
Implementation of ONCRPC_SETEVENT_PROC Set a new event for a certain streams.
void ReturnNull(SVCXPRT *transp, IServer *const ServerSvc)
Implementation of NULLPROC Return nothing - server has just been pinged.
struct Event_t Event