Пример #1
0
        public static OperatorCodec GetCodec(Operator operator_Renamed, FASTType type)
        {
            var key = new Key(operator_Renamed, type);

            if (!OPERATOR_MAP.ContainsKey(key))
            {
                Global.HandleError(Error.FastConstants.S2_OPERATOR_TYPE_INCOMP, "The operator \"" + operator_Renamed + "\" is not compatible with type \"" + type + "\"");
                throw new ArgumentException();
            }

            return(OPERATOR_MAP[key]);
        }
Пример #2
0
        protected internal OperatorCodec(Operator operator_Renamed, FASTType[] types)
        {
            this.operator_Renamed = operator_Renamed;
            for (int i = 0; i < types.Length; i++)
            {
                var key = new Key(operator_Renamed, types[i]);

                if (!OPERATOR_MAP.ContainsKey(key))
                {
                    OPERATOR_MAP[key] = this;
                }
            }
        }
Пример #3
0
        protected internal OperatorCodec(Operator operator_Renamed, FASTType[] types)
        {
            this.operator_Renamed = operator_Renamed;
            for (int i = 0; i < types.Length; i++)
            {
                var key = new Key(operator_Renamed, types[i]);

                if (!OPERATOR_MAP.ContainsKey(key))
                {
                    OPERATOR_MAP[key] = this;
                }
            }
        }
Пример #4
0
        public static OperatorCodec GetCodec(Operator operator_Renamed, FASTType type)
        {
            var key = new Key(operator_Renamed, type);

            if (!OPERATOR_MAP.ContainsKey(key))
            {
                Global.HandleError(Error.FastConstants.S2_OPERATOR_TYPE_INCOMP, "The operator \"" + operator_Renamed + "\" is not compatible with type \"" + type + "\"");
                throw new ArgumentException();
            }

            return OPERATOR_MAP[key];
        }