ffead.server.doc
Class.h
1 /*
2  Copyright 2009-2012, Sumeet Chhetri
3 
4  Licensed under the Apache License, Version 2.0 (the "License");
5  you may not use this file except in compliance with the License.
6  You may obtain a copy of the License at
7 
8  http://www.apache.org/licenses/LICENSE-2.0
9 
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15 */
16 /*
17  * Class.h
18  *
19  * Created on: Nov 20, 2009
20  * Author: sumeet
21  */
22 
23 #ifndef CLASS_H_
24 #define CLASS_H_
25 #include "PropFileReader.h"
26 #include "Method.h"
27 
28 typedef map<string,Method> Meth;
29 typedef map<string,Field> Fld;
30 
31 class Class {
32  string name;
33  string access;
34  string type;
35  string package;
36  string base;
37  string interfaces;
38  string lang;
39  Meth methods;
40  Fld fields;
41  void addMethod(Method);
42  void addField(Field);
43 public:
44  Class();
45  virtual ~Class();
46  void generatee(string);
47  string getName() const;
48  void setName(string);
49  string getAccess() const;
50  void setAccess(string);
51  string getType() const;
52  void setType(string);
53  string getPackage() const;
54  void setPackage(string);
55  string getBase() const;
56  void setBase(string);
57  string getInterfaces() const;
58  void setInterfaces(string);
59  string getLang() const;
60  void setLang(string);
61  //Method getMethod(string,string);
62  Field getField(string);
63 };
64 
65 #endif /* CLASS_H_ */