|
quantities/Name.hGo to the documentation of this file.00001 //============================================================================ 00002 // Author : Alessandro Pinto <apinto@eecs.berkeley.edu> 00003 // University of California, Berkeley 00004 // 545 Cory Hall, Berkeley, CA 94720 00005 // Copyright : See COPYING file that comes with this distribution 00006 //============================================================================ 00007 00008 #ifndef NAME_H_ 00009 #define NAME_H_ 00010 00011 #include <iostream> 00012 #include "../core/Quantity.h" 00013 #include <string> 00014 00015 namespace cosi { 00016 00017 class Name : public StringQuantity { 00018 public: 00019 00020 Name(); 00021 00022 Name(std::string pName); 00023 00024 Name Get() const; 00025 00026 void Set(Name pName); 00027 00028 bool operator==(Name pName); 00029 00030 bool operator<(const Name &pN) const ; 00031 00032 00033 const Name operator+(const Name &pT) const; 00034 00035 const Name operator-(const Name &pT) const; 00036 00037 friend std::ostream& operator <<(std::ostream &pOS, const Name &pN); 00038 00039 static std::string sQuantityName; 00040 00041 }; 00042 00043 } 00044 00045 #endif /*NAME_H_*/ Generated on Sun Sep 7 18:37:43 2008 for COSI by 1.5.4 |