Package org.robwork.sdurw_core
Class RobWorkPtr
- java.lang.Object
-
- org.robwork.sdurw_core.RobWorkPtr
-
public class RobWorkPtr extends java.lang.ObjectPtr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description RobWorkPtr()Default constructor yielding a NULL-pointer.RobWorkPtr(long cPtr, boolean cMemoryOwn)RobWorkPtr(RobWork ptr)Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RobWork__ref__()Dereferencing operator.RobWorkCPtrcptr()voiddelete()RobWorkderef()The pointer stored in the object.booleanequals(RobWork p)voidfinalizeC()finalizes the robwork instancevoidfinish()finalize the robwork instancestatic longgetCPtr(RobWorkPtr obj)RobWorkgetDeref()Member access operator.SWIGTYPE_p_rw__core__PtrT_rw__core__ExtensionRegistry_tgetExtensionRegistry()get the extension registryRobWorkPtrgetInstance()returns an RobWork instanceLoggetLog()Returns the common logLogPtrgetLogPtr()get a pointer to the common logPropertyMapgetSettings()get settings of RobWork instancejava.lang.StringgetVersion()Returns the version of RobWorkvoidinit()initialize robworkvoidinit(int argc, SWIGTYPE_p_p_char argv)initialize robwork - including possible command line optionsvoidinitialize()initialize robwork
Reads in its configuration file which specify plugins and so on.voidinitialize(vector_s plugins)initialize robwork
Reads in its configuration file which specify plugins and so on.booleanisInitialized()Check if RobWork has been initialized.booleanisNull()checks if the pointer is nullbooleanisShared()check if this Ptr has shared ownership or none
ownershipvoidsetExtensionRegistry(SWIGTYPE_p_rw__core__PtrT_rw__core__ExtensionRegistry_t extreg)set extension registry of this instance of robworkvoidsetInstance(RobWorkPtr rw)sets the robwork instancevoidsetLog(LogPtr log)set logger for this instance of RobWork
-
-
-
Constructor Detail
-
RobWorkPtr
public RobWorkPtr(long cPtr, boolean cMemoryOwn)
-
RobWorkPtr
public RobWorkPtr()
Default constructor yielding a NULL-pointer.
-
RobWorkPtr
public RobWorkPtr(RobWork ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(RobWorkPtr obj)
-
delete
public void delete()
-
deref
public RobWork deref()
The pointer stored in the object.
-
__ref__
public RobWork __ref__()
Dereferencing operator.
-
getDeref
public RobWork getDeref()
Member access operator.
-
equals
public boolean equals(RobWork p)
-
isShared
public boolean isShared()
check if this Ptr has shared ownership or none
ownership- Returns:
- true if Ptr has shared ownership, false if it has no ownership.
-
isNull
public boolean isNull()
checks if the pointer is null- Returns:
- Returns true if the pointer is null
-
cptr
public RobWorkCPtr cptr()
-
getLog
public Log getLog()
Returns the common log
-
getLogPtr
public LogPtr getLogPtr()
get a pointer to the common log- Returns:
-
setLog
public void setLog(LogPtr log)
set logger for this instance of RobWork- Parameters:
log-
-
getVersion
public java.lang.String getVersion()
Returns the version of RobWork
-
initialize
public void initialize(vector_s plugins)
initialize robwork
Reads in its configuration file which specify plugins and so on.
-
initialize
public void initialize()
initialize robwork
Reads in its configuration file which specify plugins and so on.
-
finalizeC
public void finalizeC()
finalizes the robwork instance
-
getSettings
public PropertyMap getSettings()
get settings of RobWork instance- Returns:
-
getExtensionRegistry
public SWIGTYPE_p_rw__core__PtrT_rw__core__ExtensionRegistry_t getExtensionRegistry()
get the extension registry- Returns:
-
setExtensionRegistry
public void setExtensionRegistry(SWIGTYPE_p_rw__core__PtrT_rw__core__ExtensionRegistry_t extreg)
set extension registry of this instance of robwork
-
isInitialized
public boolean isInitialized()
Check if RobWork has been initialized.- Returns:
- true if initialized, false otherwise.
-
getInstance
public RobWorkPtr getInstance()
returns an RobWork instance
-
init
public void init()
initialize robwork
-
init
public void init(int argc, SWIGTYPE_p_p_char argv)initialize robwork - including possible command line options
-
finish
public void finish()
finalize the robwork instance
-
setInstance
public void setInstance(RobWorkPtr rw)
sets the robwork instance- Parameters:
rw- [in] the new instance
-
-