Changeset 16777 for trunk/FACT++/src
- Timestamp:
- 06/08/13 12:55:39 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/Dim.h
r13896 r16777 5 5 6 6 #include <string> 7 #include <vector> 7 8 8 9 #include "dic.hxx" … … 66 67 } 67 68 69 template<typename T> 70 inline bool SendCommand(const std::string &command, const std::vector<T> &v) 71 { 72 return DimClient::sendCommand(command.c_str(), const_cast<char*>(v.data()), v.size()*sizeof(T)); 73 } 74 68 75 inline bool SendCommand(const std::string &command, const void *d, size_t s) 69 76 { … … 85 92 } 86 93 94 template<typename T> 95 inline void SendCommandNB(const std::string &command, const std::vector<T> &v) 96 { 97 DimClient::sendCommandNB(command.c_str(), const_cast<T*>(v.data()), v.size()*sizeof(T)); 98 } 99 87 100 inline void SendCommandNB(const std::string &command, const void *d, size_t s) 88 101 {
Note:
See TracChangeset
for help on using the changeset viewer.