Simulacrum  1.2
Classes | Public Member Functions | Static Public Member Functions | List of all members
Simulacrum::SIO Class Referenceabstract

#include <sfileio.h>

Inheritance diagram for Simulacrum::SIO:
Inheritance graph
Collaboration diagram for Simulacrum::SIO:
Collaboration graph

Classes

struct  imgStreamData
 

Public Member Functions

 SIO ()
 
virtual ~SIO ()
 
virtual int setLocation (const std::string &)=0
 
virtual void changeLocation (const std::string &)=0
 
virtual const SCoordinategetExtent ()=0
 
virtual bool isValid () const =0
 
virtual const std::string & getLocation () const =0
 
virtual int loadSSpace (SSpace &)
 
virtual int storeSSpace (SSpace &)
 
virtual SAbsTreeNodegetRoot ()
 
virtual void refresh (SConnectable::sdepth_t deep=false)
 
virtual void store ()
 
virtual std::string getInfo (const std::string &path="")
 
virtual bool hasArchive ()
 
virtual bool hasSSpace (const std::string &path="")
 
virtual void getSSpaceInto (SSpace &, const std::string &path="")
 
virtual void putSSpaceInto (SSpace &, const std::string &path="")
 
virtual const std::string getLocationPathID (const std::string &path="")
 
virtual void doStop (bool)
 
virtual bool & stop ()
 
- Public Member Functions inherited from Simulacrum::SResource
virtual SimulacrumLibrary::str_enc stringEncoding ()
 
virtual void setStringEncoding (SimulacrumLibrary::str_enc)
 
virtual void load ()
 
virtual void loadMissingData ()
 
virtual void clear ()=0
 
virtual SURI URI ()
 
virtual const std::string & resourceType ()
 
virtual SResourceLoaderloader ()
 
virtual void setLoader (SResourceLoader *)
 
bool isCompressed () const
 
void decompress (const std::string &target) const
 
void compress (const std::string &target) const
 
 SResource ()
 
virtual ~SResource ()
 
- Public Member Functions inherited from Simulacrum::SConnectable
 SConnectable ()
 
virtual ~SConnectable ()
 
void emitRefresh (sdepth_t)
 
virtual void signal (ssignal_t, void *=nullptr)
 
void emitSignal (ssignal_t, void *=nullptr)
 
virtual void progress (int)
 
virtual bool sconnect (SConnectable &)
 
virtual bool sconnect (SConnectable &, bool delondiscon)
 
virtual bool sdisconnect (SConnectable &)
 
virtual void disconnectSources ()
 
virtual void disconnectListeners ()
 
virtual void disconnectListeners_Refresh ()
 
virtual bool isConnected (SConnectable &) const
 
virtual bool isConnected (SConnectable *) const
 
virtual void sconfigure (const std::string &)
 
virtual SConnectableend ()
 
virtual SConnectablepenum ()
 
virtual SConnectablepred ()
 
virtual SConnectablesucc ()
 
virtual void deleteOnDisconnect (bool)
 
virtual bool deleteOnDisconnect ()
 
virtual void setName (const std::string &)
 
virtual const std::string & getName () const
 
const std::map< std::string, double > & parameters ()
 
const std::map< std::string, std::string > & properties ()
 
bool hasProperty (const std::string &) const
 
bool hasParameter (const std::string &) const
 
void setProperty (const std::string &, const std::string &)
 
void setParameter (const std::string &, double)
 
std::string getProperty (const std::string &) const
 
double getParameter (const std::string &) const
 
- Public Member Functions inherited from Simulacrum::SLockable
virtual void lock ()
 
virtual void unlock ()
 
virtual bool try_lock ()
 
virtual void wait ()
 
virtual void refIncr ()
 
virtual void refDecr ()
 
virtual int refCount ()
 
 SLockable ()
 
 SLockable (const SLockable &)
 
virtual ~SLockable ()
 

Static Public Member Functions

static int readTabulatedData (SSpace &, std::istream &, SElem::Precision, bool isRGB, bool isSigned, bool isInterLvd=true, bool *dostop=nullptr)
 
