1 #ifndef __PROJECTNAME_H__
2 #define __PROJECTNAME_H__
4 #include "motorcommon.h"
6 __MOTOR_BEGIN_NAMESPACE
10 * This class is intended for holding project names. To be exact,
11 * these are project name itself and a name of template.
17 string name
, templname
, version
, revision
;
18 bool loaded
, fmodified
;
26 projectname(const string
&pname
/*, const string revision*/);
29 void setmodified(bool exp
= true);
31 virtual string
getname() const;
32 virtual string
getregfname() const;
33 virtual string
getversion() const;
34 virtual string
gettemplatename() const;
35 // virtual const string getrevision() const;
37 virtual void setname(const string
&aname
);
38 virtual void setversion(const string
&aversion
);
39 virtual void settemplate(const string
&atemplate
);
40 // virtual void setrevision(const string arevision);
43 virtual bool load(const string
&aname
/*, const string arevision*/);
44 virtual bool empty() const;
45 virtual bool modified();
47 virtual void populateparselist(pparamslist
*parselist
) const;
48 virtual void absorb(const projectname
&aname
);
51 virtual bool operator == (const projectname
&aname
) const;
52 virtual bool operator != (const projectname
&aname
) const;
53 virtual bool operator < (const projectname
&aname
) const;
58 #ifdef __MOTOR_USE_NAMESPACES
60 using motor::projectname
;