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
raj@439
     1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
raj@439
     2
raj@439
     3
#include "type-name.h"
raj@439
     4
raj@439
     5
namespace ns3 {
raj@439
     6
raj@439
     7
#define DEF_TYPE(x)				\
raj@439
     8
  template <>					\
raj@439
     9
  std::string TypeNameGet<x> (void)		\
raj@439
    10
  {						\
raj@439
    11
    return #x;					\
raj@439
    12
  }
raj@439
    13
  
raj@439
    14
DEF_TYPE (uint8_t);
raj@439
    15
DEF_TYPE (uint16_t);
raj@439
    16
DEF_TYPE (uint32_t);
raj@439
    17
DEF_TYPE (uint64_t);
raj@439
    18
DEF_TYPE (int8_t);
raj@439
    19
DEF_TYPE (int16_t);
raj@439
    20
DEF_TYPE (int32_t);
raj@439
    21
DEF_TYPE (int64_t);
mathieu@959
    22
DEF_TYPE (float);
mathieu@959
    23
DEF_TYPE (double);
raj@439
    24
raj@439
    25
raj@439
    26
}//namespace ns3