|
quantities/onchipcommunication/Interface.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 INTERFACE_H_ 00009 #define INTERFACE_H_ 00010 00011 00012 #include <iostream> 00013 #include <string> 00014 #include <map> 00015 #include "PhysicalInterface.h" 00016 00017 namespace cosi { 00018 00019 namespace quantity { 00020 00021 namespace onchipcommunication { 00022 00023 class Interface : public PhysicalInterface { 00024 public: 00025 Interface(); 00026 virtual ~Interface(); 00027 enum tDirection {IN,OUT,INOUT}; 00028 tDirection GetDirection() const; 00029 void SetDirection(tDirection pDir); 00030 std::string GetName() const; 00031 void SetName(std::string pName); 00032 bool operator==(const Interface &pP) const; 00033 bool operator!=(const Interface &pP) const; 00034 friend std::ostream& operator<<(std::ostream &pOs, const Interface &pP); 00035 private: 00036 std::string mName; 00037 tDirection mDir; 00038 }; 00039 00040 } 00041 00042 } 00043 00044 } 00045 00046 #endif /*INTERFACE_H_*/ Generated on Sun Sep 7 18:37:43 2008 for COSI by 1.5.4 |