#include <xmog_peer.h>
Inheritance diagram for xmog_peer:

Static Public Member Functions | |
| static int | create (xmog_base *peer, const char *classNameUtf, xmog_localenv *env=NULL, xmog_flags=xmog_base::LOCAL) |
| Creates a new instance of a Java type that is supposedly implementing the com.codemesh.peer.PeerType interface. | |
| static int | get_binaryData (xmog_base *peer, jbyte **ppBytes, size_t *len, xmog_localenv *env=NULL) |
| Retrieves binary data from the instance. | |
| static int | get_bool (xmog_base *peer, const char *fieldNameUtf, bool *b, xmog_localenv *env=NULL) |
Reads a bool field from the instance. | |
| static int | get_boolean (xmog_base *peer, const char *fieldNameUtf, jboolean *b, xmog_localenv *env=NULL) |
Reads a jboolean field from the instance. | |
| static int | get_byte (xmog_base *peer, const char *fieldNameUtf, jbyte *b, xmog_localenv *env=NULL) |
Reads a byte field from the instance. | |
| static int | get_char (xmog_base *peer, const char *fieldNameUtf, jchar *ch, xmog_localenv *env=NULL) |
Reads a char field from the instance. | |
| static xmog_java_class * | get_class (const char *classNameUtf, xmog_localenv *env=NULL) |
| Returns a pointer to the class of the given name. | |
| static xmog_java_class * | get_class () |
| Returns a pointer to the xmog_java_class that represents the com.codemesh.peer.PeerType interface. | |
| static int | get_double (xmog_base *peer, const char *fieldNameUtf, jdouble *d, xmog_localenv *env=NULL) |
Reads a double field from the instance. | |
| static int | get_float (xmog_base *peer, const char *fieldNameUtf, jfloat *f, xmog_localenv *env=NULL) |
Reads a float field from the instance. | |
| static int | get_int (xmog_base *peer, const char *fieldNameUtf, jint *i, xmog_localenv *env=NULL) |
Reads an int field from the instance. | |
| static int | get_long (xmog_base *peer, const char *fieldNameUtf, jlong *l, xmog_localenv *env=NULL) |
Reads a long field from the instance. | |
| static int | get_Object (xmog_base *peer, const char *fieldNameUtf, jobject *o, xmog_localenv *env=NULL) |
| Reads an Object field from the instance. | |
| static int | get_short (xmog_base *peer, const char *fieldNameUtf, jshort *s, xmog_localenv *env=NULL) |
Reads a short field from the instance. | |
| static int | get_String (xmog_base *peer, const char *fieldNameUtf, const char **str, size_t *len, xmog_localenv *env=NULL) |
| Reads a String field from the instance. | |
| static int | get_StringUtf8 (xmog_base *peer, const char *fieldNameUtf, const char **strUtf8, size_t *len, xmog_localenv *env=NULL) |
| Reads a String field from the instance. | |
| static int | get_typeInfo (xmog_base *peer, char *result, jint size, jint &required, xmog_localenv *env=NULL) |
| Gets the typeinfo from the peer instance. | |
| static int | register_unmarshaller (const char *javaClassNameUtf, const char *cppClassIdentifier, XMOG_PEER_UNMARSHAL_METHOD pUnmarshal) |
| Registers a peer unmarshaller for the tuple of <Java peer classname, C++ class identifier>. | |
| static int | set_binaryData (xmog_base *peer, jbyte *pBytes, size_t len, xmog_localenv *env=NULL) |
| Sets binary data into the instance. | |
| static int | set_bool (xmog_base *peer, const char *fieldNameUtf, bool b, xmog_localenv *env=NULL) |
Sets a bool field into the instance. | |
| static int | set_boolean (xmog_base *peer, const char *fieldNameUtf, jboolean b, xmog_localenv *env=NULL) |
Sets a boolean field into the instance. | |
| static int | set_byte (xmog_base *peer, const char *fieldNameUtf, jbyte b, xmog_localenv *env=NULL) |
Sets a byte field into the instance. | |
| static int | set_char (xmog_base *peer, const char *fieldNameUtf, jchar c, xmog_localenv *env=NULL) |
Sets a char field into the instance. | |
| static int | set_double (xmog_base *peer, const char *fieldNameUtf, jdouble d, xmog_localenv *env=NULL) |
Sets a double field into the instance. | |
| static int | set_float (xmog_base *peer, const char *fieldNameUtf, jfloat f, xmog_localenv *env=NULL) |
Sets a float field into the instance. | |
| static int | set_int (xmog_base *peer, const char *fieldNameUtf, jint i, xmog_localenv *env=NULL) |
Sets a int field into the instance. | |
| static int | set_long (xmog_base *peer, const char *fieldNameUtf, jlong l, xmog_localenv *env=NULL) |
Sets a long field into the instance. | |
| static int | set_Object (xmog_base *peer, const char *fieldNameUtf, const wchar_t *str, xmog_localenv *env=NULL) |
| Sets a String field into the instance. | |
| static int | set_Object (xmog_base *peer, const char *fieldNameUtf, const char *str, xmog_localenv *env=NULL) |
| Sets a String field into the instance. | |
| static int | set_Object (xmog_base *peer, const char *fieldNameUtf, jobject o, xmog_localenv *env=NULL) |
| Sets an Object field into the instance. | |
| static int | set_short (xmog_base *peer, const char *fieldNameUtf, jshort s, xmog_localenv *env=NULL) |
Sets a short field into the instance. | |
| static int | set_typeInfo (xmog_base *peer, xmog_base *typeInfo, xmog_localenv *env=NULL) |
| Sets the typeinfo for the C++ instance that is storing data into this instance. | |
| static int | set_typeInfo (xmog_base *peer, const wchar_t *typeInfo, xmog_localenv *env=NULL) |
| Sets the typeinfo for the C++ instance that is storing data into this instance. | |
| static int | set_typeInfo (xmog_base *peer, const char *typeInfoUtf, xmog_localenv *env=NULL) |
| Sets the typeinfo for the C++ instance that is storing data into this instance. | |
| static char * | to_string (xmog_base *peer, xmog_localenv *env=NULL) |
| Returns a string containing the instance's state in text representation. | |
This type is useful to access arbitrary custom peer types if they implement the com.codemesh.peer.PeerType interface.
|
||||||||||||||||||||
|
Creates a new instance of a Java type that is supposedly implementing the com.codemesh.peer.PeerType interface.
|
|
||||||||||||||||||||
|
Retrieves binary data from the instance.
|
|
||||||||||||||||||||
|
Reads a
|
|
||||||||||||||||||||
|
Reads a
|
|
||||||||||||||||||||
|
Reads a
|
|
||||||||||||||||||||
|
Reads a
|
|
||||||||||||
|
Returns a pointer to the class of the given name. The owner is responsible for deleting the returned instance.
|
|
|
Returns a pointer to the xmog_java_class that represents the com.codemesh.peer.PeerType interface. The owner should not delete the returned instance; it is owned by the xmog_peer type. Reimplemented in xmog_serializable. |
|
||||||||||||||||||||
|
Reads a
|
|
||||||||||||||||||||
|
Reads a
|
|
||||||||||||||||||||
|
Reads an
|
|
||||||||||||||||||||
|
Reads a
|
|
||||||||||||||||||||
|
Reads an Object field from the instance.
|
|
||||||||||||||||||||
|
Reads a
|
|
||||||||||||||||||||||||
|
Reads a String field from the instance.
|
|
||||||||||||||||||||||||
|
Reads a String field from the instance.
|
|
||||||||||||||||||||||||
|
Gets the typeinfo from the peer instance.
|
|
||||||||||||||||
|
Registers a peer unmarshaller for the tuple of <Java peer classname, C++ class identifier>. One unmarshaller may be used for more than one C++ class, so the runtime will parse the cppClassIdentifier as a comma separated list of identifiers, allowing the registration of more than one C++ type for one Java peer type.
|
|
||||||||||||||||||||
|
Sets binary data into the instance.
|
|
||||||||||||||||||||
|
Sets a
|
|
||||||||||||||||||||
|
Sets a
|
|
||||||||||||||||||||
|
Sets a
|
|
||||||||||||||||||||
|
Sets a
|
|
||||||||||||||||||||
|
Sets a
|
|
||||||||||||||||||||
|
Sets a
|
|
||||||||||||||||||||
|
Sets a
|
|
||||||||||||||||||||
|
Sets a
|
|
||||||||||||||||||||
|
Sets a String field into the instance.
|
|
||||||||||||||||||||
|
Sets a String field into the instance.
|
|
||||||||||||||||||||
|
Sets an Object field into the instance.
|
|
||||||||||||||||||||
|
Sets a
|
|
||||||||||||||||
|
Sets the typeinfo for the C++ instance that is storing data into this instance. This is the best variant of the method in terms of performance because no temporary Java string needs to be created.
|
|
||||||||||||||||
|
Sets the typeinfo for the C++ instance that is storing data into this instance.
|
|
||||||||||||||||
|
Sets the typeinfo for the C++ instance that is storing data into this instance.
|
|
||||||||||||
|
Returns a string containing the instance's state in text representation. The returned string is dynamically allocated and needs to be freed by the caller.
Reimplemented in xmog_serializable. |
1.4.1