makefile::MakefileItem Class Reference

The virtual baseclass for all objects that appear in the Makefile. More...

#include <MakefileItem.h>

Inheritance diagram for makefile::MakefileItem:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 MakefileItem ()
virtual ~MakefileItem ()
 Removes the item from the Makefile.
virtual string toString ()=0
 A string representation of the MakefileItem.
void print (ostream &os)
 Write the items representation to an ostream in a makefile compatible way.
 operator string ()
 Allow casts to string, very nice!
virtual void add ()
 Adds this to the Makefile item list.

Private Attributes

bool added

Detailed Description

The virtual baseclass for all objects that appear in the Makefile.

Subclasses must implement print which allows us to write them to an ostream, like a string, nice :). The various implementations of print have to take care of proper makefile compatible output.

Definition at line 41 of file MakefileItem.h.


Constructor & Destructor Documentation

makefile::MakefileItem::MakefileItem  )  [inline]
 

Definition at line 45 of file MakefileItem.h.

virtual makefile::MakefileItem::~MakefileItem  )  [inline, virtual]
 

Removes the item from the Makefile.

Definition at line 51 of file MakefileItem.h.


Member Function Documentation

virtual void makefile::MakefileItem::add  )  [inline, virtual]
 

Adds this to the Makefile item list.

Definition at line 71 of file MakefileItem.h.

Referenced by createfiles_make(), HuginBase::PanoramaMakefilelibExport::createItems(), HuginBase::AssistantMakefilelibExport::createItems(), main(), makefile::tester::TestComment::TestComment(), makefile::tester::TestConditional::TestConditional(), makefile::tester::TestRule::TestRule(), makefile::tester::TestVariable::TestVariable(), trycond(), trymakefile(), and tryrule().

makefile::MakefileItem::operator string  )  [inline]
 

Allow casts to string, very nice!

Definition at line 65 of file MakefileItem.h.

void makefile::MakefileItem::print ostream os  )  [inline]
 

Write the items representation to an ostream in a makefile compatible way.

Definition at line 60 of file MakefileItem.h.

Referenced by makefile::operator<<().

virtual string makefile::MakefileItem::toString  )  [pure virtual]
 

A string representation of the MakefileItem.

Implemented in makefile::Anything, makefile::Comment, makefile::Conditional, makefile::Newline, makefile::Rule, makefile::VariableDef, and makefile::VariableRef.

Referenced by makefile::operator+().


Member Data Documentation

bool makefile::MakefileItem::added [private]
 

Definition at line 43 of file MakefileItem.h.


The documentation for this class was generated from the following file:
Generated on Mon Sep 1 01:25:53 2014 for Hugintrunk by  doxygen 1.3.9.1