src/core/type-name.cc
author Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
Sat, 04 Jul 2009 08:15:48 +0200
changeset 4654 2eaebe77d66b
parent 439 fed13fb45eef
child 1642 8d5707931bb4
permissions -rw-r--r--
Added tag ns-3.5 for changeset c975274c9707
     1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
     2 
     3 #include "type-name.h"
     4 
     5 namespace ns3 {
     6 
     7 #define DEF_TYPE(x)				\
     8   template <>					\
     9   std::string TypeNameGet<x> (void)		\
    10   {						\
    11     return #x;					\
    12   }
    13   
    14 DEF_TYPE (uint8_t);
    15 DEF_TYPE (uint16_t);
    16 DEF_TYPE (uint32_t);
    17 DEF_TYPE (uint64_t);
    18 DEF_TYPE (int8_t);
    19 DEF_TYPE (int16_t);
    20 DEF_TYPE (int32_t);
    21 DEF_TYPE (int64_t);
    22 DEF_TYPE (float);
    23 DEF_TYPE (double);
    24 
    25 
    26 }//namespace ns3