- Timestamp:
- May 30, 2006, 9:54:28 PM (18 years ago)
- Location:
- branches/gui/src/lib
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/gui/gl_gui/signal_connector.cc
r7992 r7994 62 62 } 63 63 64 /** 65 * @brief assignes a SignalConnector to the current one 66 * @param signalConnector the SignalConnector to assign to this one 67 * @return A Reference to this SignalConnector. 68 */ 64 69 SignalConnector& SignalConnector::operator=(const SignalConnector& signalConnector) 65 70 { … … 67 72 this->object = signalConnector.object; 68 73 this->exec = (signalConnector.exec == NULL) ? NULL : signalConnector.exec->clone(); 74 } 75 76 77 /** 78 * @brief compares two SignalConnectors. 79 * @param signalConnector the SignalConnector to compare against this one. 80 * @return true if the Connectors are the same. 81 */ 82 bool SignalConnector::operator==(const SignalConnector& signalConnector) const 83 { 84 return (this->object == signalConnector.object /* && this->exec == signalConnector.exec */ ); 69 85 } 70 86 -
branches/gui/src/lib/gui/gl_gui/signal_connector.h
r7992 r7994 158 158 159 159 SignalConnector& operator=(const SignalConnector& signalConnector); 160 bool operator==(const SignalConnector& signalConnector) ;160 bool operator==(const SignalConnector& signalConnector) const; 161 161 162 162 void operator()() const; -
branches/gui/src/lib/util/executor/executor.h
r7985 r7994 42 42 43 43 virtual Executor* clone () const = 0; 44 // virtual bool operator==(const Executor* executor) const = 0; 44 45 45 46 // SETTING up the EXECUTOR … … 51 52 52 53 // EXECUTE 54 /** executes a Command. @param objec the Object, @param count how many values, @param values the Values */ 53 55 virtual void operator()(BaseObject* object, unsigned int count, const MultiType* values) const = 0; 54 55 56 /** executes a Command @param object the object to apply this to @param parameters the parameters the command takes */ 56 57 virtual void operator()(BaseObject* object, const SubString& sub = SubString()) const = 0; -
branches/gui/src/lib/util/executor/executor_functional.cc
r7985 r7994 40 40 template<> float fromMulti<float>(const MultiType& multi) { return multi.getFloat(); }; 41 41 template<> char fromMulti<char>(const MultiType& multi) { return multi.getChar(); }; 42 template<> const std::string& fromMulti<const std::string&>(const MultiType& multi) { return multi.get String(); };42 template<> const std::string& fromMulti<const std::string&>(const MultiType& multi) { return multi.getConstString(); }; 43 43 44 44 -
branches/gui/src/lib/util/executor/executor_functional.h
r7990 r7994 122 122 }; 123 123 124 /** executes a Command. @param objec the Object, @param count how many values, @param values the Values */ 124 125 virtual void operator()(BaseObject* object, unsigned int count, const MultiType* values) const 125 126 { … … 161 162 }; 162 163 164 /** executes a Command. @param objec the Object, @param count how many values, @param values the Values */ 163 165 virtual void operator()(BaseObject* object, unsigned int count, const MultiType* values) const 164 166 { … … 223 225 }; 224 226 227 /** executes a Command. @param objec the Object, @param count how many values, @param values the Values */ 225 228 virtual void operator()(BaseObject* object, unsigned int count, const MultiType* values) const 226 229 { … … 276 279 }; 277 280 281 /** executes a Command. @param objec the Object, @param count how many values, @param values the Values */ 278 282 virtual void operator()(BaseObject* object, unsigned int count, const MultiType* values) const 279 283 { … … 332 336 }; 333 337 338 /** executes a Command. @param objec the Object, @param count how many values, @param values the Values */ 334 339 virtual void operator()(BaseObject* object, unsigned int count, const MultiType* values) const 335 340 { … … 390 395 }; 391 396 397 /** executes a Command. @param objec the Object, @param count how many values, @param values the Values */ 392 398 virtual void operator()(BaseObject* object, unsigned int count, const MultiType* values) const 393 399 { -
branches/gui/src/lib/util/multi_type.cc
r7401 r7994 381 381 } 382 382 383 const std::string& MultiType::getConstString() const 384 { 385 MultiType::constString = this->getString(); 386 return MultiType::constString; 387 } 388 389 383 390 /** 384 391 * @returns a formated c-string of the held value … … 490 497 491 498 499 std::string MultiType::constString = ""; 492 500 const std::string MultiType::typeNames[] = 493 501 { -
branches/gui/src/lib/util/multi_type.h
r7401 r7994 87 87 const char* getCString(); 88 88 std::string getString() const; 89 const std::string& getConstString() const; 89 90 90 91 void reset(); … … 107 108 MT_Type type; //!< The Type stored in this MultiType 108 109 110 111 static std::string constString; //!< A String for returning Constant strings. 112 109 113 static const std::string typeNames[]; //!< List of TypeNames for conversion. 110 114 };
Note: See TracChangeset
for help on using the changeset viewer.