makefile::Comment Class Reference

Encapsulates a Comment. More...

#include <Comment.h>

Inheritance diagram for makefile::Comment:

Inheritance graph
List of all members.

Public Member Functions

 Comment ()
 Comment (string s)
virtual ~Comment ()
stringgetText ()
void setText (const string &s)
void appendLine (const string &line)
virtual string toString ()

Private Attributes

string text

Detailed Description

Encapsulates a Comment.

Makefile comments are prefixed with # for every line. Currently only full line comments are supported.



Definition at line 37 of file Comment.h.

Constructor & Destructor Documentation

makefile::Comment::Comment (  )  [inline]

Definition at line 42 of file Comment.h.

makefile::Comment::Comment ( string  s  )  [inline]

Definition at line 44 of file Comment.h.

virtual makefile::Comment::~Comment (  )  [inline, virtual]

Definition at line 46 of file Comment.h.

Member Function Documentation

void makefile::Comment::appendLine ( const string line  )  [inline]

Definition at line 58 of file Comment.h.

References cstr.

Referenced by makefile::tester::TestComment::TestComment(), tryall(), and trymakefile().

string& makefile::Comment::getText (  )  [inline]

Definition at line 48 of file Comment.h.

void makefile::Comment::setText ( const string s  )  [inline]

Definition at line 53 of file Comment.h.

string makefile::Comment::toString (  )  [virtual]

strip disallowed characters.

Implements makefile::MakefileItem.

Definition at line 34 of file Comment.cpp.

References cstr, makefile::prefix(), and text.

Member Data Documentation

string makefile::Comment::text [private]

Definition at line 39 of file Comment.h.

Referenced by toString().

The documentation for this class was generated from the following files:
Generated on 16 Mar 2018 for Hugintrunk by  doxygen 1.4.7