Ignore:
Timestamp:
Dec 10, 2008, 7:31:39 PM (15 years ago)
Author:
rosiere
Message:

Almost complete design
with Test and test platform

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Common/include/FromString.h

    r81 r88  
    1 #ifndef morpheo_fromstring
    2 #define morpheo_fromstring
     1#ifndef Morpheo_FromString_h
     2#define Morpheo_FromString_h
    33
    44/*
     
    2727  }
    2828
     29  template<>           inline uint64_t fromString<uint64_t>   (const std::string& x)
     30  {
     31    return static_cast<uint64_t>(atoll(x.c_str()));
     32  }
     33
     34  template<>           inline double   fromString<double>     (const std::string& x)
     35  {
     36    return static_cast<double>(atof(x.c_str()));
     37  }
     38
    2939  template<>           inline bool     fromString<bool>       (const std::string& x)
    3040  {
Note: See TracChangeset for help on using the changeset viewer.