Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

FunctionWriter Class Reference

This is an abstract class that can be used by the various InterfaceMakers to indicate a generic helper function or variable that needs to be written to the generated source file. More...

#include <functionWriter.h>

Inheritance diagram for FunctionWriter:

FunctionWriterPtrFromPython FunctionWriterPtrToPython List of all members.

Public Member Functions

 FunctionWriter ()
virtual ~FunctionWriter ()
const string & get_name () const
virtual int compare_to (const FunctionWriter &other) const
virtual void write_prototype (ostream &out)
 Outputs the prototype for the function.

virtual void write_code (ostream &out)
 Outputs the code for the function.


Protected Attributes

string _name

Detailed Description

This is an abstract class that can be used by the various InterfaceMakers to indicate a generic helper function or variable that needs to be written to the generated source file.

Definition at line 40 of file functionWriter.h.


Constructor & Destructor Documentation

FunctionWriter::FunctionWriter  ) 
 

Definition at line 32 of file functionWriter.cxx.

FunctionWriter::~FunctionWriter  )  [virtual]
 

Definition at line 43 of file functionWriter.cxx.

References _name.


Member Function Documentation

int FunctionWriter::compare_to const FunctionWriter &  other  )  const [virtual]
 

Definition at line 66 of file functionWriter.cxx.

const string & FunctionWriter::get_name  )  const
 

Definition at line 54 of file functionWriter.cxx.

References _name.

void FunctionWriter::write_code ostream &  out  )  [virtual]
 

Outputs the code for the function.

Reimplemented in FunctionWriterPtrFromPython, and FunctionWriterPtrToPython.

Definition at line 109 of file functionWriter.cxx.

void FunctionWriter::write_prototype ostream &  out  )  [virtual]
 

Outputs the prototype for the function.

Reimplemented in FunctionWriterPtrFromPython, and FunctionWriterPtrToPython.

Definition at line 97 of file functionWriter.cxx.

Referenced by FunctionWriters::add_writer().


Member Data Documentation

string FunctionWriter::_name [protected]
 

Definition at line 52 of file functionWriter.h.

Referenced by get_name(), FunctionWriterPtrToPython::write_prototype(), FunctionWriterPtrFromPython::write_prototype(), ~FunctionWriter(), FunctionWriterPtrFromPython::~FunctionWriterPtrFromPython(), and FunctionWriterPtrToPython::~FunctionWriterPtrToPython().


The documentation for this class was generated from the following files:
Generated on Thu May 1 22:13:33 2003 for DTool by doxygen1.3