本文整理汇总了C#中QuickFix.getHeader方法的典型用法代码示例。如果您正苦于以下问题:C# QuickFix.getHeader方法的具体用法?C# QuickFix.getHeader怎么用?C# QuickFix.getHeader使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QuickFix
的用法示例。
在下文中一共展示了QuickFix.getHeader方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: crack
public void crack( QuickFix.Message message, QuickFix.SessionID sessionID, BeginString beginString )
{
String value = beginString.getValue();
if (value.Equals("FIX.4.0"))
((QuickFix40.MessageCracker)this).crack(message, sessionID);
else if (value.Equals("FIX.4.1"))
((QuickFix41.MessageCracker)this).crack(message, sessionID);
else if (value.Equals("FIX.4.2"))
((QuickFix42.MessageCracker)this).crack(message, sessionID);
else if (value.Equals("FIX.4.3"))
((QuickFix43.MessageCracker)this).crack(message, sessionID);
else if (value.Equals("FIX.4.4"))
((QuickFix44.MessageCracker)this).crack(message, sessionID);
else if (value.Equals("FIX.5.0"))
((QuickFix50.MessageCracker)this).crack(message, sessionID);
else if (value.Equals("FIX.5.0SP1"))
((QuickFix50Sp1.MessageCracker)this).crack(message, sessionID);
else if (value.Equals("FIX.5.0SP2"))
((QuickFix50Sp2.MessageCracker)this).crack(message, sessionID);
else if( value.Equals("FIXT.1.1") )
{
if( message.isAdmin() )
{
((QuickFixT11.MessageCracker)this).crack( message, sessionID );
}
else
{
ApplVerID applVerID = new ApplVerID();
if( !message.getHeader().isSetField(applVerID) )
{
Session session = Session.lookupSession( sessionID );
applVerID.setValue(session.getSenderDefaultApplVerID());
}
else
{
message.getHeader().getField( applVerID );
}
crack( message, sessionID, Message.toBeginString( applVerID ));
}
}
else
onMessage( message, sessionID );
}
示例2: fromApp
/// <summary>
/// ���ԶԶ˵�Ӧ�ò㱨�ģ���Ҫҵ��������
/// </summary>
/// <param name="pMessage"></param>
/// <param name="pSessionID"></param>
public void fromApp(QuickFix.Message pMessage, QuickFix.SessionID pSessionID)
{
string msgtype = pMessage.getHeader ().getString (35);
if (msgtype.StartsWith("Ans"))
{
//Console.WriteLine(pMessage.ToString());
switch (msgtype)
{
case "Ans003":
//string ccy=pMessage .getField (
case "Ans002":
if (OnError != null)
{
OnError(pMessage.ToString(), EventArgs.Empty);
}
break;
}
}
else
{
base.crack(pMessage, pSessionID);//����Ĭ�ϴ����������
}
pMessage.Dispose();//�����ֳ�����Ҫ
}
示例3: crack
public new void crack( QuickFix.Message message, QuickFix.SessionID sessionID )
{
BeginString beginString = new BeginString();
message.getHeader().getField( beginString );
crack( message, sessionID, beginString );
}
示例4: crack
public new void crack( QuickFix.Message message,
QuickFix.SessionID sessionID )
{
QuickFix.MsgType msgType = new QuickFix.MsgType();
message.getHeader().getField(msgType);
String msgTypeValue = msgType.getValue();
if( msgTypeValue == "0" )
onMessage( (Heartbeat)(message), sessionID );
else
if( msgTypeValue == "A" )
onMessage( (Logon)(message), sessionID );
else
if( msgTypeValue == "1" )
onMessage( (TestRequest)(message), sessionID );
else
if( msgTypeValue == "2" )
onMessage( (ResendRequest)(message), sessionID );
else
if( msgTypeValue == "3" )
onMessage( (Reject)(message), sessionID );
else
if( msgTypeValue == "4" )
onMessage( (SequenceReset)(message), sessionID );
else
if( msgTypeValue == "5" )
onMessage( (Logout)(message), sessionID );
else
if( msgTypeValue == "j" )
onMessage( (BusinessMessageReject)(message), sessionID );
else
if( msgTypeValue == "BE" )
onMessage( (UserRequest)(message), sessionID );
else
if( msgTypeValue == "BF" )
onMessage( (UserResponse)(message), sessionID );
else
if( msgTypeValue == "7" )
onMessage( (Advertisement)(message), sessionID );
else
if( msgTypeValue == "6" )
onMessage( (IndicationOfInterest)(message), sessionID );
else
if( msgTypeValue == "B" )
onMessage( (News)(message), sessionID );
else
if( msgTypeValue == "C" )
onMessage( (Email)(message), sessionID );
else
if( msgTypeValue == "R" )
onMessage( (QuoteRequest)(message), sessionID );
else
if( msgTypeValue == "AJ" )
onMessage( (QuoteResponse)(message), sessionID );
else
if( msgTypeValue == "AG" )
onMessage( (QuoteRequestReject)(message), sessionID );
else
if( msgTypeValue == "AH" )
onMessage( (RFQRequest)(message), sessionID );
else
if( msgTypeValue == "S" )
onMessage( (Quote)(message), sessionID );
else
if( msgTypeValue == "Z" )
onMessage( (QuoteCancel)(message), sessionID );
else
if( msgTypeValue == "a" )
onMessage( (QuoteStatusRequest)(message), sessionID );
else
if( msgTypeValue == "AI" )
onMessage( (QuoteStatusReport)(message), sessionID );
else
if( msgTypeValue == "i" )
onMessage( (MassQuote)(message), sessionID );
else
if( msgTypeValue == "b" )
onMessage( (MassQuoteAcknowledgement)(message), sessionID );
else
if( msgTypeValue == "V" )
onMessage( (MarketDataRequest)(message), sessionID );
else
if( msgTypeValue == "W" )
onMessage( (MarketDataSnapshotFullRefresh)(message), sessionID );
else
if( msgTypeValue == "X" )
onMessage( (MarketDataIncrementalRefresh)(message), sessionID );
else
if( msgTypeValue == "Y" )
onMessage( (MarketDataRequestReject)(message), sessionID );
else
if( msgTypeValue == "c" )
onMessage( (SecurityDefinitionRequest)(message), sessionID );
else
if( msgTypeValue == "d" )
onMessage( (SecurityDefinition)(message), sessionID );
else
if( msgTypeValue == "v" )
onMessage( (SecurityTypeRequest)(message), sessionID );
else
//.........这里部分代码省略.........
示例5: crack
public new void crack( QuickFix.Message message,
QuickFix.SessionID sessionID )
{
QuickFix.MsgType msgType = new QuickFix.MsgType();
message.getHeader().getField(msgType);
String msgTypeValue = msgType.getValue();
if( msgTypeValue == "0" )
onMessage( (Heartbeat)(message), sessionID );
else
if( msgTypeValue == "A" )
onMessage( (Logon)(message), sessionID );
else
if( msgTypeValue == "1" )
onMessage( (TestRequest)(message), sessionID );
else
if( msgTypeValue == "2" )
onMessage( (ResendRequest)(message), sessionID );
else
if( msgTypeValue == "3" )
onMessage( (Reject)(message), sessionID );
else
if( msgTypeValue == "4" )
onMessage( (SequenceReset)(message), sessionID );
else
if( msgTypeValue == "5" )
onMessage( (Logout)(message), sessionID );
else
if( msgTypeValue == "7" )
onMessage( (Advertisement)(message), sessionID );
else
if( msgTypeValue == "6" )
onMessage( (IndicationofInterest)(message), sessionID );
else
if( msgTypeValue == "B" )
onMessage( (News)(message), sessionID );
else
if( msgTypeValue == "C" )
onMessage( (Email)(message), sessionID );
else
if( msgTypeValue == "R" )
onMessage( (QuoteRequest)(message), sessionID );
else
if( msgTypeValue == "S" )
onMessage( (Quote)(message), sessionID );
else
if( msgTypeValue == "i" )
onMessage( (MassQuote)(message), sessionID );
else
if( msgTypeValue == "Z" )
onMessage( (QuoteCancel)(message), sessionID );
else
if( msgTypeValue == "a" )
onMessage( (QuoteStatusRequest)(message), sessionID );
else
if( msgTypeValue == "b" )
onMessage( (QuoteAcknowledgement)(message), sessionID );
else
if( msgTypeValue == "V" )
onMessage( (MarketDataRequest)(message), sessionID );
else
if( msgTypeValue == "W" )
onMessage( (MarketDataSnapshotFullRefresh)(message), sessionID );
else
if( msgTypeValue == "X" )
onMessage( (MarketDataIncrementalRefresh)(message), sessionID );
else
if( msgTypeValue == "Y" )
onMessage( (MarketDataRequestReject)(message), sessionID );
else
if( msgTypeValue == "c" )
onMessage( (SecurityDefinitionRequest)(message), sessionID );
else
if( msgTypeValue == "d" )
onMessage( (SecurityDefinition)(message), sessionID );
else
if( msgTypeValue == "e" )
onMessage( (SecurityStatusRequest)(message), sessionID );
else
if( msgTypeValue == "f" )
onMessage( (SecurityStatus)(message), sessionID );
else
if( msgTypeValue == "g" )
onMessage( (TradingSessionStatusRequest)(message), sessionID );
else
if( msgTypeValue == "h" )
onMessage( (TradingSessionStatus)(message), sessionID );
else
if( msgTypeValue == "D" )
onMessage( (NewOrderSingle)(message), sessionID );
else
if( msgTypeValue == "8" )
onMessage( (ExecutionReport)(message), sessionID );
else
if( msgTypeValue == "Q" )
onMessage( (DontKnowTrade)(message), sessionID );
else
if( msgTypeValue == "G" )
onMessage( (OrderCancelReplaceRequest)(message), sessionID );
else
//.........这里部分代码省略.........