00001 /* $Id:contractors.h $ */ 00002 /* 00003 Copyright (C) 2007 by Jurjen Stellingwerff <jurjen@stwerff.xs4all.nl> 00004 Part of the Moros Project http://moros.sourceforge.net/ 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License version 3. 00008 This program is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY. 00010 00011 See the COPYING file for more details. 00012 */ 00013 00014 #ifndef __CONTRACTORS_H 00015 #define __CONTRACTORS_H 00016 00017 #include <string> 00018 #include <map> 00019 #include <list> 00020 using namespace std; 00021 00022 00023 00024 class contractors { 00025 class person *person; 00026 int type; 00027 public: 00028 contractors(); 00029 00030 // Field : person 00031 class person& getPerson() const; 00032 void setPerson(class person &v); 00033 00034 // Field : type 00035 enum type_enum{type_originator,type_blesser,type_actor}; 00036 const int getType() const; 00037 const string showType() const; 00038 void setType(const int v); 00039 void setType(const string v); 00040 00041 void save(class channel &ch); 00042 void load(class channel &ch); 00043 void xml(ofstream &f, int l=0, int r=0); 00044 }; 00045 00046 #endif // __CONTRACTORS_H