Simulacrum  1.2
Public Member Functions | Static Public Member Functions | List of all members
Simulacrum::SFile Class Reference

#include <sfile.h>

Collaboration diagram for Simulacrum::SFile:
Collaboration graph

Public Member Functions

 SFile ()
 
 SFile (const std::string &)
 
 SFile (const SFile &)
 
 SFile (SFile &&)
 
SFileoperator= (SFile &)
 
SFileoperator= (SFile &&)
 
virtual ~SFile ()
 
const std::string & getLocation ()
 
void setLocation (const std::string &)
 
bool exists ()
 
bool isDIR ()
 
std::vector< std::string > getDIRContents (bool recurse=false)
 
void deleteFromDisk ()
 
void move (const std::string &)
 
void copy (const std::string &)
 
void mkdir ()
 
unsigned long size ()
 
SFileoperator= (const SFile &)
 
bool toStream (std::ostream &)
 
bool fromStream (std::istream &)
 
std::string toString ()
 
bool fromString (const std::string &)
 
void removeOnDestroy (bool=true)
 
void clear ()
 
int exec (const std::string &args)
 

Static Public Member Functions

static std::string getSystemSeparator ()
 
static std::string localTempDIR ()
 
static std::string genTempFileName ()
 

Constructor & Destructor Documentation

◆ SFile() [1/4]

SFile::SFile ( )

◆ SFile() [2/4]

SFile::SFile ( const std::string &  newfile)

◆ SFile() [3/4]

SFile::SFile ( const SFile that)

◆ SFile() [4/4]

SFile::SFile ( SFile &&  that)

◆ ~SFile()

SFile::~SFile ( )
virtual

Member Function Documentation

◆ clear()

void SFile::clear ( )

◆ copy()

void SFile::copy ( const std::string &  target)

◆ deleteFromDisk()

void SFile::deleteFromDisk ( )

◆ exec()

int SFile::exec ( const std::string &  args)

◆ exists()

bool SFile::exists ( )

◆ fromStream()

bool SFile::fromStream ( std::istream &  source)

◆ fromString()

bool SFile::fromString ( const std::string &  source)

◆ genTempFileName()

std::string SFile::genTempFileName ( )
static

◆ getDIRContents()

std::vector< std::string > SFile::getDIRContents ( bool  recurse = false)

◆ getLocation()

const std::string & SFile::getLocation ( )

◆ getSystemSeparator()

std::string SFile::getSystemSeparator ( )
static

◆ isDIR()

bool SFile::isDIR ( )

◆ localTempDIR()

std::string SFile::localTempDIR ( )
static

◆ mkdir()

void SFile::mkdir ( )

◆ move()

void SFile::move ( const std::string &  target)

◆ operator=() [1/3]

SFile & SFile::operator= ( const SFile target)

◆ operator=() [2/3]

SFile & SFile::operator= ( SFile &&  target)

◆ operator=() [3/3]

SFile & SFile::operator= ( SFile target)

◆ removeOnDestroy()

void SFile::removeOnDestroy ( bool  dorem = true)

◆ setLocation()

void SFile::setLocation ( const std::string &  newlocation)

◆ size()

long unsigned int SFile::size ( )

◆ toStream()

bool SFile::toStream ( std::ostream &  targ)

◆ toString()

std::string SFile::toString ( )

The documentation for this class was generated from the following files:
Simulacrum Project