#include <SEDataRequested.h>

Inherits LoggerForward, and SEEventHandler.

Public Member Functions

 SEDataRequested ()
 
virtual ~SEDataRequested ()
 
 SEDataRequested (const SEDataRequested &)=delete
 
SEDataRequested operator= (const SEDataRequested &)=delete
 
virtual void SetEngine (const PhysiologyEngine &engine)
 
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 PullDataRequested ()
 
virtual void ClearDataRequested ()
 
virtual const std::vector< double > & GetValues () const
 
virtual bool KeepLogMessages () const
 
virtual void KeepLogMessages (bool b)
 
virtual const std::vector< SEEventChange > & GetEventChanges () const
 
virtual const LogMessagesGetLogMessages () const
 
virtual void ForwardDebug (const std::string &msg, const std::string &origin)
 
virtual void ForwardInfo (const std::string &msg, const std::string &origin)
 
virtual void ForwardWarning (const std::string &msg, const std::string &origin)
 
virtual void ForwardError (const std::string &msg, const std::string &origin)
 
virtual void ForwardFatal (const std::string &msg, const std::string &origin)
 
virtual bool KeepEventChanges () const
 
virtual void KeepEventChanges (bool b)
 
void HandleEvent (eEvent type, bool active, const SEScalarTime *time=nullptr)
 
- Public Member Functions inherited from SEEventHandler
 SEEventHandler ()
 
virtual ~SEEventHandler ()
 

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
 
std::vector< double > m_Values
 
bool m_KeepEventChanges
 
std::vector< SEEventChangem_EventChanges
 
bool m_KeepLogMessages
 
LogMessages m_LogMessages
 
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,
const std::string &  origin 
)
virtual

Reimplemented from LoggerForward.

◆ ForwardError()

void SEDataRequested::ForwardError ( const std::string &  msg,
const std::string &  origin 
)
virtual

Reimplemented from LoggerForward.

◆ ForwardFatal()

void SEDataRequested::ForwardFatal ( const std::string &  msg,
const std::string &  origin 
)
virtual

Reimplemented from LoggerForward.

◆ ForwardInfo()

void SEDataRequested::ForwardInfo ( const std::string &  msg,
const std::string &  origin 
)
virtual

Reimplemented from LoggerForward.

◆ ForwardWarning()

void SEDataRequested::ForwardWarning ( const std::string &  msg,
const std::string &  origin 
)
virtual

Reimplemented from LoggerForward.

◆ GetEventChanges()

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

◆ GetID()

int SEDataRequested::GetID ( ) const
virtual

◆ GetLogMessages()

const LogMessages & SEDataRequested::GetLogMessages ( ) const
virtual

◆ GetValues()

const std::vector< double > & SEDataRequested::GetValues ( ) const
virtual

◆ HandleEvent()

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

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 ( )
virtual

◆ SerializeToString() [1/2]

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

◆ SerializeToString() [2/2]

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

◆ SetEngine()

void SEDataRequested::SetEngine ( const PhysiologyEngine engine)
virtual

◆ 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_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_Values

std::vector<double> SEDataRequested::m_Values
protected

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.