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
Definition: MamdaSecurityStatus.h:36
Definition: MamdaSecurityStatus.h:41
Definition: MamdaSecurityStatus.h:46
Definition: MamdaSecurityStatus.h:43
MamdaOrderImbalanceUpdate is an interface that provides access to order imbalance related fields...
Definition: MamdaAuctionFields.h:29
MamdaSecurityStatus
An enumeration representing the status of a security such as whether or not it is halted or closed fo...
Definition: MamdaSecurityStatus.h:34
Definition: MamdaSecurityStatus.h:44
MAMDAExpDLL MamdaSecurityStatus mamdaSecurityStatusFromString(const char *securityStatusStr)
Convert a string representation of a security status to the enumeration.
Definition: MamdaSecurityStatus.h:37
MAMDAExpDLL const char * toString(MamdaFieldState fieldState)
Convert a MamdaFieldState to an appropriate, displayable string.
Definition: MamdaSecurityStatus.h:39
Definition: MamdaSecurityStatus.h:45
Definition: MamdaSecurityStatus.h:38
Definition: MamdaSecurityStatus.h:42
Definition: MamdaSecurityStatus.h:40


© 2012 Linux Foundation