예제 #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];
        }