60 virtual void Name(
const std::string& name) = 0;
61 [[nodiscard]]
virtual const std::string&
Name()
const = 0;
64 virtual void GroupName(
const std::string& group_name) = 0;
66 [[nodiscard]]
virtual const std::string&
GroupName()
const = 0;
88 [[nodiscard]]
virtual int64_t
SyncValue()
const = 0;
107 [[nodiscard]]
virtual const std::vector<const void*>&
Scopes()
const = 0;
112 [[nodiscard]]
virtual const std::vector<const IAttachment*>&
Attachments()
Interface against an attached file.
Definition iattachment.h:21
Base class for all MDF blocks.
Definition iblock.h:19
Interface against an event block.
Definition ievent.h:58
virtual void AddScope(const void *scope)=0
Adds a scope reference.
virtual const std::vector< const void * > & Scopes() const =0
Returns referenced CN and CG blocks.
virtual size_t CreatorIndex() const =0
Creator index.
std::string Description() const
Returns description.
virtual void Range(RangeType range_type)=0
Sets type of range.
virtual void Cause(EventCause cause)=0
Sets the cause.
virtual const std::string & Name() const =0
Name.
virtual const IMetaData * MetaData() const =0
Returns an constant interface against a MD4 block.
void PostTrig(double post_trig)
Sets the post-trig value (s)
virtual double SyncFactor() const =0
Sync factor.
void Description(const std::string &description)
Sets description.
std::string RangeToString() const
Range to string.
virtual void AddAttachment(const IAttachment *attachment)=0
Adds an attachment reference.
virtual SyncType Sync() const =0
Type of sync.
virtual void ParentEvent(const IEvent *parent)=0
Sets the parent event.
virtual const std::string & GroupName() const =0
Returns the group name.
virtual EventCause Cause() const =0
Cause of event.
virtual RangeType Range() const =0
Type of range.
virtual IMetaData * CreateMetaData()=0
Returns an interface against an MD4 block.
double PreTrig() const
Returns the pre-trig value (s).
virtual void RangeEvent(const IEvent *range_event)=0
Sets the range.
std::string CauseToString() const
Cause to string.
virtual void GroupName(const std::string &group_name)=0
Sets the group name.
virtual const IEvent * RangeEvent() const =0
Returns the range.
virtual void Name(const std::string &name)=0
Sets the name.
virtual const IEvent * ParentEvent() const =0
Returns the parent event.
virtual void CreatorIndex(size_t index)=0
Sets the creator index.
std::string TypeToString() const
Typ as string.
virtual void SyncFactor(double factor)=0
Sets the factor.
void PreTrig(double pre_trig)
Sets the pre-trig time (s).
virtual void Sync(SyncType sync_type)=0
Sets type of sync.
double PostTrig() const
Returns the post-trig value (s).
virtual int64_t SyncValue() const =0
Sync value.
virtual void Type(EventType event_type)=0
Sets type of event.
std::string ValueToString() const
Sync value as string.
virtual void SyncValue(int64_t value)=0
Sets the sync value.
virtual EventType Type() const =0
Type of event.
virtual const std::vector< const IAttachment * > & Attachments() const =0
Returns a list of attachment references.
Interface against an attached file.
All MDF blocks inherits from the IBlock class. The interface class is used internally in lists....
Main namespace for the MDF library.
Definition canmessage.h:17
RangeType
Type of range.
Definition ievent.h:38
@ RangeStart
First in a range.
@ RangePoint
Defines a point.
@ RangeEnd
Last in a range.
SyncType
Type of synchronization value (default time)
Definition ievent.h:30
@ SyncDistance
Sync value represent distance (m).
@ SyncAngle
Sync value represent angle (rad).
@ SyncIndex
Sync value represent sample index.
@ SyncTime
Sync value represent time (s).
EventCause
Type of cause.
Definition ievent.h:45
@ CauseUser
A user generated this event.
@ CauseOther
Unknown source.
@ CauseScript
A script generated this event.
@ CauseError
An error generated this event.
@ CauseTool
The tool generated this event.
EventType
Type of event.
Definition ievent.h:19
@ Marker
Another generic event (maybe range).
@ StopRecording
Stop recording event.
@ StartRecording
Start recording event.
@ RecordingPeriod
Specifies a recording period (range).
@ RecordingInterrupt
The recording was interrupted.
@ AcquisitionInterrupt
The data acquisition was interrupted.
@ Trigger
Generic event (no range).