#include <SEDataRequested.h>

Inherits LoggerForward, and SEEventHandler.

Classes

struct  Segment
 

Public Member Functions

 SEDataRequested ()
 
virtual ~SEDataRequested ()
 
 SEDataRequested (const SEDataRequested &)=delete
 
SEDataRequested operator= (const SEDataRequested &)=delete
 
virtual void Clear ()
 
bool SerializeToString (std::string &output, eSerializationFormat m) const
 
virtual int GetID () const
 
virtual void SetID (int id)
 
virtual bool IsActive () const
 
virtual void SetIsActive (bool b)
 
virtual void ClearDataRequested ()
 
virtual void PullDataRequested (int id, double currentTime_s, DataTrack &tracker)
 
virtual const std::vector< std::string > & GetHeaders () const
 
virtual const std::vector< Segment > & GetSegments () const
 
virtual bool KeepLogMessages () const
 
virtual void KeepLogMessages (bool b)
 
virtual const std::vector< SEEventChange > & GetEventChanges () const
 
virtual const LogMessagesGetLogMessages () const
 
void ForwardDebug (const std::string &msg) override
 
void ForwardInfo (const std::string &msg) override
 
void ForwardWarning (const std::string &msg) override
 
void ForwardError (const std::string &msg) override
 
void ForwardFatal (const std::string &msg) override
 
virtual bool KeepEventChanges () const
 
virtual void KeepEventChanges (bool b)
 
void HandleEvent (eEvent type, bool active, const SEScalarTime *time=nullptr) override
 
- Public Member Functions inherited from LoggerForward
virtual ~LoggerForward ()=default
 
virtual void ForwardDebug (std::string const &)
 
virtual void ForwardInfo (std::string const &)
 
virtual void ForwardWarning (std::string const &)
 
virtual void ForwardError (std::string const &)
 
virtual void ForwardFatal (std::string const &)
 
- Public Member Functions inherited from SEEventHandler
 SEEventHandler ()
 
virtual ~SEEventHandler ()
 
virtual void HandleEvent (eEvent e, bool active, const SEScalarTime *simTime=nullptr)=0
 

Static Public Member Functions

static bool SerializeToString (const std::vector< SEDataRequested * > &src, std::string &dst, eSerializationFormat m)
 

Protected Attributes

int m_ID
 
bool m_IsActive
 
bool m_KeepEventChanges
 
std::vector< SEEventChangem_EventChanges
 
bool m_KeepLogMessages
 
LogMessages m_LogMessages
 
std::vector< std::string > m_Headers
 
std::vector< Segmentm_Segments
 
const PhysiologyEnginem_Engine
 

Friends

class PBEngine
 

Constructor & Destructor Documentation

◆ SEDataRequested() [1/2]

SEDataRequested::SEDataRequested ( )
explicit

◆ ~SEDataRequested()

SEDataRequested::~SEDataRequested ( )
virtual

◆ SEDataRequested() [2/2]

SEDataRequested::SEDataRequested ( const SEDataRequested )
delete

Member Function Documentation

◆ Clear()

void SEDataRequested::Clear ( )
virtual

◆ ClearDataRequested()

void SEDataRequested::ClearDataRequested ( )
virtual

◆ ForwardDebug()

void SEDataRequested::ForwardDebug ( const std::string &  msg)
overridevirtual

Reimplemented from LoggerForward.

◆ ForwardError()

void SEDataRequested::ForwardError ( const std::string &  msg)
overridevirtual

Reimplemented from LoggerForward.

◆ ForwardFatal()

void SEDataRequested::ForwardFatal ( const std::string &  msg)
overridevirtual

Reimplemented from LoggerForward.

◆ ForwardInfo()

void SEDataRequested::ForwardInfo ( const std::string &  msg)
overridevirtual

Reimplemented from LoggerForward.

◆ ForwardWarning()

void SEDataRequested::ForwardWarning ( const std::string &  msg)
overridevirtual

Reimplemented from LoggerForward.

◆ GetEventChanges()

const std::vector< SEEventChange > & SEDataRequested::GetEventChanges ( ) const
virtual

◆ GetHeaders()

const std::vector< std::string > & SEDataRequested::GetHeaders ( ) const
virtual

◆ GetID()

int SEDataRequested::GetID ( ) const
virtual

◆ GetLogMessages()

const LogMessages & SEDataRequested::GetLogMessages ( ) const
virtual

◆ GetSegments()

const std::vector< SEDataRequested::Segment > & SEDataRequested::GetSegments ( ) const
virtual

◆ HandleEvent()

void SEDataRequested::HandleEvent ( eEvent  type,
bool  active,
const SEScalarTime time = nullptr 
)
overridevirtual

Implements SEEventHandler.

◆ IsActive()

bool SEDataRequested::IsActive ( ) const
virtual

◆ KeepEventChanges() [1/2]

virtual bool SEDataRequested::KeepEventChanges ( ) const
inlinevirtual

◆ KeepEventChanges() [2/2]

virtual void SEDataRequested::KeepEventChanges ( bool  b)
inlinevirtual

◆ KeepLogMessages() [1/2]

virtual bool SEDataRequested::KeepLogMessages ( ) const
inlinevirtual

◆ KeepLogMessages() [2/2]

virtual void SEDataRequested::KeepLogMessages ( bool  b)
inlinevirtual

◆ operator=()

SEDataRequested SEDataRequested::operator= ( const SEDataRequested )
delete

◆ PullDataRequested()

void SEDataRequested::PullDataRequested ( int  id,
double  currentTime_s,
DataTrack tracker 
)
virtual

◆ SerializeToString() [1/2]

bool SEDataRequested::SerializeToString ( const std::vector< SEDataRequested * > &  src,
std::string &  dst,
eSerializationFormat  m 
)
static

◆ SerializeToString() [2/2]

bool SEDataRequested::SerializeToString ( std::string &  output,
eSerializationFormat  m 
) const

◆ SetID()

void SEDataRequested::SetID ( int  id)
virtual

◆ SetIsActive()

void SEDataRequested::SetIsActive ( bool  b)
virtual

Friends And Related Function Documentation

◆ PBEngine

friend class PBEngine
friend

Member Data Documentation

◆ m_Engine

const PhysiologyEngine* SEDataRequested::m_Engine
protected

◆ m_EventChanges

std::vector<SEEventChange> SEDataRequested::m_EventChanges
protected

◆ m_Headers

std::vector<std::string> SEDataRequested::m_Headers
protected

◆ m_ID

int SEDataRequested::m_ID
protected

◆ m_IsActive

bool SEDataRequested::m_IsActive
protected

◆ m_KeepEventChanges

bool SEDataRequested::m_KeepEventChanges
protected

◆ m_KeepLogMessages

bool SEDataRequested::m_KeepLogMessages
protected

◆ m_LogMessages

LogMessages SEDataRequested::m_LogMessages
protected

◆ m_Segments

std::vector<Segment> SEDataRequested::m_Segments
protected

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.