static int writeTabulatedData (SSpace &, std::ostream &, SElem::Precision, bool isRGB)
 
static unsigned maxvaltobytewidth (unsigned)
 
- Static Public Member Functions inherited from Simulacrum::SResource
static std::string typeString ()
 
static void loadInto (SSpace &targ, SResource &&src, const std::string &uri, const std::string &respath="")
 
static void storeInto (SSpace &src, SResource &&targ, const std::string &uri, const std::string &respath="")
 

Additional Inherited Members

- Public Types inherited from Simulacrum::SConnectable
typedef unsigned ssignal_t
 
typedef bool sdepth_t
 
- Protected Member Functions inherited from Simulacrum::SResource
void labelSSpace (SSpace &, const std::string &path)
 
- Protected Member Functions inherited from Simulacrum::SConnectable
virtual bool addListener (SConnectable &)
 
virtual bool removeListener (SConnectable &)
 
virtual bool addTarget (SConnectable &)
 
virtual bool removeTarget (SConnectable &)
 

Constructor & Destructor Documentation

◆ SIO()

SIO::SIO ( )

◆ ~SIO()

SIO::~SIO ( )
virtual

Member Function Documentation

◆ changeLocation()

virtual void Simulacrum::SIO::changeLocation ( const std::string &  )
pure virtual

◆ doStop()

void SIO::doStop ( bool  nstop)
virtual

Reimplemented from Simulacrum::SResource.

◆ getExtent()

virtual const SCoordinate& Simulacrum::SIO::getExtent ( )
pure virtual

◆ getInfo()

std::string SIO::getInfo ( const std::string &  path = "")
virtual

◆ getLocation()

virtual const std::string& Simulacrum::SIO::getLocation ( ) const
pure virtual

◆ getLocationPathID()

const std::string SIO::getLocationPathID ( const std::string &  path = "")
virtual

Reimplemented from Simulacrum::SResource.

◆ getRoot()

SAbsTreeNode & SIO::getRoot ( )
virtual

Implements Simulacrum::SResource.

Reimplemented in Simulacrum::SDICOM.

◆ getSSpaceInto()

void SIO::getSSpaceInto ( SSpace targ,
const std::string &  path = "" 
)
virtual

Reimplemented from Simulacrum::SResource.

Reimplemented in Simulacrum::SDICOM.

◆ hasArchive()

bool SIO::hasArchive ( )
virtual

Implements Simulacrum::SResource.

Reimplemented in Simulacrum::SDICOM.

◆ hasSSpace()

bool SIO::hasSSpace ( const std::string &  path = "")
virtual

◆ isValid()

virtual bool Simulacrum::SIO::isValid ( ) const
pure virtual

◆ loadSSpace()

int SIO::loadSSpace ( SSpace targ)
virtual

◆ maxvaltobytewidth()

unsigned SIO::maxvaltobytewidth ( unsigned  themaxval)
static

◆ putSSpaceInto()

void SIO::putSSpaceInto ( SSpace src,
const std::string &  path = "" 
)
virtual

Reimplemented from Simulacrum::SResource.

◆ readTabulatedData()

int SIO::readTabulatedData ( SSpace targetimage,
std::istream &  targetfile,
SElem::Precision  pixelbytes,
bool  isRGB,
bool  isSigned,
bool  isInterLvd = true,
bool *  dostop = nullptr 
)
static

◆ refresh()

void SIO::refresh ( SConnectable::sdepth_t  deep = false)
virtual

◆ setLocation()

virtual int Simulacrum::SIO::setLocation ( const std::string &  )
pure virtual

◆ stop()

bool & SIO::stop ( )
virtual

◆ store()

void SIO::store ( )
virtual

Implements Simulacrum::SResource.

Reimplemented in Simulacrum::SDICOM.

◆ storeSSpace()

int SIO::storeSSpace ( SSpace targ)
virtual

◆ writeTabulatedData()

int SIO::writeTabulatedData ( SSpace source,
std::ostream &  target,
SElem::Precision  bytes,
bool  isRGB 
)
static

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