|
LRAUV
revA
|
Code unit that represents the slate. More...
#include <Slate.h>

Classes | |
| class | StaticDestructor |
| Makes sure that static objects are deleted on shutdown. More... | |
Public Member Functions | |
| template<> | |
| bool | WriteOnce (const Str &uriPart, Component *owner, const Unit &unit, const float &writeThis) |
| template<> | |
| bool | WriteOnce (const Str &uriPart, Component *owner, const Unit &unit, const double &writeThis) |
| template<> | |
| bool | WriteOnce (const unsigned short &uriCode, Component *actor, const Unit &unit, const float &writeThis) |
| template<> | |
| bool | WriteOnce (const unsigned short &uriCode, Component *actor, const Unit &unit, const double &writeThis) |
Static Public Member Functions | |
| static void | Construct () |
| static Constructor More... | |
| static DataAccess * | GetDataAccess (const unsigned short &code) |
| Returns the DataAccess with the code, or NULL if none. More... | |
| static DataAccess * | GetDataAccess (const DataAccessor &dataAccessor, UniversalDataElement *universal=NULL) |
| Returns a DataAccess with the specified attributes. More... | |
| static unsigned short | GetDataAccessCount () |
| Returns the number of DataAccess element currently registered. More... | |
| static DataAccess * | RegisterDataAccess (DataAccess *dataAccess) |
| Adds the supplied DataAccess to the registries. More... | |
| static DataElement * | GetElement (const unsigned short &uriCode) |
| Returns the DataElement of the uriCode, or NULL. More... | |
| static DataElement * | GetElement (const ElementURI &elementURI) |
| Returns the DataElement matching the supplied ElementURI. More... | |
| static ElementURI * | GetElementURI (const unsigned short &code) |
| Returns the ElementURI with the code, or NULL if none. More... | |
| static ElementURI * | GetElementURI (const ElementURI &elementURI) |
| Returns the registered ElementURI matching the supplied ElementURI. More... | |
| static unsigned int | GetElementURICount () |
| Returns the number of registered ElementURIs. More... | |
| static void | CodifyElementURI (ElementURI &elementURI) |
| Adds a unique code to the elementURI. More... | |
| static ElementURI * | RegisterElementURI (ElementURI *elementURI) |
| Adds the supplied ElementURI to the registries. More... | |
| static void | DeRegisterElementURI (ElementURI *elementURI) |
| Removes the supplied ElementURI to the registries. More... | |
| static ElementURI * | FindElementURI (const Str &str) |
| Returns a ElementURI that matches the supplied str. More... | |
| static unsigned short | GetElementURICode (const char *chars) |
| Returns a ElementURI code for the ElementURI that matches the supplied chars. More... | |
| static CodedStr * | GetName (const unsigned short &code) |
| Returns the CodedStr with the code, or NULL if none. More... | |
| static CodedStr * | FindCodedName (const Str &name) |
| Returns the CodedStr like the supplied string. More... | |
| static CodedStr & | GetCodedName (const Str &name) |
| Returns the CodedStr like the supplied string. More... | |
| static void | MapDataElement (ElementURI *elementURI, DataElement *dataElement) |
| Maps the supplied DataElement to the suplied Uri. More... | |
| static CodedStr * | RegisterCodedName (CodedStr *name) |
| Adds the supplied CodedStr to the registries. More... | |
| static DataReader * | NewInputReader (const Str &uriPart, Component *owner, const DataValue *defaultValue, bool deleteDefaultValue=true) |
| Creates a reader for this component's input (and a dataElement) Doesn't take a ComponentName, assumes it's being created in the owner's namespace. More... | |
| static DataReader * | NewInputReader (const ElementURI &elementURI, Component *owner, const DataValue *defaultValue, bool deleteDefaultValue=true) |
| static DataWriter * | NewOutputWriter (const Str &uriPart, Component *owner, DataValue *initialValue) |
| static DataWriter * | NewOutputWriter (const ElementURI &elementURI, Component *owner, DataValue *initialValue) |
| static DataReader * | NewReader (const Str &componentName, const Str &uriPart, Component *owner, const DataValue *defaultValue, bool deleteDefaultValue=true) |
| static DataReader * | NewReader (const ElementURI &elementURI, Component *owner, const DataValue *defaultValue, bool deleteDefaultValue=true) |
| static UniversalDataReader * | NewUniversalReader (const UniversalURI &universalURI, Component *owner, const DataValue *defaultValue, bool deleteDefaultValue=true) |
| static UniversalDataWriter * | NewUniversalWriter (const UniversalURI &universalURI, Component *owner, DataValue *initialValue, const float accuracy=DataElement::NO_ACCURACY) |
| static DataWriter * | NewWriter (const Str &componentName, const Str &uriPart, Component *owner) |
| static DataWriter * | NewWriter (const ElementURI &elementURI, Component *owner) |
| static DataElement * | NewDataElement (const ElementURI &elementURI, Component *owner, const Unit &unit, BinaryDataType binaryType, const float accuracy=DataElement::NO_ACCURACY) |
| static UniversalDataElement * | NewUniversalElement (const UniversalURI &universalURI, Component *owner, const Unit &unit, BinaryDataType binaryType) |
| template<typename T > | |
| static bool | ReadOnce (const Str &componentName, const Str &uriPart, const Unit &unit, T &readTo, Logger &logger, Syslog::Severity severity=Syslog::CRITICAL) |
| If the value is only going to be read once, it's probably not worth providing a DataReader. More... | |
| template<typename T > | |
| static bool | ReadOnce (const ElementURI &elementURI, const Unit &unit, T &readTo, Logger &logger, Syslog::Severity severity=Syslog::CRITICAL) |
| static bool | ReadOnce (const Str &componentName, const Str &uriPart, DataValue &readTo, Logger &logger, Syslog::Severity severity=Syslog::CRITICAL) |
| static bool | ReadOnce (const ElementURI &elementURI, DataValue &readTo, Logger &logger, Syslog::Severity severity=Syslog::CRITICAL) |
| template<typename T > | |
| static bool | ReadOnce (const unsigned short &uriCode, const Unit &unit, T &readTo, Logger &logger, Syslog::Severity severity=Syslog::CRITICAL) |
| template<typename T > | |
| static bool | WriteOnce (const Str &uriPart, Component *owner, const Unit &unit, const T &writeThis) |
| If the value is only going to be written once, it's probably not worth providing a DataWriter. More... | |
| static bool | WriteOnce (const Str &uriPart, Component *owner, const DataValue &writeThis) |
| template<typename T > | |
| static bool | WriteOnce (const unsigned short &uriCode, Component *actor, const Unit &unit, const T &writeThis) |
| static bool | WriteOnce (const unsigned short &uriCode, Component *actor, const DataValue &writeThis) |
| static void | ReadDirectory (const Str &dirFilename) |
| static void | ClearDirectory () |
| static bool | IsDirectoryRead () |
| static void | EnableDirectoryWrites () |
| static void | SimulateDirectoryWrites () |
| static void | WriteDirectory (LogWriter *rewriteTo=NULL, bool forceLog=false) |
Static Public Attributes | |
| static const unsigned short | NO_LOG_FORMAT = 0x0000 |
Private Member Functions | |
| Slate () | |
| Private Constructor for static class. More... | |
Static Private Member Functions | |
| static DataElement * | NewDataElement (const ElementURI &elementURI, Component *owner, DataValue *initialValue, float accuracy=DataElement::NO_ACCURACY) |
| static UniversalDataElement * | NewUniversalElement (const UniversalURI &universalURI, Component *owner, const DataValue *testValue) |
| static bool | ReadHeader (InStream &inStream) |
| Read and process a header frame. More... | |
| static void | WriteDataAccessEntry (DataAccess *dataAccess, LogWriter *rewriteTo=NULL, bool forceWrite=false) |
| Helper functions that write directory information. More... | |
| static void | WriteElementURIEntry (ElementURI *elementURI, LogWriter *rewriteTo=NULL, bool forceWrite=false) |
| static void | WriteNameEntry (CodedStr *codeName, LogWriter *rewriteTo=NULL, bool forceWrite=false) |
| static void | ConfigureNewDataElement (Component *owner, const ElementURI &elementURI, DataElement *&dataElement) |
| static void | Uninitialize () |
Static Private Attributes | |
| static bool | DirectoryWritesEnabled_ |
| static bool | DirectoryWritesSimulated_ |
| static unsigned short | NextDataAccessCode_ |
| static unsigned short | NextElementURICode_ |
| static unsigned short | NextNameCode_ |
| static bool | DirectoryRead_ |
| static Logger * | Logger_ |
| static DataElementMap * | DataElementMap_ |
| static UniversalMap * | UniversalMap_ |
| static DataAccessMap * | DataAccessMap_ |
| static ElementURIMap * | ElementURIMap_ |
| static NameMap * | NameMap_ |
| static DataAccessArray * | DataAccessArray_ |
| static DataAccessArray * | DataAccessList_ |
| static ElementURIArray * | ElementURIArray_ |
| static ElementURIList * | ElementURIList_ |
| static int | ElementURICount_ |
| static NameArray * | NameArray_ |
| static NameList * | NameList_ |
| static Mutex | DataAccessMutex_ |
| static Mutex | ElementMutex_ |
| static Mutex | NameMutex_ |
| static StaticDestructor | StaticDestructor_ |
| Static instance of StaticDestructor. More... | |
Friends | |
| class | Supervisor |
| Allows Supervisor to call Uninitialize. More... | |
| class | Unserialize |
Code unit that represents the slate.
Includes methods for registering output elements (variables) and methods for requesting input elements (variables) that also register the requester as a consumer of the requested input element.
|
inlineprivate |
Private Constructor for static class.
|
static |
References FlexArrayBase::clear(), FastMap< S, T >::clear(), DataAccessArray_, DataAccessList_, DataAccessMap_, DataAccessMutex_, DataElementMap_, DirectoryRead_, ElementMutex_, ElementURIArray_, ElementURIList_, ElementURIMap_, Logger_, NameArray_, NameList_, NameMap_, NameMutex_, NextDataAccessCode_, NextElementURICode_, NextNameCode_, FastMap< S, T >::popIndexed(), FlexArray< T >::push(), FastMap< S, T >::put(), FastMap< S, T >::size(), and UniversalMap_.
Referenced by Unserialize::Run().
|
static |
Adds a unique code to the elementURI.
Adds a code to the supplied ElementURI.
If slate.dir already exists, the code is taken from there.
References Construct(), DirectoryWritesEnabled_, DirectoryWritesSimulated_, ElementMutex_, ElementURIList_, ElementURIMap_, FastMap< S, T >::get(), ElementURI::getCode(), NextElementURICode_, ElementURI::NO_CODE, FlexArray< T >::push(), FastMap< S, T >::put(), ElementURI::setCode(), and WriteElementURIEntry().
Referenced by DataElement::DataElement(), CommandLine_Test::testParse(), and UniversalURI::UniversalURI().
|
staticprivate |
|
static |
static Constructor
static Constructor called via NewName
References DataAccessArray_, DataAccessList_, DataAccessMap_, DataElementMap_, DirectoryWritesEnabled_, DirectoryWritesSimulated_, ElementURIArray_, ElementURIList_, ElementURIMap_, Logger_, NameArray_, NameList_, NameMap_, NextDataAccessCode_, NextElementURICode_, NextNameCode_, FlexArray< T >::push(), FastMap< S, T >::put(), and UniversalMap_.
Referenced by CodifyElementURI(), EnableDirectoryWrites(), FindCodedName(), GetCodedName(), GetDataAccess(), and SimulateDirectoryWrites().
|
static |
Removes the supplied ElementURI to the registries.
References DataElementMap_, ElementMutex_, ElementURIArray_, ElementURIMap_, FastMap< S, T >::get(), FlexArray< T >::get(), ElementURI::getCode(), ElementURI::NO_CODE, FastMap< S, T >::pop(), FastMap< S, T >::put(), and FlexArray< T >::set().
Referenced by Config::ParseLine().
|
static |
References Construct(), DataAccessMap_, DirectoryWritesEnabled_, Logger::getFacility(), Logger_, and WriteNameEntry().
Referenced by run_code().
Returns the CodedStr like the supplied string.
Returns NULL if not found
References Construct(), FastMap< S, T >::get(), NameMap_, and NameMutex_.
Referenced by MissionStateLogger::NewResume(), BinaryLogReader::read(), LinearApproximationLogWriter::sendOutput(), and MultiLogWriter::write().
|
static |
Returns a ElementURI that matches the supplied str.
Returns NULL if none match
References ElementMutex_, ElementURIMap_, and FastMap< S, T >::get().
Referenced by DataNameRule::check(), ElementURI::FindURI(), ReadDataComponent::Instance(), DefineBehavior::Instance(), MissionStateLogger::NewResume(), Config::ParseLine(), and ValueClause::ReadReader().
Returns the CodedStr like the supplied string.
Creates a new one if the supplied one is unique
References Construct(), DirectoryWritesEnabled_, DirectoryWritesSimulated_, FastMap< S, T >::get(), NameList_, NameMap_, NameMutex_, NextNameCode_, FlexArray< T >::push(), FastMap< S, T >::put(), CodedStr::setCode(), and WriteNameEntry().
|
static |
Returns the DataAccess with the code, or NULL if none.
References DataAccessArray_, DataAccessMutex_, and FlexArray< T >::get().
Referenced by CommandLine::commandShowDependencies(), HDF5LogWriter::initializeHDF5LogWriter(), JsonLogWriter::initializeJsonLogWriter(), NetCdfTableLogWriter::netCdfInitialize(), NetCdfLogWriter::netCdfInitialize(), DataEntry::Read(), and Unserialize::Run().
|
static |
Returns a DataAccess with the specified attributes.
Creates a new one if the supplied attributes are unique
References DataAccess::asString(), Construct(), DataAccessList_, DataAccessMap_, DataAccessMutex_, DirectoryWritesEnabled_, DirectoryWritesSimulated_, FastMap< S, T >::get(), NextDataAccessCode_, FlexArray< T >::push(), FastMap< S, T >::put(), DataAccess::setCode(), and WriteDataAccessEntry().
|
inlinestatic |
Returns the number of DataAccess element currently registered.
References NextDataAccessCode_.
Referenced by HDF5LogWriter::initializeHDF5LogWriter(), JsonLogWriter::initializeJsonLogWriter(), NetCdfTableLogWriter::netCdfInitialize(), NetCdfLogWriter::netCdfInitialize(), DataEntry::Read(), and Unserialize::Run().
|
static |
Returns the DataElement of the uriCode, or NULL.
References DataElementMap_, ElementMutex_, FastMap< S, T >::get(), GetElementURI(), and ElementURI::NO_CODE.
Referenced by CommandLine::commandConfigSet(), CommandLine::commandFailVariable(), CommandLine::commandGet(), CommandLine::commandSet(), CommandLine::commandShowBest(), CommandLine::commandShowVariable(), Aggregate::defineArg(), Reporter::ReportItem::initDataReader(), Maintainer::MaintainItem::initDataWriter(), ReadDataComponent::initializeReaders(), Component::newBlobReader(), Component::newBlobWriter(), Component::newConfigReader(), NewDataElement(), Component::newDataReader(), Component::newDataWriter(), NewInputReader(), NewReader(), MissionStateLogger::NewResume(), Config::ParseLine(), DataEntry::Read(), ReadOnce(), and WriteOnce().
|
static |
Returns the DataElement matching the supplied ElementURI.
References DataElementMap_, ElementMutex_, and FastMap< S, T >::get().
|
static |
Returns the ElementURI with the code, or NULL if none.
References ElementURIArray_, and FlexArray< T >::get().
Referenced by JsonLogWriter::addVar(), NetCdfTableLogWriter::addVar(), NetCdfLogWriter::addVar(), HDF5LogWriter::addVar(), CommandLine::commandFailVariable(), CommandLine::commandShowDependencies(), CommandLine::commandShowVariable(), MultiLogWriter::forceWrite(), LinearApproximationLogWriter::forceWrite(), GetElement(), FilterLogWriter::initializeFilterLogWriter(), HDF5LogWriter::initializeHDF5LogWriter(), JsonLogWriter::initializeJsonLogWriter(), TableLogWriter::initializeTableLogWriter(), Maintainer::MaintainItem::maintainStatus(), Maintainer::MaintainItem::makeName(), ParsedCommand::matchUniversal(), ParsedCommand::matchVariable(), NetCdfTableLogWriter::netCdfInitialize(), NetCdfLogWriter::netCdfInitialize(), MissionStateLogger::NewRun(), DataEntry::Read(), ReadOnce(), Reporter::ReportItem::reportStatus(), Unserialize::Run(), LinearApproximationLogWriter::sendOutput(), NetCdfTableLogWriter::setAttValue(), DataEntry::toString(), EventEntry::toString(), MultiLogWriter::write(), DirectoryManagingLogWriter::writeData(), and WriteOnce().
|
static |
Returns the registered ElementURI matching the supplied ElementURI.
References ElementMutex_, ElementURIMap_, and FastMap< S, T >::get().
|
static |
Returns a ElementURI code for the ElementURI that matches the supplied chars.
Returns ElementURI::NO_CODE if the supplied one is unique
References ElementMutex_, ElementURIMap_, FastMap< S, T >::get(), ElementURI::getCode(), and ElementURI::NO_CODE.
Referenced by FilterLogWriter::initializeFilterLogWriter(), HDF5LogWriter::initializeHDF5LogWriter(), JsonLogWriter::initializeJsonLogWriter(), ReadDataComponent::initializeReaders(), TableLogWriter::initializeTableLogWriter(), Assign::Instance(), SendDataComponent::Instance(), SyslogComponent::Instance(), NetCdfTableLogWriter::netCdfInitialize(), NetCdfLogWriter::netCdfInitialize(), ValueClause::ReadStrValueUri(), and MultiLogWriter::write().
|
static |
Returns the number of registered ElementURIs.
References DataAccessList_, DataAccessMutex_, and FlexArrayBase::size().
Referenced by DataNameRule::check(), CommandLine::commandFailVariable(), CommandLine::commandShowVariable(), FilterLogWriter::initializeFilterLogWriter(), TableLogWriter::initializeTableLogWriter(), ParsedCommand::matchUniversal(), ParsedCommand::matchVariable(), JsonLogWriter::write(), TableLogWriter::write(), FilterLogWriter::write(), NetCdfTableLogWriter::write(), NetCdfLogWriter::write(), and HDF5LogWriter::write().
|
static |
Returns the CodedStr with the code, or NULL if none.
References FlexArray< T >::get(), NameArray_, and NameMutex_.
Referenced by CommandLine::commandShowComponent(), CommandLine::commandShowDependencies(), MultiLogWriter::forceWrite(), LinearApproximationLogWriter::forceWrite(), MissionStateLogger::GetActive(), ParsedCommand::matchComponent(), MissionStateLogger::NewRun(), SyslogEntry::Read(), MissionStateLogger::SetActive(), MissionStateLogger::ShowMissionState(), DataEntry::toString(), EventEntry::toString(), and DirectoryManagingLogWriter::writeData().
|
inlinestatic |
References DirectoryRead_.
Referenced by FilterLogWriter::initializeFilterLogWriter(), HDF5LogWriter::initializeHDF5LogWriter(), JsonLogWriter::initializeJsonLogWriter(), TableLogWriter::initializeTableLogWriter(), NetCdfTableLogWriter::netCdfInitialize(), NetCdfLogWriter::netCdfInitialize(), and Unserialize::Run().
|
static |
Maps the supplied DataElement to the suplied Uri.
References DataElementMap_, ElementMutex_, ElementURIMap_, FastMap< S, T >::get(), FastMap< S, T >::put(), and RegisterElementURI().
Referenced by Aggregate::defineArg(), Component::newConfigReader(), Config::ParseLine(), and CommandLine_Test::testParse().
|
static |
References ConfigureNewDataElement(), DataElementMap_, Unit::dataValue(), ElementMutex_, GetElement(), and FastMap< S, T >::put().
Referenced by Component::newBlobReader(), Component::newBlobWriter(), Component::newDataReader(), Component::newDataWriter(), NewInputReader(), NewOutputWriter(), NewReader(), Component::newUniversalBlobWriter(), NewUniversalWriter(), Component::newUniversalWriter(), NewWriter(), DataEntry::Read(), and WriteOnce().
|
staticprivate |
|
static |
Creates a reader for this component's input (and a dataElement) Doesn't take a ComponentName, assumes it's being created in the owner's namespace.
References ElementURI::Create(), Syslog::CRITICAL, Component::getLogger(), Component::getName(), and Logger::syslog().
|
static |
|
static |
References Syslog::CRITICAL, Component::getLogger(), Component::getName(), and Logger::syslog().
Referenced by AsyncPiEstimator::AsyncPiEstimator(), Batt_Ocean_Server::Batt_Ocean_Server(), BPC1::BPC1(), Component::logCurrent(), Component::logVoltage(), NAL9602::NAL9602(), and Component::setDurationOfLastRun().
|
static |
References NewDataElement(), and Logger::TIME_PRECISION_MILLIS.
|
static |
References ElementURI::Create(), Syslog::CRITICAL, Component::getLogger(), and Logger::syslog().
Referenced by CBIT::CBIT(), PeakDetectVsDepth::initialize(), PeakDetectHorizontal::initialize(), ValueDetect::initialize(), SendDataComponent::Instance(), SyslogComponent::Instance(), ReadDataComponent::Instance(), Method::Method(), and ValueClause::ReadReader().
|
static |
References DataValue::copy(), GetElement(), and NewDataElement().
|
static |
References DataElementMap_, Unit::dataValue(), FastMap< S, T >::get(), FastMap< S, T >::put(), and UniversalMap_.
Referenced by Component::newUniversalBlobReader(), Component::newUniversalBlobWriter(), NewUniversalReader(), Component::newUniversalReader(), NewUniversalWriter(), and Component::newUniversalWriter().
|
staticprivate |
References DataElementMap_, Syslog::ERROR, FastMap< S, T >::get(), Unit::getBaseUnit(), DataValue::getBaseUnit(), DataElement::getBaseUnit(), Component::getLogger(), Unit::getName(), DataValue::getTypeSize(), DataElement::getTypeSize(), DataValue::getUnit(), FastMap< S, T >::put(), DataElement::setBaseUnit(), DataElement::setTypeSize(), Logger::syslog(), and UniversalMap_.
|
static |
References NewUniversalElement().
Referenced by PeakDetectVsDepth::initialize(), ValueDetect::initialize(), and ReadDataComponent::Instance().
|
static |
References UniversalDataElement::addElement(), Component::getName(), DataValue::getUnit(), NewDataElement(), NewUniversalElement(), UniversalDataElement::notifyChangeDone(), DataElement::registerUniversal(), UniversalDataWriter::setAccuracy(), and Logger::TIME_PRECISION_MILLIS.
Referenced by ValueDetect_Test::testRunDelta(), and ValueDetect_Test::testRunNoDelta().
|
static |
References ElementURI::Create(), Syslog::CRITICAL, Component::getLogger(), and Logger::syslog().
Referenced by MissionItem::initializeFromScript(), and Method::Method().
|
static |
References NewDataElement(), and Logger::TIME_PRECISION_MILLIS.
|
static |
References DirectoryRead_, Logger_, and FileLogReader::read().
Referenced by Unserialize::Run(), and run_code().
|
staticprivate |
Read and process a header frame.
|
inlinestatic |
If the value is only going to be read once, it's probably not worth providing a DataReader.
These functions allow for fairly efficient single reads. Return true if the value is assigned. False otherwise. Note: These reads can not be logged.
Referenced by Aanderaa_O2::Aanderaa_O2(), ConfigureNewDataElement(), ESPComponent::ESPComponent(), DeviceIOStream::GetFilename(), PNI_TCM::getMagneticVariation(), CommandLine::initialize(), MissionManager::initialize(), ExternalSim::initialize(), Supervisor::initialize(), ISUS::ISUS(), Module::loadAtStartup(), SimulatorUtils::LoadInit(), DataOverHttps::loadParams(), NAL9602::loadParams(), UartStream::LookupBaudrate(), UartStream::LookupFilename(), BPC1::readConfig(), Rowe_600LCM::readConfig(), ReadOnce(), AnalogToDigital::ReadTimeout(), AnalogToDigital::ReadVRefPerBit(), Depth_Keller::run(), CTD_NeilBrown::runnable(), DVL_micro::start(), AHRS_3DMGX3::starting(), and AHRS_sp3003D::starting().
|
static |
|
inlinestatic |
References ReadOnce().
|
static |
|
static |
Adds the supplied CodedStr to the registries.
References FastMap< S, T >::get(), FlexArray< T >::get(), CodedStr::getCode(), AuvMath::Max(), NameArray_, NameList_, NameMap_, NameMutex_, NextNameCode_, CodedStr::NO_CODE, FlexArray< T >::push(), FastMap< S, T >::put(), FlexArray< T >::set(), and CodedStr::setCode().
Referenced by DirectoryEntry::Read().
|
static |
Adds the supplied DataAccess to the registries.
References DataAccess::asString(), DataAccessArray_, DataAccessList_, DataAccessMap_, DataAccessMutex_, FastMap< S, T >::get(), FlexArray< T >::get(), DataAccess::getCode(), AuvMath::Max(), NextDataAccessCode_, DataAccess::NO_CODE, FlexArray< T >::push(), FastMap< S, T >::put(), and FlexArray< T >::set().
Referenced by DirectoryEntry::Read().
|
static |
Adds the supplied ElementURI to the registries.
References ElementURIArray_, ElementURIList_, ElementURIMap_, FastMap< S, T >::get(), FlexArray< T >::get(), ElementURI::getCode(), AuvMath::Max(), NextElementURICode_, ElementURI::NO_CODE, FlexArray< T >::push(), FastMap< S, T >::put(), FlexArray< T >::set(), and ElementURI::setCode().
Referenced by MapDataElement(), and DirectoryEntry::Read().
|
static |
References Construct(), DataAccessMap_, and DirectoryWritesSimulated_.
Referenced by CommandLine_Test::testParse().
|
staticprivate |
References DataAccessList_, DataAccessMutex_, ElementMutex_, ElementURIList_, FlexArray< T >::get(), NameList_, NameMutex_, NextDataAccessCode_, NextElementURICode_, NextNameCode_, ElementURI::NO_CODE, CodedStr::NO_CODE, DataAccess::NO_CODE, CodedStr::setCode(), ElementURI::setCode(), DataAccess::setCode(), and FlexArrayBase::size().
Referenced by Unserialize::Run(), and Supervisor::uninitialize().
|
staticprivate |
Helper functions that write directory information.
References DataAccessArray_, DirectoryWritesSimulated_, FlexArray< T >::get(), DataAccess::getCode(), Logger::log(), Logger_, FlexArray< T >::set(), and LogWriter::write().
Referenced by GetDataAccess(), and WriteDirectory().
|
static |
References DataAccessList_, ElementURIList_, FlexArray< T >::get(), CodedStr::getCode(), ElementURI::getCode(), DataAccess::getCode(), NameList_, NextDataAccessCode_, NextElementURICode_, NextNameCode_, ElementURI::NO_CODE, CodedStr::NO_CODE, DataAccess::NO_CODE, CodedStr::setCode(), ElementURI::setCode(), DataAccess::setCode(), FlexArrayBase::size(), WriteDataAccessEntry(), WriteElementURIEntry(), and WriteNameEntry().
Referenced by DirectoryLogWriter::writeHeader().
|
staticprivate |
References DirectoryWritesSimulated_, ElementURIArray_, FlexArray< T >::get(), ElementURI::getCode(), Logger::log(), Logger_, FlexArray< T >::set(), and LogWriter::write().
Referenced by CodifyElementURI(), and WriteDirectory().
|
staticprivate |
References DirectoryWritesSimulated_, FlexArray< T >::get(), CodedStr::getCode(), Logger::log(), Logger_, NameArray_, FlexArray< T >::set(), and LogWriter::write().
Referenced by EnableDirectoryWrites(), GetCodedName(), and WriteDirectory().
|
static |
If the value is only going to be written once, it's probably not worth providing a DataWriter.
These functions allow for fairly efficient single writer. They return true if the value is writtem, false otherwise. Note: These writes are logged.
Referenced by CommandLine::commandSet(), Aggregate::defineArg(), NewDataElement(), Config::ParseLine(), and WriteOnce().
|
static |
References WriteOnce().
| bool Slate::WriteOnce | ( | const Str & | uriPart, |
| Component * | owner, | ||
| const Unit & | unit, | ||
| const float & | writeThis | ||
| ) |
References FLOAT4, and WriteOnce().
| bool Slate::WriteOnce | ( | const Str & | uriPart, |
| Component * | owner, | ||
| const Unit & | unit, | ||
| const double & | writeThis | ||
| ) |
References DOUBLE8, and WriteOnce().
| bool Slate::WriteOnce | ( | const unsigned short & | uriCode, |
| Component * | actor, | ||
| const Unit & | unit, | ||
| const float & | writeThis | ||
| ) |
References FLOAT4, and WriteOnce().
| bool Slate::WriteOnce | ( | const unsigned short & | uriCode, |
| Component * | actor, | ||
| const Unit & | unit, | ||
| const double & | writeThis | ||
| ) |
References DOUBLE8, and WriteOnce().
|
friend |
Allows Supervisor to call Uninitialize.
|
friend |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
Referenced by ClearDirectory(), IsDirectoryRead(), and ReadDirectory().
|
staticprivate |
Referenced by CodifyElementURI(), Construct(), EnableDirectoryWrites(), GetCodedName(), and GetDataAccess().
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
Referenced by ClearDirectory(), Construct(), GetName(), RegisterCodedName(), WriteNameEntry(), and Slate::StaticDestructor::~StaticDestructor().
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
Referenced by ClearDirectory(), Construct(), GetDataAccess(), GetDataAccessCount(), RegisterDataAccess(), Uninitialize(), and WriteDirectory().
|
staticprivate |
Referenced by ClearDirectory(), CodifyElementURI(), Construct(), RegisterElementURI(), Uninitialize(), and WriteDirectory().
|
staticprivate |
Referenced by ClearDirectory(), Construct(), GetCodedName(), RegisterCodedName(), Uninitialize(), and WriteDirectory().
|
static |
|
staticprivate |
Static instance of StaticDestructor.
|
staticprivate |
Referenced by ClearDirectory(), Construct(), NewUniversalElement(), and Slate::StaticDestructor::~StaticDestructor().