Version: 0.6.0
Main Page
Related Pages
Classes
Files
File List
All
Classes
Functions
Variables
Pages
message.h
1
/******************************************************************************
2
* Project: wxGIS (GIS Server)
3
* Purpose: wxNetMessage class. Network message class.
4
* Author: Bishop (aka Barishnikov Dmitriy), polimax@mail.ru
5
******************************************************************************
6
* Copyright (C) 2008-2010 Bishop
7
*
8
* This program is free software: you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation, either version 2 of the License, or
11
* (at your option) any later version.
12
*
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
17
*
18
* You should have received a copy of the GNU General Public License
19
* along with this program. If not, see <http://www.gnu.org/licenses/>.
20
****************************************************************************/
21
#pragma once
22
/*
23
#include "wxgissrv/srv_framework/framework.h"
24
25
#define WXNETVER 2
26
27
// ----------------------------------------------------------------------------
28
// wxNetMessage
29
// ----------------------------------------------------------------------------
30
31
//#define WEMESSAGE wxT("<?xml version=\"1.0\" encoding=\"UTF-8\"?><weMsg version=\"%d\" state=\"%d\" message=\"%s\" priority=\"%u\">%s</weMsg>")
32
33
class WXDLLIMPEXP_GIS_FRW wxNetMessage : public INetMessage
34
{
35
public:
36
wxNetMessage(void);
37
wxNetMessage(wxString sMsgData, long nID);
38
wxNetMessage(long nID, wxGISMessageState nState = enumGISMsgStUnk, short nPriority = enumGISPriorityNormal, wxString sMessage = wxEmptyString, wxString sModuleSrc = wxEmptyString, wxString sModuleDst = wxEmptyString);
39
virtual ~wxNetMessage(void);
40
virtual short GetPriority(void);
41
virtual void SetPriority(short nPriority);
42
//virtual bool operator< (const INetMessage& msg) const;
43
//virtual INetMessage& operator= (const INetMessage& oSource);
44
virtual bool IsOk(void);
45
virtual wxGISMessageDirection GetDirection(void);
46
virtual void SetDirection(wxGISMessageDirection nDirection);
47
virtual wxXmlNode* GetRoot(void);
48
virtual wxString GetData(void);
49
protected:
50
wxXmlDocument *m_pXmlDocument;
51
long m_nID;
52
bool m_bIsOk;
53
short m_nPriority;
54
wxGISMessageDirection m_nDirection;
55
wxGISMessageState m_nState;
56
wxString m_sMessage;
57
};
58
//
60
*/
61
include
wxgissrv
srv_framework
message.h
Generated on Fri Sep 26 2014 01:10:56 for ngm by
1.8.6