egami
C++ Image Processing program
Public Member Functions | Static Public Member Functions | Private Types | Private Attributes | Static Private Attributes
Processing_page Class Reference

A page in the processing list zone. More...

#include <processing_page.hpp>

Collaboration diagram for Processing_page:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Processing_page (const std::string &id)
 Constructs a Processing_page with a given id.
void insert (std::shared_ptr< Processing_unit > unit)
 Inserts a Processing_unit in this page.

Static Public Member Functions

static void add_unit_to_page (const std::string &id, std::shared_ptr< Processing_unit > unit)
 Adds a Processing_unit to a given Processing_page.

Private Types

typedef std::map< std::string,
Processing_page * > 
Instances

Private Attributes

Gtk::VButtonBox container
std::list< std::shared_ptr
< Processing_unit > > 
childs

Static Private Attributes

static Instances instances

Detailed Description

A page in the processing list zone.

To be used as a member of Processing_catalogue. A list of all Processing_page objects is kept so that a new Processing_unit can add itself through the add_unit_to_page static member function.

Definition at line 25 of file processing_page.hpp.


Member Typedef Documentation

typedef std::map<std::string, Processing_page*> Processing_page::Instances [private]

Definition at line 26 of file processing_page.hpp.


Constructor & Destructor Documentation

Processing_page::Processing_page ( const std::string &  id) [explicit]

Constructs a Processing_page with a given id.

Parameters:
idthe Processing_page's id, displayed in the tab and used to refer to this Processing_page on a Processing_unit registration with add_unit_to_page.

Definition at line 12 of file processing_page.cpp.


Member Function Documentation

void Processing_page::add_unit_to_page ( const std::string &  id,
std::shared_ptr< Processing_unit unit 
) [static]

Adds a Processing_unit to a given Processing_page.

Exceptions:
std::runtime_errorif the id is not in the instances map
Parameters:
idthe id of the target Processing_page
unitthe unit to be inserted

Definition at line 21 of file processing_page.cpp.

Here is the caller graph for this function:

void Processing_page::insert ( std::shared_ptr< Processing_unit unit)

Inserts a Processing_unit in this page.

Parameters:
unitthe Processing_unit to be inserted

Definition at line 28 of file processing_page.cpp.


Member Data Documentation

std::list<std::shared_ptr<Processing_unit> > Processing_page::childs [private]

List of shared_ptr to the childs, to keep them alive

Definition at line 54 of file processing_page.hpp.

Gtk::VButtonBox Processing_page::container [private]

The Widget (Prossing_unit) container

Definition at line 53 of file processing_page.hpp.

All of the Processing_page objects, used by add_unit_to_page

Definition at line 56 of file processing_page.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends