|
LRAUV
revA
|
Code unit that represents a unique name for a DataElement. More...
#include <ElementURI.h>


Public Types | |
| enum | ElementType { BASE_ELEMENT = 0, CONFIG_ELEMENT = 1, DATA_ELEMENT = 2, SETTING_ELEMENT = 3, UNIVERSAL_ELEMENT = 4, BLOB_VALUE_FLAG = 0x10 } |
Public Member Functions | |
| ElementURI (const char *component, const char *elementName, ElementType=BASE_ELEMENT, const Unit &unit=UNSPECIFIED_UNIT, BinaryDataType binaryType=NO_TYPE, BlobType blobType=NOT_BLOB, unsigned short dimension1=0, unsigned short dimension2=0, unsigned short dimension3=0) | |
| ElementURI (const Str &component, const char *elementName, ElementType=BASE_ELEMENT, const Unit &unit=UNSPECIFIED_UNIT, BinaryDataType binaryType=NO_TYPE, BlobType blobType=NOT_BLOB, unsigned short dimension1=0, unsigned short dimension2=0, unsigned short dimension3=0) | |
| ElementURI (const Str &component, const char *elementName, const char *description, ElementType=BASE_ELEMENT, const Unit &unit=UNSPECIFIED_UNIT, BinaryDataType binaryType=NO_TYPE, BlobType blobType=NOT_BLOB, unsigned short dimension1=0, unsigned short dimension2=0, unsigned short dimension3=0) | |
| ElementURI (const Str &component, const Str &elementName, ElementType=BASE_ELEMENT, const Unit &unit=UNSPECIFIED_UNIT, BinaryDataType binaryType=NO_TYPE, BlobType blobType=NOT_BLOB, unsigned short dimension1=0, unsigned short dimension2=0, unsigned short dimension3=0) | |
| ElementURI (const ElementURI &src) | |
| virtual | ~ElementURI () |
| Destructor. More... | |
| operator const Str & (void) const | |
| unsigned short | getCode () const |
| void | setCode (unsigned short code) |
| virtual bool | isUniversal () const |
| const Unit & | getUnit () const |
| BinaryDataType | getBinaryType () const |
| ElementType | getElementType () const |
| unsigned int | write (OutStream &outStream) |
| const Str | buildURI (const char *component, const char *elementName) |
| const Str | buildURI (const Str &component, const char *elementName) |
| const Str | buildURI (const Str &component, const Str &elementName) |
| BlobType | getBlobType () const |
| int | getDimensions () const |
| const unsigned short | getDimension1 () const |
| const unsigned short | getDimension2 () const |
| const unsigned short | getDimension3 () const |
Public Member Functions inherited from Str | |
| Str (const char *str=NULL, size_t length=NO_POS) | |
| char* constructor Unit tests in Str_Test.testConstructorCharStar More... | |
| Str (const Str &str, const size_t offset=0, size_t count=NO_POS) | |
| copy constructor Unit tests in Str_Test.testCopyConstructor More... | |
| Str (const bool var) | |
| bool constructor Unit tests in Str_Test.testBoolConstructor More... | |
| Str (const double var, unsigned int precision=6) | |
| double constructor Unit tests in Str_Test.testDoubleConstructor More... | |
| Str (const int var, unsigned int radix=10, unsigned int radixOffset=0) | |
| int constructor Unit tests in Str_Test.testIntConstructor More... | |
| Str (const size_t var, unsigned int radix=16) | |
| size_t constructor Unit tests in Str_Test.testUnsignedIntConstructor More... | |
| virtual | ~Str () |
| destructor More... | |
| Str & | set (const char *str=NULL, size_t length=NO_POS) |
| Str & | operator= (const char *str) |
| Str & | operator= (const Str &str) |
| Str & | operator= (const double var) |
| Str | substr (const size_t offset, size_t count=NO_POS) const |
| char | operator[] (const size_t index) const |
| Str & | operator+= (const bool str) |
| Str & | operator+= (const unsigned char str) |
| Str & | operator+= (const double str) |
| Str & | operator+= (const int str) |
| Str & | operator+= (const size_t str) |
| Str & | operator+= (const char *str) |
| Str & | operator+= (const Str &str) |
| Str & | append (const Str &str) |
| Str & | append (const char *str, size_t length) |
| Str & | pushBack (const unsigned char str) |
| Str & | operator<< (const bool str) |
| Str & | operator<< (const unsigned char str) |
| Str & | operator<< (const double str) |
| Str & | operator<< (const int str) |
| Str & | operator<< (const size_t str) |
| Str & | operator<< (const char *str) |
| Str & | operator<< (const Str &str) |
| bool | operator!= (const Str &str) const |
| bool | operator!= (const char *str) const |
| int | compare (const Str &str) const |
| int | compare (const char *str) const |
| bool | operator== (const Str &str) const |
| bool | operator== (const char *str) const |
| bool | operator< (const Str &str) const |
| const char * | cStr () const |
| const char * | data () const |
| size_t | length () const |
| size_t | size () const |
| size_t | findLastOf (const unsigned char str) const |
| returns the position of the specified character in the string, looking from the end of the string towards the beginning. More... | |
| size_t | findLastOf (const char *str) const |
| returns the position of the specified character string in the string, looking from the end of the string towards the beginning. More... | |
| size_t | find (const unsigned char str, size_t offset=0) const |
| size_t | find (const char *str, size_t offset=0) const |
| size_t | find (const Str &str, size_t offset=0) const |
| bool | startsWith (const char *str, size_t length=NO_POS) const |
| bool | startsWith (const Str &str) const |
| bool | endsWith (const Str &str) const |
| bool | setChar (size_t index, const unsigned char theChar) |
| void | replaceChar (const char replace, const char replaceWith) |
| Str * | split (int &num, const char *splitSpec, size_t length=NO_POS) const |
| Str * | split (int &num, const Str str) const |
| Str | asHex () const |
| Return a new Str, with a hex representation of each character of this string. More... | |
Static Public Member Functions | |
| static ElementURI * | FindURI (const Str &str) |
| static ElementURI * | FindURI (const char *str) |
| static ElementURI * | Read (InStream &inStream) |
| static ElementURI | Create (const Str &component, const Str &elementName) |
Static Public Member Functions inherited from Str | |
| static size_t | FindLastOf (const char *str, const unsigned char theChar, size_t length=NO_POS) |
| static size_t | Find (const char *str, const unsigned char theChar, size_t length=NO_POS) |
| static unsigned int | IntToAscii (int value, char *str, unsigned int base, unsigned int bufSize, unsigned int baseOffset=0) |
| convert an integer to a string, returns the length of the string Unit tests in Str_Test.testIntToAscii More... | |
Static Public Attributes | |
| static const unsigned short | NUM_CODES = 0x3FFF |
| static const unsigned short | NO_CODE = 0x3FFF |
| static const unsigned short | SELF_CODE = 0xFFFF |
| static const Unit | UNSPECIFIED_UNIT |
Static Public Attributes inherited from Str | |
| static const size_t | NO_POS |
| static constants More... | |
| static const size_t | MAX_LEN |
| static const Str | EMPTY_STR |
| static char | NoChars_ [1] = "" |
Protected Member Functions | |
| ElementURI (unsigned short code, const char *component, const char *elementName, ElementType=BASE_ELEMENT, const Unit &unit=UNSPECIFIED_UNIT, BinaryDataType binaryType=NO_TYPE, BlobType blobType=NOT_BLOB, unsigned short dimension1=0, unsigned short dimension2=0, unsigned short dimension3=0) | |
Protected Member Functions inherited from Str | |
| virtual void | intoString (const double var, unsigned int precision=10) |
| virtual void | intoString (int var, unsigned int radix, unsigned int radixOffset=0) |
Protected Attributes | |
| ElementType | elementType_ |
| const Unit & | unit_ |
| BinaryDataType | binaryType_ |
| unsigned short | code_ |
| BlobType | blobType_ |
| const unsigned short | dimension1_ |
| const unsigned short | dimension2_ |
| const unsigned short | dimension3_ |
Protected Attributes inherited from Str | |
| size_t | length_ |
| char * | chars_ |
Friends | |
| class | Slate |
Code unit that represents a unique name for a DataElement.
Typically combines the name of the element owner with the name of the "quantity" represented by the DataElement.
| ElementURI::ElementURI | ( | const char * | component, |
| const char * | elementName, | ||
| ElementType | elementType = BASE_ELEMENT, |
||
| const Unit & | unit = UNSPECIFIED_UNIT, |
||
| BinaryDataType | binaryType = NO_TYPE, |
||
| BlobType | blobType = NOT_BLOB, |
||
| unsigned short | dimension1 = 0, |
||
| unsigned short | dimension2 = 0, |
||
| unsigned short | dimension3 = 0 |
||
| ) |
| ElementURI::ElementURI | ( | const Str & | component, |
| const char * | elementName, | ||
| ElementType | elementType = BASE_ELEMENT, |
||
| const Unit & | unit = UNSPECIFIED_UNIT, |
||
| BinaryDataType | binaryType = NO_TYPE, |
||
| BlobType | blobType = NOT_BLOB, |
||
| unsigned short | dimension1 = 0, |
||
| unsigned short | dimension2 = 0, |
||
| unsigned short | dimension3 = 0 |
||
| ) |
| ElementURI::ElementURI | ( | const Str & | component, |
| const char * | elementName, | ||
| const char * | description, | ||
| ElementType | elementType = BASE_ELEMENT, |
||
| const Unit & | unit = UNSPECIFIED_UNIT, |
||
| BinaryDataType | binaryType = NO_TYPE, |
||
| BlobType | blobType = NOT_BLOB, |
||
| unsigned short | dimension1 = 0, |
||
| unsigned short | dimension2 = 0, |
||
| unsigned short | dimension3 = 0 |
||
| ) |
| ElementURI::ElementURI | ( | const Str & | component, |
| const Str & | elementName, | ||
| ElementType | elementType = BASE_ELEMENT, |
||
| const Unit & | unit = UNSPECIFIED_UNIT, |
||
| BinaryDataType | binaryType = NO_TYPE, |
||
| BlobType | blobType = NOT_BLOB, |
||
| unsigned short | dimension1 = 0, |
||
| unsigned short | dimension2 = 0, |
||
| unsigned short | dimension3 = 0 |
||
| ) |
| ElementURI::ElementURI | ( | const ElementURI & | src | ) |
|
inlinevirtual |
Destructor.
|
protected |
| const Str ElementURI::buildURI | ( | const char * | component, |
| const char * | elementName | ||
| ) |
References Str::Str().
References Str::length().
References Str::length().
|
static |
References ElementURI().
Referenced by Aggregate::defineArg(), Slate::NewInputReader(), Slate::NewReader(), and Slate::NewWriter().
|
static |
References Slate::FindElementURI().
Referenced by UniversalURI::FindURI(), PeakDetectHorizontal::initialize(), PeakDetectVsDepth::initialize(), and ValueDetect::initialize().
|
static |
References Slate::FindElementURI(), and Str::Str().
|
inline |
References binaryType_, Unit::getDefaultDataType(), NO_TYPE, and unit_.
Referenced by MissionItem::initializeFromScript(), Component::newBlobReader(), Component::newBlobWriter(), Component::newConfigReader(), Component::newDataReader(), Component::newDataReaderFromUniversal(), Component::newDataWriter(), Behavior::newSettingReader(), Component::newUniversalBlobReader(), Component::newUniversalBlobWriter(), Component::newUniversalReader(), and Component::newUniversalWriter().
|
inline |
|
inline |
References code_.
Referenced by DataNameRule::check(), Slate::CodifyElementURI(), CommandLine::commandFailVariable(), CommandLine::commandGet(), CommandLine::commandMaintainAdd(), CommandLine::commandMaintainInvalid(), CommandLine::commandMaintainRemove(), CommandLine::commandMaintainUnavailable(), CommandLine::commandReportAdd(), CommandLine::commandReportRemove(), CommandLine::commandShowBest(), CommandLine::commandShowDependencies(), DataAccess::DataAccess(), Aggregate::defineArg(), Slate::DeRegisterElementURI(), Slate::GetElementURICode(), MissionStateLogger::LogArgWrite(), Slate::NewDataElement(), MissionStateLogger::NewResume(), Config::ParseLine(), Slate::RegisterElementURI(), ElementURI_Test::testRead(), DirectoryEntry::toString(), Slate::WriteDirectory(), and Slate::WriteElementURIEntry().
|
inline |
References dimension1_.
Referenced by HDF5LogWriter::addVar(), NetCdfLogWriter::addVar(), Component::newBlobReaderFromUniversal(), Component::newUniversalBlobWriter(), AbstractBlobReader::read1DArray(), AbstractBlobReader::read2DArray(), AbstractBlobReader::read2DPtr(), AbstractBlobReader::read3DArray(), AbstractBlobReader::read3DPtr(), AbstractBlobWriter::write1DArray(), AbstractBlobWriter::write1DPtr(), AbstractBlobWriter::write2DArray(), AbstractBlobWriter::write2DPtr(), AbstractBlobWriter::write3DArray(), AbstractBlobWriter::write3DPtr(), JsonLogWriter::writeData(), and NetCdfWriter::writeVarRecord().
|
inline |
References dimension2_.
Referenced by HDF5LogWriter::addVar(), NetCdfLogWriter::addVar(), Component::newBlobReaderFromUniversal(), Component::newUniversalBlobWriter(), AbstractBlobReader::read2DArray(), AbstractBlobReader::read2DPtr(), AbstractBlobReader::read3DArray(), AbstractBlobReader::read3DPtr(), AbstractBlobWriter::write2DArray(), AbstractBlobWriter::write2DPtr(), AbstractBlobWriter::write3DArray(), AbstractBlobWriter::write3DPtr(), JsonLogWriter::writeData(), and NetCdfWriter::writeVarRecord().
|
inline |
References dimension3_.
Referenced by HDF5LogWriter::addVar(), NetCdfLogWriter::addVar(), Component::newBlobReaderFromUniversal(), Component::newUniversalBlobWriter(), AbstractBlobReader::read3DArray(), AbstractBlobReader::read3DPtr(), AbstractBlobWriter::write3DArray(), AbstractBlobWriter::write3DPtr(), JsonLogWriter::writeData(), and NetCdfWriter::writeVarRecord().
|
inline |
References blobType_, dimension1_, dimension2_, dimension3_, and NOT_BLOB.
Referenced by HDF5LogWriter::addVar(), JsonLogWriter::writeData(), and NetCdfWriter::writeVarRecord().
|
inline |
References elementType_.
Referenced by Unserialize::Run().
|
inline |
References unit_.
Referenced by Component::newBlobReader(), Component::newBlobReaderFromUniversal(), Component::newBlobWriter(), Component::newConfigReader(), Component::newDataReader(), Component::newDataReaderFromUniversal(), Component::newDataWriter(), Behavior::newSettingReader(), Component::newUniversalBlobReader(), Component::newUniversalBlobWriter(), Component::newUniversalReader(), Component::newUniversalWriter(), and ValueClause::ReadReader().
|
inlinevirtual |
|
inline |
|
static |
References BASE_ELEMENT, BLOB_VALUE_FLAG, InStream::bytesRead(), ElementURI(), NO_TYPE, NOT_BLOB, InStream::read(), InStream::readCharHex(), InStream::readShortHex(), InStream::readUCharHex(), InStream::readUntil(), InStream::readUShortHex(), and UNSPECIFIED_UNIT.
Referenced by DirectoryEntry::Read(), and ElementURI_Test::testRead().
|
inline |
References code_.
Referenced by Slate::CodifyElementURI(), Slate::RegisterElementURI(), Slate::Uninitialize(), and Slate::WriteDirectory().
| unsigned int ElementURI::write | ( | OutStream & | outStream | ) |
References BLOB_VALUE_FLAG, blobType_, OutStream::bytesWritten(), code_, Str::cStr(), dimension1_, dimension2_, dimension3_, elementType_, NOT_BLOB, OutStream::write(), OutStream::writeChar(), OutStream::writeCharHex(), OutStream::writeShortHex(), OutStream::writeUCharHex(), and OutStream::writeUShortHex().
Referenced by DirectoryEntry::write().
|
friend |
|
protected |
Referenced by getBinaryType().
|
protected |
Referenced by getBlobType(), getDimensions(), and write().
|
protected |
Referenced by getDimension1(), getDimensions(), and write().
|
protected |
Referenced by getDimension2(), getDimensions(), and write().
|
protected |
Referenced by getDimension3(), getDimensions(), and write().
|
protected |
Referenced by getElementType(), and write().
|
static |
Referenced by Maintainer::addMaintain(), Reporter::addReport(), Supervisor::addReport(), JsonLogWriter::addVar(), NetCdfTableLogWriter::addVar(), HDF5LogWriter::addVar(), NetCdfLogWriter::addVar(), Reporter::changeReport(), DataNameRule::check(), Slate::CodifyElementURI(), CommandLine::commandConfigSet(), CommandLine::commandFailVariable(), CommandLine::commandMaintainAdd(), CommandLine::commandMaintainInvalid(), CommandLine::commandMaintainRemove(), CommandLine::commandMaintainUnavailable(), CommandLine::commandReportAdd(), CommandLine::commandReportRemove(), CommandLine::commandSet(), CommandLine::commandShowBest(), Slate::DeRegisterElementURI(), Slate::GetElement(), Slate::GetElementURICode(), FilterLogWriter::initializeFilterLogWriter(), ReadDataComponent::initializeReaders(), TableLogWriter::initializeTableLogWriter(), Assign::Instance(), SendDataComponent::Instance(), SyslogComponent::Instance(), NetCdfTableLogWriter::netCdfInitialize(), NetCdfTableLogWriter::NetCdfTableLogWriter(), DataEntry::Read(), EventEntry::Read(), Slate::ReadOnce(), ValueClause::ReadStrValueUri(), Slate::RegisterElementURI(), Maintainer::removeAllMaintains(), Maintainer::removeMaintain(), Reporter::removeReport(), Supervisor::removeReport(), TableLogWriter::resetInputs(), FilterLogWriter::resetInputs(), Unserialize::Run(), LinearApproximationLogWriter::sendOutput(), Slate::Uninitialize(), MultiLogWriter::write(), TableLogWriter::write(), FilterLogWriter::write(), Slate::WriteDirectory(), JsonLogWriter::writeFooter(), NetCdfTableLogWriter::writeFooter(), NetCdfLogWriter::writeFooter(), HDF5LogWriter::writeFooter(), and Slate::WriteOnce().
|
static |
Referenced by TableLogWriter::resetInputs(), and FilterLogWriter::resetInputs().
|
static |
Referenced by DataAccess::DataAccess(), DataEntry::Read(), and TableLogWriter::write().
|
protected |
Referenced by getBinaryType(), and getUnit().