Puma Reference Manual Puma::Project Class Reference



Puma::Project Class Reference

#include <Project.h>

Inheritance diagram for Puma::Project:
Inheritance graph

List of all members.

Public Member Functions

 Project (ErrorStream &)
virtual ~Project ()
void saveMode (Mode=OVERWRITE, const char *suffix=(const char *) 0)
virtual void save (Unit *, bool=false) const
virtual void save (const char *file=(const char *) 0, bool only_modified=false, bool is_reg_ex=false) const
void print (const char *name=(const char *) 0, ostream &out=cout, bool is_reg_ex=false) const
void close (const char *name=(const char *) 0, bool destroy=false, bool is_reg_ex=false) const
UnitaddFile (Filename)
UnitaddFile (Filename, Filename)
virtual void configure (const Config &)
UnitManagerunitManager ()
bool isNewer (const char *) const
virtual bool isBelow (const char *) const
virtual bool isBelow (Unit *) const
- Public Member Functions inherited from Puma::PathManager
 PathManager (ErrorStream &e)
 PathManager (PathManager &pm)
virtual ~PathManager ()
void glob (char *pattern=(char *) 0)
bool iterate (PathIterator &) const
virtual void addPath (const char *, const char *=(const char *) 0)
bool lookupFile (Filename abs_name, PFMConstIter &iter) const
void setDest (const char *, const char *)
void protect (const char *)
long numPaths () const
long numProts () const
const char * src (long pos) const
const char * src_canon (long pos) const
const char * dest (long pos) const
RegCompprot (long pos) const
bool isProtected (const char *file) const
bool isBelow (const char *file, PFMConstIter &iter) const
virtual void join (PathManager &)
ErrorStreamerr () const
bool getDestinationPath (const char *filename, ostream &out) const

Protected Member Functions

virtual void write (Unit *unit, ofstream &) const
bool checkState (const char *, Unit *) const
void updateState (const char *, Unit *) const
- Protected Member Functions inherited from Puma::PathManager
const char * getDestination (Filename file, ostream *=0) const
virtual void action (PathIterator &)
char * addSeparator (const char *) const
char * addSeparator (const char *s, char *dest) const

Additional Inherited Members

- Public Types inherited from Puma::SaveMode
enum  Mode {
  OVERWRITE = 1,
  RENAME_OLD,
  NEW_SUFFIX
}

Constructor & Destructor Documentation

Puma::Project::Project ( ErrorStream )
virtual Puma::Project::~Project ( )
virtual

Member Function Documentation

Unit* Puma::Project::addFile ( Filename  )

Reimplemented from Puma::PathManager.

Reimplemented in Puma::CProject.

Unit* Puma::Project::addFile ( Filename  ,
Filename   
)

Reimplemented from Puma::PathManager.

bool Puma::Project::checkState ( const char *  ,
Unit  
) const
protected
void Puma::Project::close ( const char *  name = (const char *) 0,
bool  destroy = false,
bool  is_reg_ex = false 
) const
virtual void Puma::Project::configure ( const Config )
virtual

Reimplemented from Puma::PathManager.

bool Puma::Project::isBelow ( const char *  file) const
inlinevirtual

Reimplemented from Puma::PathManager.

virtual bool Puma::Project::isBelow ( Unit ) const
virtual
bool Puma::Project::isNewer ( const char *  ) const
void Puma::Project::print ( const char *  name = (const char *) 0,
ostream &  out = cout,
bool  is_reg_ex = false 
) const
virtual void Puma::Project::save ( Unit ,
bool  = false 
) const
virtual
virtual void Puma::Project::save ( const char *  file = (const char *) 0,
bool  only_modified = false,
bool  is_reg_ex = false 
) const
virtual
void Puma::Project::saveMode ( Mode  = OVERWRITE,
const char *  suffix = (const char *) 0 
)
UnitManager & Puma::Project::unitManager ( )
inline
void Puma::Project::updateState ( const char *  ,
Unit  
) const
protected
virtual void Puma::Project::write ( Unit unit,
ofstream &   
) const
protectedvirtual



Puma Reference Manual. Created on Sun Jul 1 2012.