ug4
ug::IAttachment Class Referenceabstract

the interface for attachments. More...

#include <attachment_pipe.h>

+ Inheritance diagram for ug::IAttachment:

Public Member Functions

virtual IAttachmentclone ()=0
 
virtual IAttachmentDataContainercreate_container ()=0
 
virtual bool default_pass_on_behaviour () const =0
 
const char * get_name ()
 should only be used for debug purposes. More...
 
 IAttachment ()
 
 IAttachment (const char *name)
 
virtual ~IAttachment ()
 
- Public Member Functions inherited from ug::UID
unsigned int id () const
 
bool operator== (const UID &uid)
 
 UID ()
 
 UID (const UID &uid)
 
virtual ~UID ()
 

Protected Attributes

const char * m_name
 

Detailed Description

the interface for attachments.

Attachments can be attached to an AttachmentPipe and thus enhance the pipes elements by data, whose type, container and behavior is defined by the Attachment itself. In order to use an Attachment with libGrid (in particular with libGrids AttachmentAccessors), derivatives of IAttachment have to feature some special typedefs (see Attachment<T> for more information). Whenever possible you should use the template-derivative Attachment<T> instead of IAttachment.

Constructor & Destructor Documentation

◆ IAttachment() [1/2]

ug::IAttachment::IAttachment ( )
inline

◆ IAttachment() [2/2]

ug::IAttachment::IAttachment ( const char *  name)
inline

◆ ~IAttachment()

virtual ug::IAttachment::~IAttachment ( )
inlinevirtual

Member Function Documentation

◆ clone()

◆ create_container()

◆ default_pass_on_behaviour()

◆ get_name()

const char* ug::IAttachment::get_name ( )
inline

should only be used for debug purposes.

Referenced by ug::PrintAttachmentInfo().

Member Data Documentation

◆ m_name

const char* ug::IAttachment::m_name
protected

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