Package org.robwork.sdurw_core
Class RobWorkPtr
- java.lang.Object
-
- org.robwork.sdurw_core.RobWorkPtr
-
public class RobWorkPtr extends java.lang.Object
Ptr 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.RobWorkCPtr
cptr()
void
delete()
RobWork
deref()
The pointer stored in the object.boolean
equals(RobWork p)
void
finalizeC()
finalizes the robwork instancevoid
finish()
finalize the robwork instancestatic long
getCPtr(RobWorkPtr obj)
RobWork
getDeref()
Member access operator.SWIGTYPE_p_rw__core__PtrT_rw__core__ExtensionRegistry_t
getExtensionRegistry()
get the extension registryRobWorkPtr
getInstance()
returns an RobWork instanceLog
getLog()
Returns the common logLogPtr
getLogPtr()
get a pointer to the common logPropertyMap
getSettings()
get settings of RobWork instancejava.lang.String
getVersion()
Returns the version of RobWorkvoid
init()
initialize robworkvoid
init(int argc, SWIGTYPE_p_p_char argv)
initialize robwork - including possible command line optionsvoid
initialize()
initialize robwork
Reads in its configuration file which specify plugins and so on.void
initialize(vector_s plugins)
initialize robwork
Reads in its configuration file which specify plugins and so on.boolean
isInitialized()
Check if RobWork has been initialized.boolean
isNull()
checks if the pointer is nullboolean
isShared()
check if this Ptr has shared ownership or none
ownershipvoid
setExtensionRegistry(SWIGTYPE_p_rw__core__PtrT_rw__core__ExtensionRegistry_t extreg)
set extension registry of this instance of robworkvoid
setInstance(RobWorkPtr rw)
sets the robwork instancevoid
setLog(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
-
-