00001 00026 #ifndef LOGICUPDATE_H_ 00027 #define LOGICUPDATE_H_ 00028 00029 #include <string> 00030 #include <sstream> 00031 00032 #include "logicDefs.h" 00033 00037 struct LogicUpdate { 00038 00040 std::string netName; 00041 00043 LogicVal netVal; 00044 00051 LogicUpdate(std::string netName, LogicVal netVal) 00052 : netName (netName), netVal (netVal) {} 00053 00054 LogicUpdate (): netName (""), netVal('0') {} 00055 00059 const std::string toString() const { 00060 std::ostringstream ss; 00061 ss << "netName = " << netName << " netVal = " << netVal; 00062 return ss.str (); 00063 } 00064 00070 const std::string getNetName() const { 00071 return netName; 00072 } 00073 00079 void setNetName(const std::string& netName) { 00080 this->netName = netName; 00081 } 00082 00088 const LogicVal getNetVal() const { 00089 return netVal; 00090 } 00091 00097 void setNetVal(const LogicVal& netVal) { 00098 this->netVal = netVal; 00099 } 00100 }; 00101 #endif /* LOGICUPDATE_H_ */