Changes between Version 6 and Version 7 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/File/CFile


Ignore:
Timestamp:
08/23/10 07:47:10 (14 years ago)
Author:
Don Wilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/Prog/Manual/ApplicationLibraries/lib825ev/File/CFile

    v6 v7  
    2020}}}
    2121These constructors construct the file object and attempt to open the file.
     22
     23
     24==== Parameters ====
     25 * strFilename - filename
     26 * pszFilename - filename
     27 * strMode - mode
     28 * pszMode - mode
     29
     30==== Examples ====
    2231
    2332{{{
     
    3039}}}
    3140
     41{{{
     42CFile fileLog("/mnt/fl1/log.txt");
     43}}}
     44This contructs the object to open later.
     45
     46== Member Functions ==
     47
     48=== Open ===
     49Opens a specified file, or using the filename already stored in the object.
     50
     51{{{
     52bool Open(const string& strFilename, const string& strMode);
     53bool Open(const string& strFilename, const char* pszMode);
     54bool Open(const char* pszFilename, const string& strMode);
     55bool Open(const char* pszFilename, const char* pszMode);
     56bool Open(const char* pszMode);
     57}}}
     58
    3259==== Parameters ====
    3360 * strFilename - filename
     
    3663 * pszMode - mode
    3764
    38 == Member Functions ==
    39 
    40 === Open ===
    41 Opens a specified file, or using the filename already stored in the object.
    42 
    43 {{{
    44 bool Open(const string& strFilename, const string& strMode);
    45 bool Open(const string& strFilename, const char* pszMode);
    46 bool Open(const char* pszFilename, const string& strMode);
    47 bool Open(const char* pszFilename, const char* pszMode);
    48 bool Open(const char* pszMode);
    49 }}}
    50 
    51 ==== Parameters ====
    52  * strFilename - filename
    53  * pszFilename - filename
    54  * strMode - mode
    55  * pszMode - mode
    56 
    5765==== Return Value ====
    5866
     
    116124
    117125==== Remarks ====
     126
     127IsReady() will return false if the CTS line is unconnected. Printers or other devices must be wired correctly for applications to be able to use this function to determine their readiness.
    118128
    119129==== Example ====
     
    160170=== GetFile ===
    161171
    162  * FILE* GetFile(void);
     172{{{
     173FILE* GetFile(void);
     174}}}
    163175
    164176=== Print ===
    165177
    166  * void Print(const std::string& fmt, ...);
    167  * void Print(const char * fmt, va_list& args);
    168  * void Print(const std::string& fmt, va_list& args);
    169  * void Print(const char * fmt, va_list& args);
     178{{{
     179void Print(const std::string& fmt, ...);
     180void Print(const char * fmt, va_list& args);
     181void Print(const std::string& fmt, va_list& args);
     182void Print(const char * fmt, va_list& args);
     183}}}
    170184
    171185=== SetNonBlocking ===
    172186
    173  * void SetNonBlocking(void);
    174 
     187{{{
     188void SetNonBlocking(void);
     189}}}
    175190
    176191
    177192=== Read ===
    178193
    179  * bool Read(void * ptr, size_t size);
     194{{{
     195bool Read(void * ptr, size_t size);
     196}}}
    180197
    181198=== Write ===
    182199
    183  * bool Write(void * buf, size_t size);
     200{{{
     201bool Write(void * buf, size_t size);
     202}}}
    184203
    185204=== GetBytesRead ===
    186205
    187  * size_t GetBytesRead(void);
     206{{{
     207size_t GetBytesRead(void);
     208}}}
    188209
    189210=== GetbytesWritten ===
    190211
    191  * size_t GetBytesWritten(void);
     212{{{
     213size_t GetBytesWritten(void);
     214}}}
    192215
    193216=== Seek ===
    194217
    195  * bool Seek(long int offset, long int origin = SEEK_SET);
    196 
    197 
     218{{{
     219bool Seek(long int offset, long int origin = SEEK_SET);
     220}}}
     221