/* * tools.h * * Created on: 03.08.2012 * Author: savop */ #ifndef TOOLS_H_ #define TOOLS_H_ #include #include #include #include #include #include #include using namespace std; #define KB(s) (s * 1024) #define MB(s) (s * 1024 * 1024) #define ARRAY_SIZE(a) (sizeof(a)/sizeof(a[0])) #define CRLF "\r\n" #define NL "\n" #define MAX_METADATA_LENGTH_L 1024 #define MAX_METADATA_LENGTH_S 256 #define _unused(x) ((void)x) namespace upnp { typedef std::list StringList; typedef std::vector StringVector; typedef std::map StringMap; typedef std::map IdList; } #include "tools/error.h" #include "tools/ixml.h" #include "tools/net.h" #include "tools/string.h" #include "tools/uuid.h" #endif /* TOOLS_H_ */