|
quantities/Type.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 TYPE_H_ 00009 #define TYPE_H_ 00010 00011 #include <iostream> 00012 #include "core/Quantity.h" 00013 #include <string> 00014 00015 namespace cosi { 00016 00017 class Type : public StringQuantity { 00018 public: 00019 Type(); 00020 00021 Type(std::string pType); 00022 00023 Type Get() const ; 00024 void Set(Type pType); 00025 00026 bool operator==(Type pType); 00027 00028 void operator <<(Type pValue); 00029 00030 const Type operator+(const Type &pT) const ; 00031 00032 const Type operator-(const Type &pT) const ; 00033 00034 static std::string sQuantityName ; 00035 00036 friend std::ostream& operator <<(std::ostream &os, const Type &obj); 00037 00038 }; 00039 00040 } 00041 00042 #endif /*TYPE_H_*/ Generated on Sun Sep 7 18:37:43 2008 for COSI by 1.5.4 |