|
Aegis
4.25.D505
|
00001 // 00002 // aegis - project change supervisor 00003 // Copyright (C) 2008 Peter Miller 00004 // 00005 // This program is free software; you can redistribute it and/or modify 00006 // it under the terms of the GNU General Public License as published by 00007 // the Free Software Foundation; either version 3 of the License, or (at 00008 // your option) any later version. 00009 // 00010 // This program is distributed in the hope that it will be useful, 00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 // General Public License for more details. 00014 // 00015 // You should have received a copy of the GNU General Public License along 00016 // with this program. If not, see <http://www.gnu.org/licenses/>. 00017 // 00018 00019 #ifndef LIBAEGIS_META_CONTEXT_INTROSPECTOR_H 00020 #define LIBAEGIS_META_CONTEXT_INTROSPECTOR_H 00021 00022 #include <libaegis/introspector.h> 00023 #include <libaegis/introspector/vector.h> 00024 #include <libaegis/meta_context.h> 00025 00030 class meta_context_introspector: 00031 public meta_context 00032 { 00033 public: 00037 virtual ~meta_context_introspector(); 00038 00042 meta_context_introspector(); 00043 00055 void parse_file(const nstring &filename, const introspector::pointer &ip); 00056 00057 protected: 00058 // See base class for documentation. 00059 void integer(long n); 00060 00061 // See base class for documentation. 00062 void real(double n); 00063 00064 // See base class for documentation. 00065 void string(const nstring &s); 00066 00067 // See base class for documentation. 00068 void enumeration(const nstring &s); 00069 00070 // See base class for documentation. 00071 void list(); 00072 00073 // See base class for documentation. 00074 void list_end(); 00075 00076 // See base class for documentation. 00077 void field(const nstring &name); 00078 00079 // See base class for documentation. 00080 void field_end(); 00081 00082 // See base class for documentation. 00083 void end(); 00084 00085 private: 00090 introspector_vector stack; 00091 00095 meta_context_introspector(const meta_context_introspector &); 00096 00100 meta_context_introspector &operator=(const meta_context_introspector &); 00101 }; 00102 00103 #endif // LIBAEGIS_META_CONTEXT_INTROSPECTOR_H
1.7.6.1