Changes between Version 13 and Version 14 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/File/CFile


Ignore:
Timestamp:
08/23/10 09:05:26 (14 years ago)
Author:
Don Wilson
Comment:

--

Legend:

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

    v13 v14  
    237237==== Remarks ====
    238238
    239 IsReady() 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.
     239IsReady() 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. '''The main board COM3 is not currently supported by this function.'''
    240240
    241241==== Example ====
     
    287287
    288288=== Print ===
    289 
    290 {{{
    291 void Print(const std::string& fmt, ...);
    292 void Print(const char * fmt, va_list& args);
    293 void Print(const std::string& fmt, va_list& args);
    294 void Print(const char * fmt, va_list& args);
     289Outputs text which may include format specifiers. For each format specifier an additional parameter must be provided.
     290{{{
     291void Print(const string& strFormat, ...);
     292void Print(const char* pszFormat, ...);
     293void Print(const string& strFormat, va_list& args);
     294void Print(const char* pszFormat, va_list& args);
     295}}}
     296
     297==== Parameters ====
     298
     299 * strFormat - string to output, may include format specifiers such as C printf statements
     300 * pszFormat - pointer to null-terminated string to output, may include format specifiers
     301 * ... - variable list of arguments that should match up with format specifiers
     302 * args - variable list of aguments structure
     303
     304==== Return Value ====
     305
     306Function does not return a value.
     307
     308==== Remarks ====
     309
     310==== Examples ====
     311{{{
     312string str = "Hello World\r\n";
     313file.Print(str);
     314}}}
     315
     316{{{
     317int n = 5;
     318string str = "ABC";
     319file.Print("Number: %d String %s\r\n", n, str.c_str());
     320}}}
     321
     322{{{
     323// This is a function to log update data to two devices
     324// g_fileLog1, and g_fileLog2 are globals that should already have been opened before this function is called.
     325void LogOutput(const char* fmt, ...)
     326{
     327   va_list args;
     328   va_start(args, fmt);
     329
     330   g_fileLog1.Print(fmt, args);
     331   g_fileLog2.Print(fmt, args);
     332}
     333
    295334}}}
    296335