FARGOS/VISTA Object Management Environment Core
..
|
Convenience class for string variables. More...
#include <shared_variable.hpp>
Public Member Functions | |
SMV_String (const char *varName, size_t reservedLength, SharedMemoryVariableManager *mgr=&DEFAULT_sharedMemoryVariableManager) NONNULL_CLASS_PARAMETERS(2) | |
SMV_String (const char *varName, size_t reservedLength, SharedMemoryVariableNode *parentNode) NONNULL_CLASS_PARAMETERS(2) | |
operator const char * () const OME_ALWAYS_INLINE | |
Cast operator for a shared memory string variable. More... | |
char * | operator= (const char *val) OME_ALWAYS_INLINE |
Assignment operator into a shared memory string variable. More... | |
![]() | |
SharedMemoryVariableNode * | getParentNode () const |
SharedMemoryVariableManager * | getVariableManager () const |
unsigned int | getType () const OME_ALWAYS_INLINE |
Return type of variable, see SharedMemoryVariableType. More... | |
unsigned int | getMinLength () const OME_ALWAYS_INLINE |
Return minimum number of bytes required for variable record. More... | |
const char * | getName (uint_fast32_t *retNameLen=nullptr) const OME_ALWAYS_INLINE |
Get variable name. More... | |
int | setName (const char *newName) |
Set new variable name. More... | |
uint_fast32_t | getFullName (char *bfr, uint_fast32_t bfrLen) const |
Get full path name of variable. More... | |
SharedMemoryVariable (class SharedMemoryVariableManager *mgr, const char *varName, int varType, size_t length) | |
Construct an shared memory variable and attach to the indicated manager for the collection of variables. More... | |
SharedMemoryVariable (class SharedMemoryVariableNode *parentNode, const char *varName, int varType, size_t length) | |
virtual | ~SharedMemoryVariable () |
virtual void | noteNowRegistered (SharedMemoryVariable_Record *newArea) |
Extension mechanism to allow derived classes to be informed when they are about to be assigned storage; called at most once per lifetime of object. More... | |
void | makeAliasFor (SharedMemoryVariable *v) |
Additional Inherited Members | |
![]() | |
enum | SharedMemoryVariableType { SMV_TYPE_NONE =0, SMV_TYPE_UNSIGNED =1, SMV_TYPE_LARGE =2, SMV_TYPE_INT32 =4, SMV_TYPE_UINT32 =SMV_TYPE_INT32|SMV_TYPE_UNSIGNED, SMV_TYPE_INT64 =SMV_TYPE_INT32|SMV_TYPE_LARGE, SMV_TYPE_UINT64 =SMV_TYPE_INT64|SMV_TYPE_UNSIGNED, SMV_TYPE_FLOAT =8, SMV_TYPE_DOUBLE =SMV_TYPE_FLOAT|SMV_TYPE_LARGE, SMV_TYPE_FIXED =SMV_TYPE_FLOAT|SMV_TYPE_UNSIGNED, SMV_TYPE_TINY_STRING =16, SMV_TYPE_TINY_BINARY_STRING =SMV_TYPE_TINY_STRING|SMV_TYPE_UNSIGNED, SMV_TYPE_STRING =SMV_TYPE_TINY_STRING|SMV_TYPE_LARGE, SMV_TYPE_BINARY_STRING =SMV_TYPE_STRING|SMV_TYPE_UNSIGNED, SMV_TYPE_NAME_NODE =32 } |
enum | { SMV_DISPLAY_NAME =1, SMV_DISPLAY_VALUE =2, SMV_DISPLAY_TYPE =4, SMV_DISPLAY_EQUALS =8 } |
![]() | |
static const char * | typeName (unsigned int t) OME_CONST_FUNCTION |
Return type as text string. More... | |
![]() | |
SharedMemoryVariable_Record * | dataPointer |
class SharedMemoryVariableNode * | parentNodeRecord |
class SharedMemoryVariableManager * | variableManager |
const char * | variableName |
uint32_t | minLength |
unsigned char | dataType |
unsigned char | registered |
unsigned char | _pad1 [2] |
![]() | |
static SharedMemoryVariable_Record | unallocated_data |
Convenience class for string variables.
|
inline |
|
inline |
|
inline |
Cast operator for a shared memory string variable.
References SharedMemoryVariable::dataPointer, SharedMemoryVariable::SharedMemoryVariable_Record::varName, and SharedMemoryVariable::SharedMemoryVariable_Record::varNameLength.
|
inline |
Assignment operator into a shared memory string variable.
References SharedMemoryVariable::SharedMemoryVariable_Record::allocatedLength, SharedMemoryVariable::dataPointer, OME_EXPECT_FALSE, SharedMemoryVariable::SharedMemoryVariable_Record::usedLength, SharedMemoryVariable::SharedMemoryVariable_Record::varName, and SharedMemoryVariable::SharedMemoryVariable_Record::varNameLength.
![]() | Generated: Fri Jul 31 2020 18:19:16
Support Information |