OpenMAMA
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 
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 
68  const char* securityStatusStr);
69 
70 }
71 
72 #endif // MamdaSecurityStatusH
Wombat::SECURITY_STATUS_CROSSING
@ SECURITY_STATUS_CROSSING
Definition: MamdaSecurityStatus.h:43
Wombat::mamdaSecurityStatusFromString
MAMDAExpDLL MamdaSecurityStatus mamdaSecurityStatusFromString(const char *securityStatusStr)
Convert a string representation of a security status to the enumeration.
Wombat::SECURITY_STATUS_SUSPENDED
@ SECURITY_STATUS_SUSPENDED
Definition: MamdaSecurityStatus.h:44
Wombat::SECURITY_STATUS_CLOSED
@ SECURITY_STATUS_CLOSED
Definition: MamdaSecurityStatus.h:38
MamdaConfig.h
Wombat::SECURITY_STATUS_DELETED
@ SECURITY_STATUS_DELETED
Definition: MamdaSecurityStatus.h:41
Wombat::SECURITY_STATUS_AT_LAST
@ SECURITY_STATUS_AT_LAST
Definition: MamdaSecurityStatus.h:45
Wombat::SECURITY_STATUS_AUCTION
@ SECURITY_STATUS_AUCTION
Definition: MamdaSecurityStatus.h:42
Wombat::SECURITY_STATUS_NOT_EXIST
@ SECURITY_STATUS_NOT_EXIST
Definition: MamdaSecurityStatus.h:40
Wombat::SECURITY_STATUS_HALTED
@ SECURITY_STATUS_HALTED
Definition: MamdaSecurityStatus.h:39
Wombat::SECURITY_STATUS_NORMAL
@ SECURITY_STATUS_NORMAL
Definition: MamdaSecurityStatus.h:37
Wombat
MamdaOrderImbalanceUpdate is an interface that provides access to order imbalance related fields.
Definition: MamdaAuctionFields.h:29
Wombat::MamdaSecurityStatus
MamdaSecurityStatus
An enumeration representing the status of a security such as whether or not it is halted or closed fo...
Definition: MamdaSecurityStatus.h:34
Wombat::toString
const MAMDAExpDLL char * toString(MamdaFieldState fieldState)
Convert a MamdaFieldState to an appropriate, displayable string.
Wombat::SECURITY_STATUS_NONE
@ SECURITY_STATUS_NONE
Definition: MamdaSecurityStatus.h:36
Wombat::SECURITY_STATUS_UNKNOWN
@ SECURITY_STATUS_UNKNOWN
Definition: MamdaSecurityStatus.h:46


© 2012 Linux Foundation