 |
OpendTect
6.6
|
Go to the documentation of this file.
18 class RequestConnection;
23 namespace OD {
namespace JSON {
class Object; }; };
34 bool isOK(
bool islocal)
const;
63 const char* servicenm,
const char* action);
65 const char* servicenm,
const char* reqkey,
126 void init(
bool islocal,
bool assignport=
true,
130 const char* servicenm,
154 bool tcpserverismine_ =
true;
155 bool localserverismine_ =
true;
163 static const char*
sKeyOK() {
return "ok"; }
ObjectSet< packetData > applydata_
Definition: servicemgrbase.h:159
void appClosingCB(CallBacker *)
static const char * sKeyClientAppCloseEv()
Definition: servicemgrbase.h:103
ServiceMgrBase(const char *servicenm)
static uiRetVal sendRequest_(const Network::Authority &, const char *servicenm, const OD::JSON::Object &)
CallBacker object with a name. Use if you want your object to be able to send and receive CallBack's,...
Definition: namedobj.h:72
static const char * sKeyStatusEv()
Definition: servicemgrbase.h:39
bool isServerOK(bool local) const
static const ServiceMgrBase * theMain()
OpendTect.
Definition: commontypes.h:28
#define mExpClass(module)
Definition: commondefs.h:177
virtual bool canParseRequest(const OD::JSON::Object &, uiRetVal &)
void init(bool islocal, bool assignport=true, Network::SpecAddr=Network::Any)
static const char * sKeyError()
Definition: servicemgrbase.h:162
Definition: jobcommunic.h:22
Definition: networkcommon.h:56
bool addTCPServer(bool assignport=true, Network::SpecAddr=Network::Any)
static const char * sKeyPyEnvChangeEv()
Definition: servicemgrbase.h:42
CNotifier< ServiceMgrBase, BufferString > startHandleAction
Definition: servicemgrbase.h:75
Definition: uistringset.h:105
ServiceMgrBase(const char *servicenm, bool assignport, Network::SpecAddr=Network::Any)
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:185
void packetArrivedCB(CallBacker *)
uiRetVal handleActionRequestInThread(const packetData &)
#define mODTextTranslationClass(clss)
Definition: uistring.h:40
Definition: netreqconnection.h:43
static void getPythEnvRequestInfo(OD::JSON::Object &)
void pyenvChangeCB(CallBacker *)
ServiceMgrBase(const ServiceMgrBase &)=delete
ServiceMgrBase & operator=(const ServiceMgrBase &)=delete
uiRetVal pythEnvChangedReq(const OD::JSON::Object &)
static const char * sKeyOK()
Definition: servicemgrbase.h:163
Network::Authority getAuthority(bool islocal) const
static const char * sKeyAction()
Definition: servicemgrbase.h:161
FixedString Object()
Definition: keystrs.h:112
static void debugMsg(const char *)
virtual void doAppClosing(CallBacker *)
#define mStruct(module)
Definition: commondefs.h:182
void surveyChangedCB(CallBacker *)
static const char * sKeyCloseEv()
Definition: servicemgrbase.h:40
static const char * sKeyEvent()
Definition: servicemgrbase.h:44
void doHandleActionRequest(CallBacker *)
SpecAddr
Definition: networkcommon.h:33
void newConnectionCB(CallBacker *)
uiRetVal applyInOtherThread(const packetData &)
static uiRetVal sendRequest(const Network::Authority &, const char *servicenm, const char *reqkey, const OD::JSON::Object &)
static bool addApplicationAuthority(bool local, OS::MachineCommand &)
Base class for OpendTect Service Manager and external services/apps.
Definition: servicemgrbase.h:29
@ Any
Definition: networkcommon.h:33
mODTextTranslationClass(ServiceMgrBase) public bool isOK(bool islocal) const
static const char * sKeyODServer()
Definition: servicemgrbase.h:48
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size.
Definition: bufstring.h:40
virtual void stopServer(bool islocal)
bool isMainService() const
static uiRetVal sendAction(const Network::Authority &, const char *servicenm, const char *action)
uiRetVal survChangedReq(const OD::JSON::Object &)
bool & serverIsMine(bool islocal)
static ServiceMgrBase * theNewMain(ServiceMgrBase *)
Definition: netreqconnection.h:137
virtual bool canParseAction(const char *, uiRetVal &)
bool useServer(Network::RequestServer *, bool islocal)
static const char * sKeyDeregister()
Definition: servicemgrbase.h:46
Encapsulates an actual command to execute + the machine to run it on.
Definition: oscommand.h:94
virtual void doSurveyChanged(CallBacker *)
Definition: servicemgrbase.h:87
static const char * sKeyRegister()
Definition: servicemgrbase.h:45
bool canDoRequest(const OD::JSON::Object &, packetData &)
ServiceMgrBase(ServiceMgrBase &&)=delete
RefMan< Network::RequestPacket > packet_
Definition: servicemgrbase.h:158
bool canDoAction(const OD::JSON::Object &, packetData &)
virtual uiRetVal doHandleAction(const char *action)
virtual void doPyEnvChange(CallBacker *)
Definition: servicemgrbase.h:86
void connClosedCB(CallBacker *)
static const char * sKeySurveyChangeEv()
Definition: servicemgrbase.h:41
virtual uiRetVal doHandleRequest(const OD::JSON::Object &)
ServiceMgrBase & operator=(ServiceMgrBase &&)=delete
CNotifier< ServiceMgrBase, const OD::JSON::Object * > startHandleRequest
Definition: servicemgrbase.h:76
ValueSet where the values and subsets have a key.
Definition: odjson.h:283
Generated at
for the OpendTect
seismic interpretation project.
Copyright (C): dGB Beheer B.V. 1995-2021