Message-ID: <2F7D63A21DB2C74EB8EB8C09AF667DB00559CBC1@eitc220.eitc.epson.com> From: "Petrie, Glen" Date: Mon, 6 Aug 2007 07:25:27 -0700 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C7D835.A2A2A518" Subject: [Printing-architecture] OPEP Job Ticket con't List-Id: Printing architecture under linux List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: printing-architecture@lists.freestandards.org This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C7D835.A2A2A518 Content-Type: text/plain Hello All, I am examining the job header files, principally those that create new objects. Within each header we used #define statements for declaration of the object themselves and the object attributes. The #define in all cases declared (or represent) a string. After thinking this over, I was concerned about the memory requirements for the string and the extra processing for parsing the string. In other words was the use of string adding value or added information? I concluded, that strictly from an information-theory bases, the string declaration provided no additional informational value for the #define's would require more processing compared to numerical #define declarations. In other words, programs will use the #define variables as calling arguments do not know (care) that strings are being represented. For the developer that writes a parsing routine to support the #define, it is a different story. In that case, a set of string compare statements will have to determine what object and what attributes was received; then processing can proceed. I believe, that without any loss of generality or abstraction, the #defines in the "create new object" header files can be declared as numerical values (sequential enum values to be specific). From the point of view to person calling/using on the new object API; they will not care what the #define variable represents. For the programmer creating the parser, simple switch statements can be used with no additional string preprocessing. With this proposal, which really help in memory utilization for embedded device, I have create a draft header file using numerical #define's instead the string #defines. I also believe this will mean ADDING a new job ticket API that uses the numerical #define's versus the string #define's. See the draft header file at <<< This is draft file and not complete >>> ftp://ftp.pwg.org/pub/pwg/openprinting/embedded/opepCurrent/opepSoftware/Job Ticket_Lib/inc/opJTAPI__draft.h Rgds, Glen W. Petrie Epson Imaging Technology Center 2580 Orchard Parkway, Suite 200 San Jose, CA, 95131 Voice: 408.576.4131 Fax: 408.474.0511 ------_=_NextPart_001_01C7D835.A2A2A518 Content-Type: text/html Content-Transfer-Encoding: quoted-printable OPEP Job Ticket con't

Hello All,

I am examining the = job header files, principally = those that create new = objects.   = Within each header = we used #define = statements for declaration of the = object themselves = and the object = attributes.  The #define in all cases declared (or = represent) a = string.  After thinking this over, = I was concerned about the memory requirements for the string and the extra processing for = parsing the string.  = In other words was the use of = string adding value or added information?  I = concluded, that strictly from an information-theory bases, the = string declaration provided = no additional informational value = for = the #define's would = require more processing = compared to numerical #define declarations.    In = other words, programs will use the = #define variables as = calling arguments do not know (care) = that strings = are being represented. For the developer that writes a parsing routine to support the = #define, it is a different = story.  In that = case, a set of string compare statements will have to = determine what object and what attributes was received; then processing can proceed.

I believe, that = without any loss of generality or abstraction, = the #defines in the "create new object" header files can = be declared as numerical values (sequential enum = values to be specific).  From the = point of view to person calling/using on the new object API; they will not care = what the #define variable represents.  For the = programmer creating the = parser, simple switch statements can be used with no additional string = preprocessing.

With this proposal, which = really help in memory utilization for embedded device, I have create a = draft header file using numerical #define's instead the = string #defines.   I also believe this will mean ADDING a new job ticket = API that uses the numerical = #define's versus the string #define's.


See the draft header file = at   <<< This = is draft file and not complete >>>

ftp://ftp.pwg.org/pub/pwg/openprinting/embedded/opepCurre= nt/opepSoftware/JobTicket_Lib/inc/opJTAPI__draft.h





Rgds,
Glen W. = Petrie
Epson Imaging = Technology Center
2580 Orchard Parkway, Suite = 200
San Jose, CA, 95131
Voice: 408.576.4131  Fax: 408.474.0511

------_=_NextPart_001_01C7D835.A2A2A518--