Simulacrum  1.2
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
Simulacrum::SResourceSLua Class Reference

#include <sresource.h>

Inheritance diagram for Simulacrum::SResourceSLua:
Inheritance graph
Collaboration diagram for Simulacrum::SResourceSLua:
Collaboration graph

Public Member Functions

 SResourceSLua (const std::string &srcode)
 
virtual ~SResourceSLua ()
 
virtual const std::string & getLocation () const override
 
virtual int setLocation (const std::string &) override
 
virtual bool isValid () const override
 
virtual SAbsTreeNodegetRoot () override
 
virtual void refresh (SConnectable::sdepth_t deep=false) override
 
void load () override
 
virtual void store () override
 
virtual std::string getInfo (const std::string &path="") override
 
virtual bool hasArchive () override
 
virtual bool hasSSpace (const std::string &path="") override
 
virtual void getSSpaceInto (SSpace &, const std::string &path="") override
 
virtual void clear () override
 
virtual SimulacrumLibrary::str_enc stringEncoding () override
 
virtual void setStringEncoding (SimulacrumLibrary::str_enc) override
 
- Public Member Functions inherited from Simulacrum::SResource
virtual void changeLocation (const std::string &)
 
virtual void loadMissingData ()
 
virtual void putSSpaceInto (SSpace &, const std::string &path="")
 
virtual const std::string getLocationPathID (const std::string &path="")
 
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 userResourcesPath ()
 
- 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="")
 

Protected Attributes

SResourceSLuaPrivates * SLuaPrivateData
 

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

◆ SResourceSLua()

SResourceSLua::SResourceSLua ( const std::string &  srcode)

◆ ~SResourceSLua()

SResourceSLua::~SResourceSLua ( )
virtual

Member Function Documentation

◆ clear()

void SResourceSLua::clear ( )
overridevirtual

Implements Simulacrum::SResource.

◆ getInfo()

std::string SResourceSLua::getInfo ( const std::string &  path = "")
overridevirtual

Implements Simulacrum::SResource.

◆ getLocation()

const std::string & SResourceSLua::getLocation ( ) const
overridevirtual

Implements Simulacrum::SResource.

◆ getRoot()

SAbsTreeNode & SResourceSLua::getRoot ( )
overridevirtual

Implements Simulacrum::SResource.

◆ getSSpaceInto()

void SResourceSLua::getSSpaceInto ( SSpace target,
const std::string &  path = "" 
)
overridevirtual

Reimplemented from Simulacrum::SResource.

◆ hasArchive()

bool SResourceSLua::hasArchive ( )
overridevirtual

Implements Simulacrum::SResource.

◆ hasSSpace()

bool SResourceSLua::hasSSpace ( const std::string &  path = "")
overridevirtual

Implements Simulacrum::SResource.

◆ isValid()

bool SResourceSLua::isValid ( ) const
overridevirtual

Implements Simulacrum::SResource.

◆ load()

void SResourceSLua::load ( )
overridevirtual

Reimplemented from Simulacrum::SResource.

◆ refresh()

void SResourceSLua::refresh ( SConnectable::sdepth_t  deep = false)
overridevirtual

Implements Simulacrum::SResource.

◆ setLocation()

int SResourceSLua::setLocation ( const std::string &  newpath)
overridevirtual

Implements Simulacrum::SResource.

◆ setStringEncoding()

void SResourceSLua::setStringEncoding ( SimulacrumLibrary::str_enc  encoding)
overridevirtual

Reimplemented from Simulacrum::SResource.

◆ store()

void SResourceSLua::store ( )
overridevirtual

Implements Simulacrum::SResource.

◆ stringEncoding()

SimulacrumLibrary::str_enc SResourceSLua::stringEncoding ( )
overridevirtual

Reimplemented from Simulacrum::SResource.

◆ userResourcesPath()

std::string SResourceSLua::userResourcesPath ( )
static

Member Data Documentation

◆ SLuaPrivateData

SResourceSLuaPrivates* Simulacrum::SResourceSLua::SLuaPrivateData
protected

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