LRAUV  revA
BlobReader Class Reference

#include <BlobReader.h>

Inheritance diagram for BlobReader:
Collaboration diagram for BlobReader:

Public Member Functions

virtual bool read (DataValue &readTo)
 A DataReader for reading BlobValues, normally created via Component::newBlobReader() More...
 
virtual const ElementURIgetUri (void) const
 
- Public Member Functions inherited from DataReader
 DataReader (Component *owner, DataElement &element, const DataValue *defaultValue, bool deleteDefaultValue=true)
 
 DataReader (Component *owner, DataElement &element, const Unit &defaultUnit)
 
virtual ~DataReader ()
 
const UnitgetDefaultUnit ()
 
bool isUnavailable (void)
 Status and state functions. More...
 
bool isInvalid (void)
 
bool isOrphaned (void)
 
bool isActive (void)
 
bool read (const Unit &unit, unsigned char &readTo)
 Get functions. More...
 
bool read (const Unit &unit, double &readTo)
 
bool read (const Unit &unit, float &readTo)
 
bool read (const Unit &unit, int &readTo)
 
bool read (bool &readTo)
 
bool read (Timespan &readTo)
 
bool read (DataValue &readTo)
 
int asInt (const Unit &unit)
 
double asDouble (const Unit &unit) __attribute__((deprecated))
 
Str asString (const Unit &unit)
 
const TimestampgetTimestamp (void) const
 Returns the Timestamp of the last write to this reader's DataElement. More...
 
bool wasTouchedSinceLastRun (const Component *component)
 Returns true if the value was touched since the last run of the indicated component. More...
 
virtual void requestData (bool requestingData)
 
virtual void requestData (RequestStrategy requestStrategy)
 
bool isRequestingData (void)
 
RequestStrategy getRequestStrategy (void)
 
void setImplementor (bool implementor=true)
 
bool isImplementor ()
 
- Public Member Functions inherited from DataAccessor
virtual ~DataAccessor ()
 
virtual DataElementgetElement (void) const
 
virtual ComponentgetOwner (void) const
 
AccessorType getAccessorType () const
 
DataAccessgetDataAccess () const
 
Logger::TimePrecisionType getTimePrecision () const
 
- Public Member Functions inherited from AbstractBlobReader
virtual ~AbstractBlobReader ()
 Abstract parent class that adds the capability of reading BlobValues to a "normal" DataReader See below for implementation in BlobReader Also implemented in UniversalReader::UniversalBlobReader. More...
 
BlobValue readBlob (bool &success)
 
template<typename T , size_t M>
int read1DArray (const Unit &unit, T(&x)[M])
 
template<typename T >
int read1DClass (const Unit &unit, I1D< T > &i1d)
 
template<typename T >
int read1DPtr (const Unit &unit, T *values, int m)
 
template<typename T , size_t M, size_t N>
int read2DArray (const Unit &unit, T(&x)[M][N])
 
template<typename T >
int read2DClass (const Unit &unit, I2D< T > &i2d)
 
template<typename T >
int read2DPtr (const Unit &unit, T **values, int m, int n)
 
template<typename T , size_t M, size_t N, size_t O>
int read3DArray (const Unit &unit, T(&x)[M][N][O])
 
template<typename T >
int read3DClass (const Unit &unit, I3D< T > &i3d)
 
template<typename T >
int read3DPtr (const Unit &unit, T ***values, int m, int n, int o)
 

Protected Member Functions

 BlobReader (Component *owner, DataElement &element, const Unit &defaultUnit)
 
- Protected Member Functions inherited from DataAccessor
 DataAccessor (Component *owner, DataElement &element, AccessorType accessorType, UniversalDataElement *universal, Logger::TimePrecisionType timePrecision=Logger::TIME_PRECISION_MILLIS)
 Protected Constructor. More...
 
- Protected Member Functions inherited from AbstractBlobReader
 AbstractBlobReader (const ElementURI &uri)
 

Friends

class Component
 

Additional Inherited Members

- Public Types inherited from DataAccessor
enum  AccessorType { DATA_READER = 0, DATA_WRITER = 1 }
 
enum  RequestStrategy {
  NO_STRATEGY = -1, MIN_POWER, MIN_ERROR, MIN_LATENCY,
  MAX_FREQUENCY, ALL_DEVICES, STRATEGY_COUNT
}
 
- Static Public Member Functions inherited from DataAccessor
static RequestStrategy Str2RequestStrategy (const char *const strategyStr)
 
static const char * RequestStrategy2Str (DataAccessor::RequestStrategy strategy)
 
- Static Public Attributes inherited from DataAccessor
static const char *const REQUEST_STRATEGY_STRS [STRATEGY_COUNT]
 
- Protected Attributes inherited from DataReader
RequestStrategy requestStrategy_
 
const DataValuedefaultValue_
 
const UnitdefaultUnit_
 
bool deleteDefaultValue_
 
bool implementor_
 
- Protected Attributes inherited from DataAccessor
Componentowner_
 
DataElementelement_
 
AccessorType accessorType_
 
Logger::TimePrecisionType timePrecision_
 
DataAccessdataAccess_
 
- Protected Attributes inherited from AbstractBlobReader
BlobValue blobValue_
 

Constructor & Destructor Documentation

BlobReader::BlobReader ( Component owner,
DataElement element,
const Unit defaultUnit 
)
inlineprotected

Member Function Documentation

virtual const ElementURI& BlobReader::getUri ( void  ) const
inlinevirtual

Implements AbstractBlobReader.

References DataAccessor::getUri().

Friends And Related Function Documentation

friend class Component
friend

The documentation for this class was generated from the following file: