ifm::layout::Component Class Reference

Inheritance diagram for ifm::layout::Component:

ifm::layout::Container ifm::layout::Panel ifm::layout::TabbedContainer

List of all members.


Detailed Description

Base object for constructing Layouts.

Each component can only be placed into the layout once. Attempts to place the same component into the layout by add()ing it to multiple containers will cause undefnied results which will most likely be incorrect. It will also cause the same pointer to be deleted multiple times most likely resulting in a program crash.

Public Member Functions

virtual Componentcopy () const =0
std::string get_name () const
component_type get_type () const
void set_name (const std::string &name)
virtual ~Component ()

Protected Member Functions

 Component (ComponentData *data)

Protected Attributes

std::auto_ptr< ComponentDatam_data

Private Member Functions

Componentoperator= (const Component &)

Classes

class  ComponentData


Constructor & Destructor Documentation

ifm::layout::Component::~Component (  )  [virtual]

ifm::layout::Component::Component ( ComponentData data  )  [protected]


Member Function Documentation

virtual Component* ifm::layout::Component::copy (  )  const [pure virtual]

std::string ifm::layout::Component::get_name (  )  const

Returns:
The name of the component.

component_type ifm::layout::Component::get_type (  )  const

Returns:
The type of the Component.

Component& ifm::layout::Component::operator= ( const Component  )  [private]

void ifm::layout::Component::set_name ( const std::string &  name  ) 

Sets the name of this component.


Member Data Documentation

std::auto_ptr<ComponentData> ifm::layout::Component::m_data [protected]


doxygen Get IFM - Interface Management System at SourceForge.net. Fast, secure and Free Open Source software downloads