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

Variable.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 __VARIABLE_H
00005 #define __VARIABLE_H
00006 
00007 #include <string>
00008 
00009 namespace dolfin {
00010   
00011   class Variable {
00012   public:
00013     
00014     Variable();
00015     Variable(const std::string name, const std::string label);
00016     Variable(const Variable& variable);
00017     
00018     void rename(const std::string name, const std::string label);
00019     
00020     const std::string& name()  const;
00021     const std::string& label() const;
00022 
00023     void operator++();
00024     int number() const;
00025     
00026   private:
00027     
00028     std::string _name;
00029     std::string _label;
00030 
00031     // Number of times variable has been saved to file
00032     int _number;
00033     
00034   };
00035   
00036 }
00037 
00038 #endif


Documentation automatically generated with Doxygen on 10 Sep 2004.