Corrected compiler error
[rofl0r-motor.git] / src / project / projectname.h
blob94b79cccee4a0d9f388b3a2fbe5a1ad00398a7d0
1 #ifndef __PROJECTNAME_H__
2 #define __PROJECTNAME_H__
4 #include "motorcommon.h"
6 __MOTOR_BEGIN_NAMESPACE
8 /*
10 * This class is intended for holding project names. To be exact,
11 * these are project name itself and a name of template.
15 class projectname {
16 private:
17 string name, templname, version, revision;
18 bool loaded, fmodified;
20 protected:
21 void clear();
22 bool convert4();
24 public:
25 projectname();
26 projectname(const string &pname/*, const string revision*/);
27 ~projectname();
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);
42 virtual void save();
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);
50 public:
51 virtual bool operator == (const projectname &aname) const;
52 virtual bool operator != (const projectname &aname) const;
53 virtual bool operator < (const projectname &aname) const;
56 __MOTOR_END_NAMESPACE
58 #ifdef __MOTOR_USE_NAMESPACES
60 using motor::projectname;
62 #endif
64 #endif