yast2-core
|
A blackbox wrapper for handling external values in ycp. The payload is handled as a blackbox and is not owned by the wrapper. More...
#include <YCPExternal.h>
Public Member Functions | |
void * | payload () const |
string | magic () const |
string | toString () const |
std::ostream & | toStream (std::ostream &str) const |
std::ostream & | toXml (std::ostream &str, int indent) const |
YCPValueType | valuetype () const |
![]() | |
const char * | valuetype_str () const |
bool | isVoid () const |
bool | isBoolean () const |
bool | isInteger () const |
bool | isFloat () const |
bool | isString () const |
bool | isByteblock () const |
bool | isPath () const |
bool | isSymbol () const |
bool | isList () const |
bool | isTerm () const |
bool | isMap () const |
bool | isCode () const |
bool | isBreak () const |
bool | isReturn () const |
bool | isEntry () const |
bool | isReference () const |
bool | isExternal () const |
YCPVoid | asVoid () const |
YCPBoolean | asBoolean () const |
YCPInteger | asInteger () const |
YCPFloat | asFloat () const |
YCPString | asString () const |
YCPByteblock | asByteblock () const |
YCPPath | asPath () const |
YCPSymbol | asSymbol () const |
YCPList | asList () const |
YCPTerm | asTerm () const |
YCPMap | asMap () const |
YCPCode | asCode () const |
YCPEntry | asEntry () const |
YCPReference | asReference () const |
YCPExternal | asExternal () const |
bool | equal (const YCPValue &) const |
YCPOrder | compare (const YCPValue &v, bool rl=false) const |
![]() | |
YCPValue | asValue () const |
virtual const YCPElementRep * | shallowCopy () const |
Protected Member Functions | |
YCPExternalRep (void *payload, string magic, void(*destructor)(void *, string)=0) | |
~YCPExternalRep () | |
![]() | |
YCPElementRep () | |
virtual | ~YCPElementRep () |
Private Attributes | |
void * | m_payload |
string | m_magic |
void(* | m_destructor )(void *, string) |
Friends | |
class | YCPExternal |
A blackbox wrapper for handling external values in ycp. The payload is handled as a blackbox and is not owned by the wrapper.
|
protected |
Creates a new blackbox
payload | the data stored |
magic | the magic identification for external entity to identify its payload |
|
protected |
Cleans up
References m_destructor, m_magic, and m_payload.
string YCPExternalRep::magic | ( | ) | const |
References m_magic.
void * YCPExternalRep::payload | ( | ) | const |
References m_payload.
|
virtual |
Output value as bytecode to stream Generates an error, because it's not possible to store the data in persistent stream.
Implements YCPElementRep.
|
virtual |
|
virtual |
Implements YCPValueRep.
|
virtual |
|
friend |
|
private |
Referenced by ~YCPExternalRep().
|
private |
Referenced by magic(), toString(), and ~YCPExternalRep().
|
private |
Referenced by payload(), and ~YCPExternalRep().