home *** CD-ROM | disk | FTP | other *** search
Wrap
iiiiffffllllFFFFiiiilllleeeeDDDDeeeesssscccc((((3333)))) IIIImmmmaaaaggggeeee FFFFoooorrrrmmmmaaaatttt LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll iiiiffffllllFFFFiiiilllleeeeDDDDeeeesssscccc((((3333)))) NNNNAAAAMMMMEEEE iiiiffffllllFFFFiiiilllleeeeDDDDeeeesssscccc - IFL's image file descriptor IIIINNNNHHHHEEEERRRRIIIITTTTSSSS FFFFRRRROOOOMMMM This is a base class with no inheritance. HHHHEEEEAAAADDDDEEEERRRR FFFFIIIILLLLEEEE #include <ifl/iflFileDesc.h> CCCCLLLLAAAASSSSSSSS DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN iflFileDesc is IFL's image file descriptor. It is created from a file name and/or a Unix file descriptor. It can either parse apart the components of a IFL file name (Unix file name, image index, format name, format specific string) or be supplied with a pre-parsed name. An iflFileDesc can be used to pre-parse an IFL file name, perhaps to check if the Unix file already exists when saving to a file, and then passed to iiiiffffllllFFFFiiiilllleeee::::::::ooooppppeeeennnn() or iiiiffffllllFFFFiiiilllleeee::::::::ccccrrrreeeeaaaatttteeee() to avoid reparsing the name. It can also be used to implement a different file name syntax by passing the pre-parsed file name to the alternate constructors. CCCCLLLLAAAASSSSSSSS MMMMEEEEMMMMBBBBEEEERRRR FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN SSSSUUUUMMMMMMMMAAAARRRRYYYY CCCCoooonnnnssssttttrrrruuuuccccttttoooorrrrssss iflFileDesc(const char* name, iflFormat* format=NULL) iflFileDesc(const char* fileName, int index, const char* formatName=NULL, const char* formatSpecific=NULL) iflFileDesc(const char* fileName, int index, iflFormat* format, const char* formatSpecific=NULL) GGGGeeeetttt aaaannnndddd sssseeeetttt mmmmeeeetttthhhhooooddddssss void setFileDesc(int filedesc) iflStatus getStatus() const char* getFileName() int getFileDesc() int getIndex() const char* getFormatName() iflFormat* getFormat() const char* getFormatSpecific() FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNNSSSS iiiiffffllllFFFFiiiilllleeeeDDDDeeeesssscccc(((()))) PPPPaaaaggggeeee 1111 iiiiffffllllFFFFiiiilllleeeeDDDDeeeesssscccc((((3333)))) IIIImmmmaaaaggggeeee FFFFoooorrrrmmmmaaaatttt LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll iiiiffffllllFFFFiiiilllleeeeDDDDeeeesssscccc((((3333)))) iflFileDesc(const char* fileName, int index, const char* formatName=NULL, const char* formatSpecific=NULL) iflFileDesc(const char* fileName, int index, iflFormat* format, const char* formatSpecific=NULL) iflFileDesc(const char* name, iflFormat* format=NULL) The first contructor creates a descriptor by parsing a IFL file name into it's components: Unix file name, image index, format name and format specifc string. The second contructor creates a descriptor from an already parsed name, The third version is the same as the second except it takes the format by pointer instead of by name. ggggeeeettttFFFFiiiilllleeeeDDDDeeeesssscccc(((()))) int getFileDesc() This method returns the Unix file descriptor. ggggeeeettttFFFFiiiilllleeeeNNNNaaaammmmeeee(((()))) const char* getFileName() This method returns the Unix file name portion of the parsed name. ggggeeeettttFFFFoooorrrrmmmmaaaatttt(((()))) iflFormat* getFormat() This method returns the iflFormat* for the format name portion of the parsed name. ggggeeeettttFFFFoooorrrrmmmmaaaattttNNNNaaaammmmeeee(((()))) const char* getFormatName() This method returns the format name portion of the parsed name. ggggeeeettttFFFFoooorrrrmmmmaaaattttSSSSppppeeeecccciiiiffffiiiicccc(((()))) const char* getFormatSpecific() This method returns the format specifc portion of the parsed name. PPPPaaaaggggeeee 2222 iiiiffffllllFFFFiiiilllleeeeDDDDeeeesssscccc((((3333)))) IIIImmmmaaaaggggeeee FFFFoooorrrrmmmmaaaatttt LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll iiiiffffllllFFFFiiiilllleeeeDDDDeeeesssscccc((((3333)))) ggggeeeettttIIIInnnnddddeeeexxxx(((()))) int getIndex() This method returns the sub-image index portion of the parsed name. ggggeeeettttSSSSttttaaaattttuuuussss(((()))) iflStatus getStatus() This method returns the status of parsing the file name (e.g. if an unknown format name was encoutered). sssseeeettttFFFFiiiilllleeeeDDDDeeeesssscccc(((()))) void setFileDesc(int filedesc) This method can be used to let IFL know that the file is already opened and to used this file descriptor rather than re-opening it. SSSSEEEEEEEE AAAALLLLSSSSOOOO iflFile(3), iflFormat(3) PPPPaaaaggggeeee 3333