00001
00002
00003
00004
00005
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