OpenMAMA
MamdaTradeDirection.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 MamdaTradeDirectionH
23 #define MamdaTradeDirectionH
24 
25 #include <mamda/MamdaConfig.h>
26 
27 namespace Wombat
28 {
29 
38  {
39  TRADE_DIR_ZERO, /* toString() returns "" */
40  TRADE_DIR_PLUS, /* toString() returns "+" */
41  TRADE_DIR_MINUS, /* toString() returns "-" */
42  TRADE_DIR_ZERO_PLUS, /* toString() returns "0+" */
43  TRADE_DIR_ZERO_MINUS, /* toString() returns "0-" */
44  TRADE_DIR_NA, /* toString() returns "NA" */
45  TRADE_DIR_UNKNOWN = 99 /* toString() returns "ZZ" */
46  };
47 
48 
57  MAMDAExpDLL const char* toString (MamdaTradeDirection tradeDir);
58 
69  MAMDAExpDLL MamdaTradeDirection mamdaTradeDirectionFromString (const char* tradeDirStr);
70 
71 }
72 
73 #endif // MamdaTradeDirectionH
Definition: MamdaTradeDirection.h:39
Definition: MamdaTradeDirection.h:44
MAMDAExpDLL MamdaTradeDirection mamdaTradeDirectionFromString(const char *tradeDirStr)
Convert a string representation of a trade direction to the enumeration.
Definition: MamdaTradeDirection.h:42
Definition: MamdaTradeDirection.h:45
Definition: MamdaTradeDirection.h:40
Definition: MamdaTradeDirection.h:43
MamdaOrderImbalanceUpdate is an interface that provides access to order imbalance related fields...
Definition: MamdaAuctionFields.h:29
MamdaTradeDirection
An enumeration representing trade tick direction, relative to the previous "last" trade...
Definition: MamdaTradeDirection.h:37
MAMDAExpDLL const char * toString(MamdaFieldState fieldState)
Convert a MamdaFieldState to an appropriate, displayable string.
Definition: MamdaTradeDirection.h:41


© 2012 Linux Foundation