Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

ParameterList.h

Go to the documentation of this file.
00001 // Copyright (C) 2002 Johan Hoffman and Anders Logg.
00002 // Licensed under the GNU GPL Version 2.
00003 
00004 #ifndef __PARAMETER_LIST_H
00005 #define __PARAMETER_LIST_H
00006 
00007 #include <stdarg.h>
00008 
00009 #include <dolfin/List.h>
00010 #include <dolfin/Parameter.h>
00011 
00012 namespace dolfin {
00013   
00014   class ParameterList{
00015   public:
00016 
00017     ParameterList();
00018          
00020     void add(Parameter::Type type, const char *identifier, ...);
00021     void add_aptr(Parameter::Type type, const char *identifier, va_list aptr);
00022     
00024     void set(const char *identifier, ...);
00025     void set_aptr(const char *identifier, va_list aptr);
00026     
00028     Parameter get(const char *identifier);
00029     
00031     bool changed(const char *identifier);
00032     
00034     bool empty();
00035 
00037     friend class XMLFile;
00038     
00039   private:
00040     
00041     Parameter* find(const char *identifier);
00042     
00043     List<Parameter> list;
00044     
00045   };
00046   
00047 }
00048 
00049 #endif


Documentation automatically generated with Doxygen on 10 Sep 2004.