COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
coGRSendCurrentDocMsg.h
Go to the documentation of this file.
1 /* This file is part of COVISE.
2 
3  You can use it under the terms of the GNU Lesser General Public License
4  version 2.1 or later, see lgpl-2.1.txt.
5 
6  * License: LGPL 2+ */
7 
8 //-*-Mode: C++;-*-
9 // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
10 // ++ (C)2007 VISENSO ++
11 // ++ coGRSendCurrentDocMsg - send Path and name of current showed Doc ++
12 // ++ ++
13 // ++ ++
14 // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
15 
16 #ifndef COGRSENDCURDOCMSG_H
17 #define COGRSENDCURDOCMSG_H
18 
19 #include "coGRDocMsg.h"
20 #include <util/coExport.h>
21 
22 namespace grmsg
23 {
24 
26 {
27 public:
28  // construct msg to send
29  coGRSendCurrentDocMsg(const char *document_name, const char *current_document_, const char *objName);
30 
31  // reconstruct from received msg
32  coGRSendCurrentDocMsg(const char *msg);
33 
34  // specific functions
35  const char *getCurrentDocument()
36  {
37  return current_document_;
38  };
39  const char *getObjName()
40  {
41  return objName_;
42  };
43 
44 private:
45  const char *current_document_;
46  const char *objName_;
47 };
48 }
49 #endif
Definition: coGRDocMsg.h:25
#define GRMSGEXPORT
Definition: coExport.h:319
const char * getObjName()
Definition: coGRSendCurrentDocMsg.h:39
const char * getCurrentDocument()
Definition: coGRSendCurrentDocMsg.h:35
const char * objName_
Definition: coGRSendCurrentDocMsg.h:46
Definition: coGRSendCurrentDocMsg.h:25