Package org.robwork.sdurw_common
Class OutputArchive
- java.lang.Object
-
- org.robwork.sdurw_common.Archive
-
- org.robwork.sdurw_common.OutputArchive
-
public class OutputArchive extends Archive
serializable objects can be written to an output archive.
This class define an interface for serializing data.
-
-
Constructor Summary
Constructors Constructor Description OutputArchive(long cPtr, boolean cMemoryOwn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
static long
getCPtr(OutputArchive obj)
void
writeEnterScope(java.lang.String id)
create a serialized scope in which objects can be writtenvoid
writeEnterScope(java.lang.String id, java.lang.String idDefault)
create a serialized scope in which objects can be writtenvoid
writeLeaveScope(java.lang.String id)
leave the current scopevoid
writeLeaveScope(java.lang.String id, java.lang.String idDefault)
leave the current scope
-
-
-
Method Detail
-
getCPtr
public static long getCPtr(OutputArchive obj)
-
writeEnterScope
public void writeEnterScope(java.lang.String id, java.lang.String idDefault)
create a serialized scope in which objects can be written- Parameters:
id
- [in] id of the scopeidDefault
- [in] (optional) default id to use if id is an empty string.
-
writeEnterScope
public void writeEnterScope(java.lang.String id)
create a serialized scope in which objects can be written- Parameters:
id
- [in] id of the scope
-
writeLeaveScope
public void writeLeaveScope(java.lang.String id, java.lang.String idDefault)
leave the current scope- Parameters:
id
- [in] id of the scopeidDefault
- [in] (optional) default id to use if id is an empty string.
-
writeLeaveScope
public void writeLeaveScope(java.lang.String id)
leave the current scope- Parameters:
id
- [in] id of the scope
-
-