OMNeT++ Simulation Library  5.6.1
cFingerprintCalculator Class Referenceabstract

#include <cfingerprint.h>

Description

This class defines the interface for fingerprint calculators.

See also
cSimulation::getFingerprintCalculator()
Inheritance diagram for cFingerprintCalculator:
cObject noncopyable cMultiFingerprintCalculator cSingleFingerprintCalculator

Public Member Functions

virtual void initialize (const char *expectedFingerprints, cConfiguration *cfg, int index=-1)=0
 
virtual bool checkFingerprint () const =0
 
Constructor, destructor.
virtual ~cFingerprintCalculator ()
 
Updating the fingerprint value
virtual void addEvent (cEvent *event)=0
 
virtual void addScalarResult (const cComponent *component, const char *name, double value)=0
 
virtual void addStatisticResult (const cComponent *component, const char *name, const cStatistic *value)=0
 
virtual void addVectorResult (const cComponent *component, const char *name, const simtime_t &t, double value)=0
 
virtual void addExtraData (const char *data, size_t length)=0
 
virtual void addExtraData (char data)=0
 
virtual void addExtraData (short data)=0
 
virtual void addExtraData (int data)=0
 
virtual void addExtraData (long data)=0
 
virtual void addExtraData (long long data)=0
 
virtual void addExtraData (unsigned char data)=0
 
virtual void addExtraData (unsigned short data)=0
 
virtual void addExtraData (unsigned int data)=0
 
virtual void addExtraData (unsigned long data)=0
 
virtual void addExtraData (unsigned long long data)=0
 
virtual void addExtraData (double data)=0
 
virtual void addExtraData (const char *data)=0
 
- Public Member Functions inherited from cObject
 cObject ()
 
 cObject (const cObject &other)
 
virtual ~cObject ()
 
virtual const char * getClassName () const
 
virtual const char * getName () const
 
bool isName (const char *s) const
 
virtual const char * getFullName () const
 
virtual std::string getFullPath () const
 
const cObjectgetThisPtr () const
 
virtual std::string str () const
 
virtual _OPPDEPRECATED std::string info () const
 
virtual _OPPDEPRECATED std::string detailedInfo () const
 
virtual cObjectdup () const
 
virtual void parsimPack (cCommBuffer *buffer) const
 
virtual void parsimUnpack (cCommBuffer *buffer)
 
virtual cObjectgetOwner () const
 
virtual bool isOwnedObject () const
 
virtual void forEachChild (cVisitor *v)
 
cObjectfindObject (const char *name, bool deep=true)
 
void copyNotSupported () const
 

Additional Inherited Members

- Protected Member Functions inherited from cObject
virtual void take (cOwnedObject *obj)
 
virtual void drop (cOwnedObject *obj)
 
void dropAndDelete (cOwnedObject *obj)
 

Member Function Documentation

◆ initialize()

virtual void initialize ( const char *  expectedFingerprints,
cConfiguration cfg,
int  index = -1 
)
pure virtual

Initialization.

Implemented in cMultiFingerprintCalculator, and cSingleFingerprintCalculator.

◆ checkFingerprint()

virtual bool checkFingerprint ( ) const
pure virtual

Compare computed fingerprint with the expected one, and throw error if it doesn't match.

Implemented in cMultiFingerprintCalculator, and cSingleFingerprintCalculator.


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