source: trunk/FACT++/src/Dim.h@ 10652

Last change on this file since 10652 was 10645, checked in by tbretz, 14 years ago
New namespace to host some common Dim helper functions.
File size: 493 bytes
Line 
1#ifndef FACT_Dim
2#define FACT_Dim
3
4#include <string>
5
6#include "dic.hxx"
7
8namespace Dim
9{
10 inline bool SendCommand(const std::string &command)
11 {
12 return DimClient::sendCommand(command.c_str(), NULL, 0);
13 }
14
15 template<typename T>
16 inline bool SendCommand(const std::string &command, const T &t)
17 {
18 return DimClient::sendCommand(command.c_str(), (void*)&t, sizeof(t));
19 }
20
21 std::string GetLocalIp();
22
23 void Setup(const std::string &dns);
24}
25
26#endif
Note: See TracBrowser for help on using the repository browser.