Пример #1
0
        //--------------------------------------------------------------------//
        //                                                        M e t h o d //
        // c h e c k T a g                                                    //
        //--------------------------------------------------------------------//
        //                                                                    //
        // Searches the PCL XL DataType tag table for a matching entry.       //
        //                                                                    //
        //--------------------------------------------------------------------//

        public static Boolean checkTag(Byte tagToCheck,
                                       ref Boolean flagReserved,
                                       ref Boolean flagArray,
                                       ref Int32 groupSize,
                                       ref Int32 unitSize,
                                       ref PCLXLDataTypes.eBaseType baseType,
                                       ref String description)
        {
            Boolean seqKnown;

            PCLXLDataType tag;

            if (_tags.IndexOfKey(tagToCheck) != -1)
            {
                seqKnown = true;
                tag      = _tags[tagToCheck];
            }
            else
            {
                seqKnown = false;
                tag      = _tagUnknown;
            }

            tag.getDetails(ref flagReserved,
                           ref flagArray,
                           ref groupSize,
                           ref unitSize,
                           ref baseType,
                           ref description);

            return(seqKnown);
        }
Пример #2
0
        //--------------------------------------------------------------------//
        //                                                        M e t h o d //
        // g e t D e t a i l s                                                //
        //                                                                    //
        //--------------------------------------------------------------------//

        public void getDetails(ref Boolean flagReserved,
                               ref Boolean flagArray,
                               ref Int32 groupSize,
                               ref Int32 unitSize,
                               ref PCLXLDataTypes.eBaseType baseType,
                               ref String description)
        {
            flagReserved = _flagReserved;
            flagArray    = _flagArray;
            groupSize    = _groupSize;
            unitSize     = _unitSize;
            baseType     = _baseType;
            description  = _description;
        }
Пример #3
0
        //--------------------------------------------------------------------//
        //                                                        M e t h o d //
        // g e t D a t a                                                      //
        //                                                                    //
        //--------------------------------------------------------------------//

        public void getData(
            ref Boolean flagUbyteAsAscii,
            ref Boolean flagUint16AsUnicode,
            ref Boolean flagArrayType,
            ref Int32 decodeIndent,
            ref Int32 groupSize,
            ref Int32 unitSize,
            ref PCLXLDataTypes.eBaseType baseDataType)
        {
            flagUbyteAsAscii    = _flagUbyteAsAscii;
            flagUint16AsUnicode = _flagUint16AsUnicode;
            flagArrayType       = _flagArrayType;
            decodeIndent        = _decodeIndent;
            groupSize           = _groupSize;
            unitSize            = _unitSize;
            baseDataType        = _baseDataType;
        }
Пример #4
0
        //--------------------------------------------------------------------//
        //                                              C o n s t r u c t o r //
        // P r n P a r s e P C L X L E l e m e n t M e t r i c s              //
        //                                                                    //
        //--------------------------------------------------------------------//

        public PrnParsePCLXLElementMetrics(
            Boolean flagUbyteAsAscii,
            Boolean flagUint16AsUnicode,
            Boolean flagArrayType,
            Int32 decodeIndent,
            Int32 groupSize,
            Int32 unitSize,
            PCLXLDataTypes.eBaseType baseDataType)
        {
            _flagUbyteAsAscii    = flagUbyteAsAscii;
            _flagUint16AsUnicode = flagUint16AsUnicode;
            _flagArrayType       = flagArrayType;
            _decodeIndent        = decodeIndent;
            _groupSize           = groupSize;
            _unitSize            = unitSize;
            _baseDataType        = baseDataType;
        }
Пример #5
0
        //--------------------------------------------------------------------//
        //                                              C o n s t r u c t o r //
        // P C L X L D a t a T y p e                                          //
        //                                                                    //
        //--------------------------------------------------------------------//

        public PCLXLDataType(Byte tag,
                             Boolean flagReserved,
                             Boolean flagArray,
                             Int32 groupSize,
                             Int32 unitSize,
                             PCLXLDataTypes.eBaseType baseType,
                             String description)
        {
            _tag          = tag;
            _flagReserved = flagReserved;
            _flagArray    = flagArray;
            _groupSize    = groupSize;
            _unitSize     = unitSize;
            _baseType     = baseType;
            _description  = description;

            _statsCtParent = 0;
            _statsCtChild  = 0;
        }