public virtual void AddBufferEntityParser(int gmuId, int appId, IFFParser parser, FFTgtParseBufferHandler action)
        {
            using (ILogMethod method = Log.LogMethod(this.DYN_MODULE_NAME, "AddBufferEntityParser"))
            {
                try
                {
                    FF_FlowInitiation flowDirection = this.FlowInitiation;
                    if (_subParsers == null)
                    {
                        _subParsers = new FFParserDictionary();
                    }
                    if (_parserMappings == null)
                    {
                        _parserMappings = new IntDictionary <int>();
                    }

                    if (parser != null && parser.FlowInitiation != FF_FlowInitiation.Any)
                    {
                        flowDirection = parser.FlowInitiation;
                    }

                    _subParsers.AddParserItem(flowDirection, gmuId, appId, parser, action);
                    if (appId != -1 &&
                        !_parserMappings.ContainsKey(appId))
                    {
                        _parserMappings.Add(appId, gmuId);
                    }
                }
                catch (Exception ex)
                {
                    method.Exception(ex);
                }
            }
        }
 internal FFParser_MsgFactory_Generic_G2H(FFParserDictionary subParsers, IFFTgtParser targetParser)
     : base(subParsers, targetParser)
 {
 }
 internal FFParser_MsgFactory_MC300_H2G(FFParserDictionary subParsers, IFFTgtParser targetParser)
     : base(subParsers, targetParser)
 {
     this.RegisterMessageParsers();
 }
Exemple #4
0
 internal FFParser_TgtFactory_Generic_G2H(FFParserDictionary subParsers)
     : base(subParsers)
 {
 }
Exemple #5
0
 internal FFParser_TgtFactory_MC300_G2H(FFParserDictionary subParsers)
     : base(subParsers)
 {
     this.AddSubParsers();
 }
 internal FFTgtParser(FFParserDictionary subParsers)
     : base(subParsers)
 {
 }
 internal FFMsgParser(FFParserDictionary subParsers, IFFTgtParser targetParser)
     : this(subParsers)
 {
     this.TargetParser = targetParser;
 }
 internal FFParser(FFParserDictionary subParsers)
 {
     _subParsers = subParsers;
 }