| 21 | |
| 22 | |
| 23 | const char *DirToString(std::ios::seekdir dir) |
| 24 | { |
| 25 | switch (dir) { |
| 26 | case std::ios::beg: |
| 27 | return "std::ios::beg"; |
| 28 | case std::ios::end: |
| 29 | return "std::ios::end"; |
| 30 | case std::ios::cur: |
| 31 | return "std::ios::cur"; |
| 32 | default: |
| 33 | return "invalid"; |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | std::string OpenModeToString(std::ios::openmode mode) |
| 38 | { |