Changeset 1421
- Timestamp:
- 2000-08-18T14:45:59+12:00 (24 years ago)
- Location:
- trunk/gsdl/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/lib/cfgread.cpp
r1310 r1421 53 53 } 54 54 55 // write out line of values to cfgfile 56 // does nothing fancy - make sure no values contain carriage returns 57 int write_cfg_line (ofstream &fileout, const text_tarray &values) { 58 outconvertclass text_t2ascii; 59 60 text_tarray::const_iterator here = values.begin(); 61 text_tarray::const_iterator end = values.end(); 62 63 bool first = true; 64 while (here != end) { 65 if (first) fileout << text_t2ascii << *here; 66 else fileout << text_t2ascii << " \"" << *here << "\""; 67 first = false; 68 here ++; 69 } 70 fileout << "\n"; 71 } 55 72 56 73 // returns 0 on success, -1 on failure -
trunk/gsdl/lib/cfgread.h
r1310 r1421 42 42 int write_ini_line (ofstream &fileout, const text_t &key, const text_t value); 43 43 int read_ini_line (ifstream &filein, text_t &key, text_t &value); 44 int write_cfg_line (ofstream &fileout, const text_tarray &values); 44 45 int read_cfg_line (ifstream &filein, text_tarray &values); 45 46
Note:
See TracChangeset
for help on using the changeset viewer.