Main Page
Namespaces
Classes
Files
File List
File Members
MamdaSecurityStatus.h
Go to the documentation of this file.
1
/* $Id$
2
*
3
* OpenMAMA: The open middleware agnostic messaging API
4
* Copyright (C) 2011 NYSE Technologies, Inc.
5
*
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Lesser General Public
8
* License as published by the Free Software Foundation; either
9
* version 2.1 of the License, or (at your option) any later version.
10
*
11
* This library is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Lesser General Public License for more details.
15
*
16
* You should have received a copy of the GNU Lesser General Public
17
* License along with this library; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19
* 02110-1301 USA
20
*/
21
22
#ifndef MamdaSecurityStatusH
23
#define MamdaSecurityStatusH
24
25
#include <
mamda/MamdaConfig.h
>
26
27
namespace
Wombat
28
{
29
34
enum
MamdaSecurityStatus
35
{
36
SECURITY_STATUS_NONE
,
/* toString() returns "None" */
37
SECURITY_STATUS_NORMAL
,
/* toString() returns "Normal" */
38
SECURITY_STATUS_CLOSED
,
/* toString() returns "Closed" */
39
SECURITY_STATUS_HALTED
,
/* toString() returns "Halted" */
40
SECURITY_STATUS_NOT_EXIST
,
/* toString() returns "NotExist" */
41
SECURITY_STATUS_DELETED
,
/* toString() returns "Deleted" */
42
SECURITY_STATUS_AUCTION
,
/* toString() returns "Auction" */
43
SECURITY_STATUS_CROSSING
,
/* toString() returns "Crossing" */
44
SECURITY_STATUS_SUSPENDED
,
/* toString() returns "Suspended" */
45
SECURITY_STATUS_AT_LAST
,
/* toString() returns "AtLast" */
46
SECURITY_STATUS_UNKNOWN
= 99
/* toString() returns "Unknown" */
47
};
48
55
MAMDAExpDLL
const
char
*
toString
(
MamdaSecurityStatus
securityStatus);
56
67
MAMDAExpDLL
MamdaSecurityStatus
mamdaSecurityStatusFromString
(
68
const
char
* securityStatusStr);
69
70
}
71
72
#endif // MamdaSecurityStatusH
© 2012 Linux Foundation