rcolyer.net
RC Lib  Version 202403231100
Classes | Namespaces | Enumerations | Functions
File.h File Reference

Provides file input and output, and file / directory tools. More...

#include "RCconfig.h"
#include "Types.h"
#include "Errors.h"
#include "Ptr.h"
#include "Data1D.h"
#include "RStr.h"
#include <winsock2.h>
#include <direct.h>
#include <windows.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <atomic>
#include <type_traits>

Go to the source code of this file.

Classes

class  RC::FileBase
 Provides the common methods for the FileRead/FileWrite/FileRW classes. More...
 
class  RC::FileRead
 A file reading class that provides buffered and unbuffered access to files with support for non-POD classes. More...
 
class  RC::FileWrite
 A file writing class that provides buffered and unbuffered output to files with support for non-POD classes. More...
 
class  RC::FileRW
 A file class for both reading and writing that provides buffered and unbuffered output to files. More...
 
class  RC::File
 A class with static methods for file and directory info and manipulation. More...
 

Namespaces

 RC
 

Enumerations

enum  RC::WriteMode { TRUNCATE =0 , KEEP , APPEND , NEWONLY }
 Valid write modes for a FileWrite or FileRW. More...
 

Functions

template<class T >
bool RC::FileGetWrapper (FileRead &fr, T &data)
 Overload this with a specialization to support Get on a custom type. More...
 
template<class T >
void RC::FilePutWrapper (FileWrite &fw, const T &data)
 Overload this with a specialization to support Put on a custom type. More...
 
template<>
bool RC::FileGetWrapper< std::string > (FileRead &fr, std::string &data)
 A specialization for handling std::string objects.
 
template<>
void RC::FilePutWrapper< std::string > (FileWrite &fw, const std::string &data)
 A specialization for handling std::string objects.
 

Detailed Description

Provides file input and output, and file / directory tools.

email address
— (c) 2015