Simulacrum  1.2
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
Simulacrum::SResource Class Referenceabstract

#include <sresource.h>

Inheritance diagram for Simulacrum::SResource:
Inheritance graph
Collaboration diagram for Simulacrum::SResource:
Collaboration graph

Public Member Functions

virtual SimulacrumLibrary::str_enc stringEncoding ()
 
virtual void setStringEncoding (SimulacrumLibrary::str_enc)
 
virtual const std::string & getLocation () const =0
 
virtual int setLocation (const std::string &)=0
 
virtual void changeLocation (const std::string &)
 
virtual bool isValid () const =0
 
virtual SAbsTreeNodegetRoot ()=0
 
virtual void refresh (SConnectable::sdepth_t deep=false) override=0
 
virtual void load ()
 
virtual void loadMissingData ()
 
virtual void store ()=0
 
virtual std::string getInfo (const std::string &path="")=0
 
virtual bool hasArchive ()=0
 
virtual bool hasSSpace (const std::string &path="")=0
 
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 clear ()=0
 
virtual void doStop (bool)
 
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 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="")
 

Protected Member Functions

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 &)
 

Additional Inherited Members

- Public Types inherited from Simulacrum::SConnectable
typedef unsigned ssignal_t
 
typedef bool sdepth_t
 

Constructor & Destructor Documentation

◆ SResource()

SResource::SResource ( )

◆ ~SResource()

SResource::~SResource ( )
virtual

Member Function Documentation

◆ changeLocation()

void SResource::changeLocation ( const std::string &  newloc)
virtual

◆ clear()

virtual void Simulacrum::SResource::clear ( )
pure virtual

◆ compress()

void SResource::compress ( const std::string &  target) const

◆ decompress()

void SResource::decompress ( const std::string &  target) const

◆ doStop()

void SResource::doStop ( bool  )
virtual

Reimplemented in Simulacrum::SDCMArch, and Simulacrum::SIO.

◆ getInfo()

virtual std::string Simulacrum::SResource::getInfo ( const std::string &  path = "")
pure virtual

◆ getLocation()

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

◆ getLocationPathID()

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

◆ getRoot()

virtual SAbsTreeNode& Simulacrum::SResource::getRoot ( )
pure virtual

◆ getSSpaceInto()

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

◆ hasArchive()

virtual bool Simulacrum::SResource::hasArchive ( )
pure virtual

◆ hasSSpace()

virtual bool Simulacrum::SResource::hasSSpace ( const std::string &  path = "")
pure virtual

◆ isCompressed()

bool SResource::isCompressed ( ) const

◆ isValid()

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

◆ labelSSpace()

void SResource::labelSSpace ( SSpace target,
const std::string &  path 
)
protected

◆ load()

void SResource::load ( )
virtual

Reimplemented in Simulacrum::SResourceSLua.

◆ loader()

SResourceLoader & SResource::loader ( )
virtual

◆ loadInto()

void SResource::loadInto ( SSpace targ,
SResource &&  src,
const std::string &  uri,
const std::string &  respath = "" 
)
static

◆ loadMissingData()

void SResource::loadMissingData ( )
virtual

Reimplemented in Simulacrum::SDICOM.

◆ putSSpaceInto()

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

Reimplemented in Simulacrum::SIO.

◆ refresh()

virtual void Simulacrum::SResource::refresh ( SConnectable::sdepth_t  deep = false)
overridepure virtual

◆ resourceType()

const std::string & SResource::resourceType ( )
virtual

◆ setLoader()

void SResource::setLoader ( SResourceLoader newloader)
virtual

◆ setLocation()

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

◆ setStringEncoding()

void SResource::setStringEncoding ( SimulacrumLibrary::str_enc  )
virtual

Reimplemented in Simulacrum::SResourceSLua.

◆ store()

virtual void Simulacrum::SResource::store ( )
pure virtual

◆ storeInto()

void SResource::storeInto ( SSpace src,
SResource &&  targ,
const std::string &  uri,
const std::string &  respath = "" 
)
static

◆ stringEncoding()

SimulacrumLibrary::str_enc SResource::stringEncoding ( )
virtual

◆ typeString()

std::string SResource::typeString ( )
static

◆ URI()

SURI SResource::URI ( )
virtual

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