Canola  0.8.D001
Public Member Functions | Protected Member Functions
program_card_functor Class Reference

#include <functor.h>

Inheritance diagram for program_card_functor:
program_card_functor_image program_card_functor_image_pdf program_card_functor_image_pixbuf program_card_functor_image_png program_card_functor_image_ps program_card_functor_image_svg

List of all members.

Public Member Functions

virtual ~program_card_functor ()
virtual void operator() (unsigned card_num, unsigned card_count, const unsigned char *data, size_t data_size)=0
virtual size_t instructions_per_card (void) const
virtual void set_title (const std::string &text)
virtual void set_arrow (bool value)
virtual void set_color (const std::string &text)
virtual void set_disassemble (bool value)
virtual void set_perforations (bool value)
virtual void set_trim_corners (bool value)
virtual void set_style (const std::string &text)
virtual void set_sfj_list (const std::string &text)
virtual void set_fj_list (const std::string &text)
virtual void set_memory_list (const std::string &text)
virtual void set_steps (int value)

Protected Member Functions

 program_card_functor ()
 program_card_functor (const program_card_functor &rhs)
program_card_functoroperator= (const program_card_functor &rhs)

Detailed Description

The program_card_functor class is used to represent something to be done for the data that makes up one program card worth of a Canola Card System program of a 1614P.

Definition at line 30 of file functor.h.


Constructor & Destructor Documentation

The destructor.

Definition at line 21 of file functor.cc.

The default constructor. For use by derived classes only.

Definition at line 26 of file functor.cc.

The copy constructor.

Parameters:
rhsThe right hand side of the initialization.

Definition at line 31 of file functor.cc.


Member Function Documentation

size_t program_card_functor::instructions_per_card ( void  ) const [virtual]

The instructions per card method is used to ask how many instructions the functor would like per card. The default is 40, the number on the original program cards of the 11614P.

Definition at line 44 of file functor.cc.

virtual void program_card_functor::operator() ( unsigned  card_num,
unsigned  card_count,
const unsigned char *  data,
size_t  data_size 
) [pure virtual]

The function call operator is overloaded to implement the functionality (that's why it's called a functor).

Parameters:
card_numThe number of the card within the set (1 based).
card_countThe number of cards in the set.
dataThe base of the array of bytes containing the program.
data_sizeThe number of bytes in this card image (> 0, <= 40).

Implemented in program_card_functor_image_pixbuf, program_card_functor_image_pdf, program_card_functor_image_ps, program_card_functor_image_png, and program_card_functor_image_svg.

program_card_functor & program_card_functor::operator= ( const program_card_functor rhs) [protected]

The assignment operator.

Parameters:
rhsThe right hand side of the assignment.

Definition at line 37 of file functor.cc.

void program_card_functor::set_arrow ( bool  value) [virtual]

Reimplemented in program_card_functor_image.

Definition at line 58 of file functor.cc.

void program_card_functor::set_color ( const std::string &  text) [virtual]

Reimplemented in program_card_functor_image.

Definition at line 64 of file functor.cc.

void program_card_functor::set_disassemble ( bool  value) [virtual]

Reimplemented in program_card_functor_image.

Definition at line 70 of file functor.cc.

void program_card_functor::set_fj_list ( const std::string &  text) [virtual]

Reimplemented in program_card_functor_image.

Definition at line 100 of file functor.cc.

void program_card_functor::set_memory_list ( const std::string &  text) [virtual]

Reimplemented in program_card_functor_image.

Definition at line 106 of file functor.cc.

void program_card_functor::set_perforations ( bool  value) [virtual]

Reimplemented in program_card_functor_image.

Definition at line 76 of file functor.cc.

void program_card_functor::set_sfj_list ( const std::string &  text) [virtual]

Reimplemented in program_card_functor_image.

Definition at line 94 of file functor.cc.

void program_card_functor::set_steps ( int  value) [virtual]

Reimplemented in program_card_functor_image.

Definition at line 112 of file functor.cc.

void program_card_functor::set_style ( const std::string &  text) [virtual]

Reimplemented in program_card_functor_image.

Definition at line 88 of file functor.cc.

void program_card_functor::set_title ( const std::string &  text) [virtual]

Reimplemented in program_card_functor_image.

Definition at line 52 of file functor.cc.

void program_card_functor::set_trim_corners ( bool  value) [virtual]

Reimplemented in program_card_functor_image.

Definition at line 82 of file functor.cc.


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