From e66efbbe8df2dd4e7de0a1e9bd129cf92e00f92f Mon Sep 17 00:00:00 2001 From: vikle012 Date: Wed, 11 Sep 2019 13:57:14 +0200 Subject: Initializes repo. --- Kod/display/ClientServerApp/Common/ComConduit.h | 59 +++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 Kod/display/ClientServerApp/Common/ComConduit.h (limited to 'Kod/display/ClientServerApp/Common/ComConduit.h') diff --git a/Kod/display/ClientServerApp/Common/ComConduit.h b/Kod/display/ClientServerApp/Common/ComConduit.h new file mode 100644 index 0000000..3948355 --- /dev/null +++ b/Kod/display/ClientServerApp/Common/ComConduit.h @@ -0,0 +1,59 @@ +/* + * ComConduit.h + * + * Declaration of the ComConduit class + * + * Author: Erik Hellström, hellstrom@isy.liu.se, 2008-12-14 + * Modified: Emil Larsson, lime@isy.liu.se, 2012-01-13 + */ + +#ifndef COMCONDUIT_H_ +#define COMCONDUIT_H_ + +// Include conduit base class +#include "Conduit.h" +// Include ipc interface +#include "ipclink.h" + +#include +// +// The ComConduit class +// +class ComConduit : public Conduit { + +public: + + // Construct & Destruct + ComConduit(); + virtual ~ComConduit(); + + // Server initialization + bool StartServer(KeyType* key); + // Client initialization + bool StartClient(KeyType* key); + // Detach and remove shared memory segment + bool Shutdown(); + + // Get shared data size + int GetDataSize() const; + // Get number of events + int GetNumEvents() const; + // Get pointer to common shared data + CommonData* GetCommonData() const; + + // Write data + bool SetData(const wchar_t* data); + + // Data read + bool GetData(wchar_t* data); + +private: + + // Pointer to shared data + COMdata* ptrData; + +}; + + + +#endif /* COMCONDUIT_H_ */ -- cgit v1.2.1