SOFA API  1a4bb3e7
Open source framework for multi-physics simuation
sofa::helper::logging::SofaComponentInfo Class Reference

#include <Base.h>

Inheritance diagram for sofa::helper::logging::SofaComponentInfo:

Public Attributes

const sofa::core::objectmodel::Basem_component
 
std::string m_name
 

Public Member Functions

 SofaComponentInfo (const sofa::core::objectmodel::Base *c)
 
const std::string & name () const
 
std::ostream & toStream (std::ostream &out) const
 
- Public Member Functions inherited from sofa::helper::logging::ComponentInfo
 ComponentInfo ()
 
 ComponentInfo (const std::string &name)
 
virtual ~ComponentInfo ()
 
const std::string & sender () const
 Returns a string identifying the sender of a message. More...
 

Additional Inherited Members

- Protected Attributes inherited from sofa::helper::logging::ComponentInfo
std::string m_sender
 

Attribute details

◆ m_component

const sofa::core::objectmodel::Base* sofa::helper::logging::SofaComponentInfo::m_component

◆ m_name

std::string sofa::helper::logging::SofaComponentInfo::m_name

Constructor details

◆ SofaComponentInfo()

sofa::helper::logging::SofaComponentInfo::SofaComponentInfo ( const sofa::core::objectmodel::Base c)

Function details

◆ name()

const std::string& sofa::helper::logging::SofaComponentInfo::name ( ) const
inline

◆ toStream()

std::ostream& sofa::helper::logging::SofaComponentInfo::toStream ( std::ostream &  out) const
inlinevirtual

Write a textual version of the content of the ComponentInfo. You should override this function when inheriting from the ComponentInfo base class.

Reimplemented from sofa::helper::logging::ComponentInfo.