FARGOS/VISTA Object Management Environment Core
..
|
Storage layout for shared memory variable record within a memory mapped segment. More...
#include <shared_variable.hpp>
Public Member Functions | |
char * | formatAsText (char *bfr, uint_fast32_t bfrLen, uint_fast32_t displayMode, const char *pathPrefix=nullptr, bool isNative=true) const |
Format variable into text buffer. More... | |
int | getPathPrefix (char *bfr, uint_fast32_t bfrLen, unsigned char *base, bool isNative=true) const |
Get parent path name of variable. More... | |
Public Attributes | |
union { | |
uint64_t u64 | |
int64_t i64 | |
int32_t i32 | |
uint32_t u32 | |
float f | |
double d | |
char tinyString [8] | |
} | numericValue |
uint64_t | parentNodeOffset |
uint32_t | allocatedLength |
allocated length More... | |
uint32_t | usedLength |
used length, always <= allocated length More... | |
uint16_t | recordType |
type of record, see SharedMemoryVariableType More... | |
uint16_t | varNameLength |
strlen() + 1; includes null in count More... | |
char | varName [12+sizeof(SharedBufferAllocRecord)] |
variable name More... | |
Storage layout for shared memory variable record within a memory mapped segment.
Note: all data in this record must be able to be interpreted regardless of address space.
char * SharedMemoryVariable::SharedMemoryVariable_Record::formatAsText | ( | char * | bfr, |
uint_fast32_t | bfrLen, | ||
uint_fast32_t | displayMode, | ||
const char * | pathPrefix = nullptr , |
||
bool | isNative = true |
||
) | const |
Format variable into text buffer.
References d, f, GET16_NATIVE, GET32_NATIVE, GET64_NATIVE, numericValue, recordType, SharedMemoryVariable::SMV_DISPLAY_EQUALS, SharedMemoryVariable::SMV_DISPLAY_NAME, SharedMemoryVariable::SMV_DISPLAY_TYPE, SharedMemoryVariable::SMV_DISPLAY_VALUE, SharedMemoryVariable::SMV_TYPE_BINARY_STRING, SharedMemoryVariable::SMV_TYPE_DOUBLE, SharedMemoryVariable::SMV_TYPE_FLOAT, SharedMemoryVariable::SMV_TYPE_INT32, SharedMemoryVariable::SMV_TYPE_INT64, SharedMemoryVariable::SMV_TYPE_STRING, SharedMemoryVariable::SMV_TYPE_UINT32, SharedMemoryVariable::SMV_TYPE_UINT64, SharedMemoryVariable::typeName(), varName, and varNameLength.
int SharedMemoryVariable::SharedMemoryVariable_Record::getPathPrefix | ( | char * | bfr, |
uint_fast32_t | bfrLen, | ||
unsigned char * | base, | ||
bool | isNative = true |
||
) | const |
Get parent path name of variable.
References GET16_NATIVE, GET64_NATIVE, parentNodeOffset, varName, and varNameLength.
uint32_t SharedMemoryVariable::SharedMemoryVariable_Record::allocatedLength |
double SharedMemoryVariable::SharedMemoryVariable_Record::d |
Referenced by formatAsText().
float SharedMemoryVariable::SharedMemoryVariable_Record::f |
Referenced by formatAsText().
int32_t SharedMemoryVariable::SharedMemoryVariable_Record::i32 |
int64_t SharedMemoryVariable::SharedMemoryVariable_Record::i64 |
union { ... } SharedMemoryVariable::SharedMemoryVariable_Record::numericValue |
Referenced by formatAsText().
uint64_t SharedMemoryVariable::SharedMemoryVariable_Record::parentNodeOffset |
Referenced by SharedMemoryVariableManager::allocateVariable(), and getPathPrefix().
uint16_t SharedMemoryVariable::SharedMemoryVariable_Record::recordType |
type of record, see SharedMemoryVariableType
Referenced by SharedMemoryVariableManager::allocateVariable(), and formatAsText().
char SharedMemoryVariable::SharedMemoryVariable_Record::tinyString[8] |
uint32_t SharedMemoryVariable::SharedMemoryVariable_Record::u32 |
uint64_t SharedMemoryVariable::SharedMemoryVariable_Record::u64 |
uint32_t SharedMemoryVariable::SharedMemoryVariable_Record::usedLength |
used length, always <= allocated length
Referenced by SMV_StandaloneString< 128 >::noteNowRegistered(), SMV_String::operator=(), and SMV_StandaloneString< 128 >::operator=().
char SharedMemoryVariable::SharedMemoryVariable_Record::varName[12+sizeof(SharedBufferAllocRecord)] |
variable name
Referenced by SharedMemoryVariableManager::allocateVariable(), formatAsText(), SharedMemoryVariable::getName(), getPathPrefix(), SMV_StandaloneString< 128 >::noteNowRegistered(), SMV_String::operator const char *(), SMV_StandaloneString< 128 >::operator const char *(), SMV_String::operator=(), SMV_StandaloneString< 128 >::operator=(), SharedMemoryVariable::setName(), and SMV_StandaloneString< 128 >::SMV_StandaloneString().
uint16_t SharedMemoryVariable::SharedMemoryVariable_Record::varNameLength |
strlen() + 1; includes null in count
Referenced by SharedMemoryVariableManager::allocateVariable(), formatAsText(), SharedMemoryVariable::getName(), getPathPrefix(), SMV_StandaloneString< 128 >::noteNowRegistered(), SMV_String::operator const char *(), SMV_StandaloneString< 128 >::operator const char *(), SMV_String::operator=(), SMV_StandaloneString< 128 >::operator=(), SharedMemoryVariable::setName(), and SMV_StandaloneString< 128 >::SMV_StandaloneString().
![]() | Generated: Fri Jul 31 2020 18:19:16
Support Information |