Changes between Version 2 and Version 3 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/File/CFile


Ignore:
Timestamp:
08/22/10 21:03:53 (14 years ago)
Author:
Don Wilson
Comment:

--

Legend:

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

    v2 v3  
    55== Constructors ==
    66
    7  * CFile(const char* pszFilename, const char* pszMode);
     7 * CFile(void);
     8 * CFile(const string& strFilename);
     9 * CFile(const char* pszfilename);
     10
     11These constructors just create a CFile object without opening a file.
     12
     13 * CFile(const string& strFilename, const string& strMode);
    814 * CFile(const string& strFilename, const char* pszMode);
    915 * CFile(const char* pszFilename, const string& strMode);
    10  * CFile(const string& strFilename, const string& strMode);
     16 * CFile(const char* pszFilename, const char* pszMode);
    1117
    12 The constructors construct the file object and attempt to open the file.
     18These constructors construct the file object and attempt to open the file.
    1319
    1420{{{
     
    2026}
    2127}}}
     28
     29== Member Functions ==
     30
     31=== Open ===
     32Opens a specified file, or using the filename already stored in the object.
     33
     34 * bool Open(const string& strFilename, const string& strMode);
     35 * bool Open(const string& strFilename, const char* pszMode);
     36 * bool Open(const char* pszFilename, const string& strMode);
     37 * bool Open(const char* pszFilename, const char* pszMode);
     38 * bool Open(const char* pszMode);
     39
     40==== Parameters ====
     41 * strFilename - filename
     42 * pszFilename - filename
     43 * strMode - mode
     44 * pszMode - mode
     45
     46==== Return ====
     47
     48Returns true if successful or false if unsuccessful.
     49
     50
     51=== Close ===
     52Closes the file
     53 * void Close(void);
     54
     55==== Parameters ====
     56
     57Function does not accept any parameters
     58
     59==== Result ====
     60 
     61Function does not return any result.
     62
     63=== SetSerial ===
     64
     65bool SetSerial(baud_index baud, data_bit_index = data8, parity_index = parityNone, stop_bit_index = stopOne);
     66
     67=== ReadLine ===
     68
     69bool ReadLine(std::string& str);
     70
     71=== DeleteFile ===
     72
     73static bool DeleteFile(std::string& filepath);
     74static bool DeleteFile(const char* filepath);
     75
     76bool DeleteFile(void);
     77
     78
     79=== IsReady ===
     80
     81bool IsReady(void);
     82
     83=== SetRTS ===
     84
     85bool SetRTS(bool on = true);
     86
     87=== GetFile ===
     88
     89FILE* GetFile(void);
     90
     91=== Print ===
     92
     93void Print(const std::string& fmt, ...);
     94void Print(const char * fmt, va_list& args);
     95void Print(const std::string& fmt, va_list& args);
     96void Print(const char * fmt, va_list& args);
     97
     98=== SetNonBlocking ===
     99
     100void SetNonBlocking(void);
     101
     102
     103
     104=== Read ===
     105
     106bool Read(void * ptr, size_t size);
     107
     108=== Write ===
     109
     110bool Write(void * buf, size_t size);
     111
     112=== GetBytesRead ===
     113
     114size_t GetBytesRead(void);
     115
     116=== GetbytesWritten ===
     117
     118size_t GetBytesWritten(void);
     119
     120=== Seek ===
     121
     122bool Seek(long int offset, long int origin = SEEK_SET);
     123
     124