SophiaFramework UNIVERSE 5.3 |
#include <SFBLocalStorage.h.hpp>
class SFBLocalStorage : public SFBQuery;
SFMTYPEDEFWRAPPER(SFBLocalStorage)
BREW 2.0 | BREW 2.1 | BREW 3.1 | BREW 4.0 |
---|---|---|---|
X | X | O | O |
Public Functions | |
---|---|
SFCError |
Add(
UInt32 key
, LSEntry * entry
) Store a data pointer for the specified key value.
|
SFCError |
Get(
UInt32 key
, LSEntry ** entry
) Find and return the last added data pointer associated to the key that has not been removed.
|
Void |
Lock( Void ) Lock the object for an exclusive access by current thread. Caller might block in this request until lock is available.
|
static SFBLocalStorageSmp |
NewInstance(
SFCErrorPtr exception = null
) Create a new SFBLocalStorage instance.
|
static SFBLocalStorageSmp |
NewInstance(
AEECLSID id
, SFCErrorPtr exception = null
) Create a new SFBLocalStorage instance.
|
Void |
Remove(
LSEntry * entry
) Remove a data pointer
|
Void |
Unlock( Void ) Unlock the object.
|
SFCError |
QueryInterface(
AEECLSID clsid
, VoidHandle handle
)
(inherits from SFBQuery)
Ask an object for another API contract from the object in question.
|
SFCError |
QueryInterface(
AEECLSID clsid
, SFBBaseSmpPtr handle
)
(inherits from SFBQuery)
Ask an object for another API contract from the object in question.
|
SFBBaseSmp |
QueryInterface(
AEECLSID clsid
)
(inherits from SFBQuery)
Ask an object for another API contract from the object in question.
|
Void |
Self(
AEECLSID clsidReq
, SFBQuerySmpPtr clone
, AEECLSID clsidImp
)
(inherits from SFBQuery)
Helper macro for those implementing an object with a single interface.
|
SFBQuerySmp |
Self(
AEECLSID clsidReq
, AEECLSID clsidImp
)
(inherits from SFBQuery)
Helper macro for those implementing an object with a single interface.
|
Protected Functions | |
---|---|
static SFBBaseSmp |
FactoryByCreate(
AEECLSID id
, SFCErrorPtr exception = null
)
(inherits from SFBBase)
Create the instance for the specified ClassID's interface.
|
static SFBBaseSmp |
FactoryByQuery(
SFBQuerySmpConstRef query
, AEECLSID id
, SFCErrorPtr exception = null
)
(inherits from SFBBase)
Create the instance for the specified ClassID's interface using the SFBQuery instance.
|
[ public ] SFCError Add( UInt32 key // key value LSEntry * entry // pointer to local storage entry );
[ public ] SFCError Get( UInt32 key // a key against which the entry was previously added LSEntry ** entry // pointer to be filled with the pointer to entry );
[ public ] Void Lock(Void);
[ public, static ] SFBLocalStorageSmp NewInstance( SFCErrorPtr exception = null // Error );
[ public, static ] SFBLocalStorageSmp NewInstance( AEECLSID id // Class ID SFCErrorPtr exception = null // Error );
[ public ] Void Unlock(Void);
Copyright(c) 2002 - 2024 Sophia Cradle Incorporated All Rights Reserved. |