12.11.2012 Views

ijpds formats.book - Kodak

ijpds formats.book - Kodak

ijpds formats.book - Kodak

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix E. IJQ File Format<br />

C++ Implementation of the Above Data Structures and Their Serialization<br />

C++ Implementation of the Above Data Structures and Their Serialization<br />

E - 2IJPDS Formats<br />

/////CRIP/////<br />

class CRIP<br />

{<br />

public:<br />

CRIP() {};<br />

~CRIP() {};<br />

};<br />

BOOL isCMYK;<br />

int side;<br />

float posDx;<br />

virtual void Write(CFile &file)<br />

{<br />

file.Write((BOOL *)&isCMYK, sizeof(BOOL));<br />

file.Write((int *)&side, sizeof(int));<br />

file.Write((float *)&posDx, sizeof(float));<br />

}<br />

/////CRIPMono/////<br />

class CRIPMono : public CRIP<br />

{<br />

public:<br />

CRIPMono() {};<br />

~CRIPMono() {};<br />

};<br />

int idRip;<br />

COLORREF rgb;<br />

virtual void Write(CFile &file)<br />

{<br />

CPrefRIP::Write(file);<br />

file.Write((BOOL *)&idRip, sizeof(int));<br />

file.Write((COLORREF*)&rgb, sizeof(COLORREF));<br />

}<br />

/////CRIPCmyk/////<br />

class CRIPCmyk : public CRIP<br />

{<br />

public:<br />

CRIPCmyk() {};<br />

~CRIPCmyk() {};<br />

};<br />

int idRips[4];<br />

virtual void Write(CFile &file)<br />

{<br />

CPrefRIP::Write(file);<br />

for (int i=0; i

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!