Convenience class for string variables that can be also be used if a shared memory segment is never attached.
More...
|
| SMV_StandaloneString (const char *varName, SharedMemoryVariableManager *mgr=&DEFAULT_sharedMemoryVariableManager) |
|
| SMV_StandaloneString (const char *varName, SharedMemoryVariableNode *parentNode) |
|
| 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...
|
|
virtual void | noteNowRegistered (SharedMemoryVariable_Record *newArea) override |
| 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...
|
|
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 () |
|
void | makeAliasFor (SharedMemoryVariable *v) |
|
template<size_t MAXLEN>
class SMV_StandaloneString< MAXLEN >
Convenience class for string variables that can be also be used if a shared memory segment is never attached.
- Parameters
-
MAXLEN | specifies the maximum length of the string. |
- Note
- This implementation is templated to eliminate the need for any heap access. Users should minimize the number of distinct sizes in play to prevent a possible explosion of implementation routines.