Utils: Formating helpers (senf::format::eng, senf::format::dumpint)
[senf.git] / senf / Utils / Format.cci
similarity index 72%
rename from senf/Packets/DumpFormat.ih
rename to senf/Utils/Format.cci
index 302cb8d..ed1ad85 100644 (file)
 // 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 /** \file
-    \brief DumpFormat internal header */
+    \brief Format inline non-template implementation */
 
-#ifndef IH_SENF_senf_Packets_DumpFormat_
-#define IH_SENF_senf_Packets_DumpFormat_ 1
+#include "Format.ih"
 
 // Custom includes
 
-///////////////////////////////ih.p////////////////////////////////////////
+#define prefix_ inline
+///////////////////////////////cci.p///////////////////////////////////////
 
-namespace senf {
-namespace detail {
+prefix_ senf::format::eng::eng(double v_, double d_)
+    : v (v_), d (d_)
+{}
 
-    std::string prettySignedNumber(long long v, unsigned bits);
-    std::string prettyUnsignedNumber(unsigned long long v, unsigned bits, int sign=0);
-
-}}
-
-///////////////////////////////ih.e////////////////////////////////////////
-#endif
+///////////////////////////////cci.e///////////////////////////////////////
+#undef prefix_
 
 \f
 // Local Variables: