Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::ResultDataHandler Class Referenceabstract

Class used to give a ResultData instance access to virtual method of a derived class. More...

#include <ResultDataHandler.h>

Inheritance diagram for sf::ResultDataHandler:
Collaboration diagram for sf::ResultDataHandler:

Public Member Functions

virtual void resultDataEventHandler (ResultDataTypes::EEvent event, const ResultData &caller, ResultData &link, const Range &range, bool sameInst)=0
 Pure virtual function which must be overloaded in a derived class.
 
virtual ~ResultDataHandler ()
 Destructor.
 
- Public Member Functions inherited from sf::InformationTypes
template<typename T >
constexpr std::enable_if_t<(sizeof(T)<=sizeof(data_type)), data_typetoDataType (T value) const
 Casts any type to a data_type value.
 
template<typename T >
constexpr std::enable_if_t<(sizeof(T)<=sizeof(data_type)), T > fromDataType (data_type value) const
 Casts a data_type value to a given type.
 

Friends

class ResultDataTypes
 
class ResultData
 

Additional Inherited Members

- Public Types inherited from sf::ResultDataTypes
enum  EEvent : int {
  reNewId = -32000 , reUserGlobal , reFirstLocal = 0 , reFlagsChange ,
  reAccessChange , reCommitted , reReserve , reInvalid ,
  reClear , reUserLocal , reFirstPrivate = 16000 , reSetup ,
  reIdChanged , reDesiredId , reRemove , reGetOwner ,
  reLostOwner , reLinked , reUnlinked , reGotRange ,
  reGetRange , reUserPrivate
}
 Event enumerate values used in broadcasting where global events have a negative value. More...
 
enum  EField : int {
  rfId = 0 , rfName , rfFlags , rfDescription ,
  rfType , rfBlockSize , rfSegmentSize , rfSigBits ,
  rfOffset
}
 This enumerate is the order of fields in the setup string. More...
 
enum  EType : int {
  rtInvalid = 0 , rtString , rtInt8 , rtInt16 ,
  rtInt32 , rtInt64 , rtLastEntry
}
 This enumerate is used to identify the type of data. More...
 
enum  EFlag : flags_type { flgRecycle = 1 << 0 , flgArchive = 1 << 1 , flgShare = 1 << 2 , flgHidden = 1 << 3 }
 Flags of the flags description field. More...
 
enum  ERangeInfo {
  riAvailable = 1 << 0 , riAccessible = 1 << 1 , riPartialAccessible = 1 << 2 , riRequested = 1 << 3 ,
  riAddressable = 1 << 5 , riSegmented = 1 << 4
}
 Enumerate for range information bit values. More...
 
typedef TVector< ResultData * > PtrVector
 Vector for pointer to results.
 
typedef TVector< ResultDataVector
 Vector for instances of results.
 
typedef TVector< ResultDataReference * > ReferenceVector
 Type for internal use.
 
- Public Types inherited from sf::InformationTypes
typedef unsigned long long id_type
 Type used for the identifying integer (64-bits).
 
typedef int32_t flags_type
 Type used for the flag integer.
 
typedef size_t size_type
 Type used for size of vectors.
 
typedef uint64_t data_type
 Type used for containing a single data element which is the largest integer.
 
typedef int64_t sdata_type
 Type used for containing a single data element which is the largest signed integer.
 
typedef TVector< id_typeIdVector
 Vector for lists of information ID's.
 
typedef TVector< InformationBase * > Vector
 Vector for containing different information base derived classes.
 
- Static Public Attributes inherited from sf::InformationTypes
static constexpr size_t npos = std::numeric_limits<size_type>::max()
 Unsigned size value indicating not found or no index.
 

Detailed Description

Class used to give a ResultData instance access to virtual method of a derived class.

Constructor & Destructor Documentation

◆ ~ResultDataHandler()

virtual sf::ResultDataHandler::~ResultDataHandler ( )
virtual

Destructor.

Clears the link with result-data instances so no errors occur when the link is destructed before the result.

Member Function Documentation

◆ resultDataEventHandler()

virtual void sf::ResultDataHandler::resultDataEventHandler ( ResultDataTypes::EEvent  event,
const ResultData caller,
ResultData link,
const Range range,
bool  sameInst 
)
pure virtual

Pure virtual function which must be overloaded in a derived class.

Friends And Related Symbol Documentation

◆ ResultData

friend class ResultData
friend

Type of the id is a result-data.

◆ ResultDataTypes

friend class ResultDataTypes
friend

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