Changeset 13896
- Timestamp:
- 05/25/12 23:06:05 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/Dim.h
r11484 r13896 26 26 { 27 27 return DimClient::sendCommand(command.c_str(), NULL, 0); 28 } 29 inline void SendCommandNB(const std::string &command) 30 { 31 DimClient::sendCommandNB(command.c_str(), NULL, 0); 28 32 } 29 33 … … 66 70 return DimClient::sendCommand(command.c_str(), const_cast<void*>(d), s); 67 71 } 72 73 // ------------------------------------------------------------------------- 74 75 template<typename T> 76 inline void SendCommandNB(const std::string &command, const T &t) 77 { 78 DimClient::sendCommandNB(command.c_str(), const_cast<T*>(&t), sizeof(t)); 79 } 80 81 template<> 82 inline void SendCommandNB(const std::string &command, const std::string &t) 83 { 84 DimClient::sendCommandNB(command.c_str(), const_cast<char*>(t.c_str()), t.length()+1); 85 } 86 87 inline void SendCommandNB(const std::string &command, const void *d, size_t s) 88 { 89 DimClient::sendCommandNB(command.c_str(), const_cast<void*>(d), s); 90 } 68 91 } 69 92
Note:
See TracChangeset
for help on using the changeset viewer.