uHTTP for C++
uHTTP::File Class Reference

#include <File.h>

Public Member Functions

 File ()
 
 File (const std::string &fname)
 
 File (const std::string &dir, const std::string &fname)
 
 File (File *file)
 
 ~File ()
 
void setName (const std::string &fname)
 
const char * getName ()
 
const char * getFileName (std::string &buf)
 
FilegetAbsoluteFile ()
 
const char * getParent ()
 
bool exists ()
 
bool load (std::string &buf)
 
bool save (const std::string &buf)
 
const char * getSuffix (std::string &buf)
 
long lastModified ()
 
long length ()
 
bool equals (File *file)
 
size_t listFiles (FileList &fileList)
 
bool isDirectory ()
 
bool isFile ()
 

Static Public Member Functions

static bool exists (const std::string &name)
 
static bool load (const std::string &name, std::string &buf)
 
static bool save (const std::string &name, const std::string &buf)
 
static bool isXMLFileName (const std::string &name)
 

Static Public Attributes

static const char separatorChar
 
static const char pathSeparatorChar
 
static const char * separator
 
static const char * pathSeparator
 
static const char * O_TEXT
 
static const char * O_BINARY
 

Private Attributes

std::string nameStr
 
std::string parentStr
 
FileabsoluteFile
 

Constructor & Destructor Documentation

◆ File() [1/4]

uHTTP::File::File ( )

◆ File() [2/4]

uHTTP::File::File ( const std::string & fname)

◆ File() [3/4]

uHTTP::File::File ( const std::string & dir,
const std::string & fname )

◆ File() [4/4]

uHTTP::File::File ( File * file)

◆ ~File()

uHTTP::File::~File ( )

Member Function Documentation

◆ equals()

bool uHTTP::File::equals ( File * file)

◆ exists() [1/2]

bool uHTTP::File::exists ( )
inline

◆ exists() [2/2]

static bool uHTTP::File::exists ( const std::string & name)
static

◆ getAbsoluteFile()

File * uHTTP::File::getAbsoluteFile ( )

◆ getFileName()

const char * uHTTP::File::getFileName ( std::string & buf)

◆ getName()

const char * uHTTP::File::getName ( )
inline

◆ getParent()

const char * uHTTP::File::getParent ( )

◆ getSuffix()

const char * uHTTP::File::getSuffix ( std::string & buf)

◆ isDirectory()

bool uHTTP::File::isDirectory ( )

◆ isFile()

bool uHTTP::File::isFile ( )

◆ isXMLFileName()

static bool uHTTP::File::isXMLFileName ( const std::string & name)
static

◆ lastModified()

long uHTTP::File::lastModified ( )

◆ length()

long uHTTP::File::length ( )

◆ listFiles()

size_t uHTTP::File::listFiles ( FileList & fileList)

◆ load() [1/2]

static bool uHTTP::File::load ( const std::string & name,
std::string & buf )
static

◆ load() [2/2]

bool uHTTP::File::load ( std::string & buf)
inline

◆ save() [1/2]

bool uHTTP::File::save ( const std::string & buf)
inline

◆ save() [2/2]

static bool uHTTP::File::save ( const std::string & name,
const std::string & buf )
static

◆ setName()

void uHTTP::File::setName ( const std::string & fname)
inline

Field Documentation

◆ absoluteFile

File* uHTTP::File::absoluteFile
private

◆ nameStr

std::string uHTTP::File::nameStr
private

◆ O_BINARY

const char* uHTTP::File::O_BINARY
static

◆ O_TEXT

const char* uHTTP::File::O_TEXT
static

◆ parentStr

std::string uHTTP::File::parentStr
private

◆ pathSeparator

const char* uHTTP::File::pathSeparator
static

◆ pathSeparatorChar

const char uHTTP::File::pathSeparatorChar
static

◆ separator

const char* uHTTP::File::separator
static

◆ separatorChar

const char uHTTP::File::separatorChar
static

The documentation for this class was generated from the following file: