summaryrefslogtreecommitdiffstats
path: root/sources/freedom.cpp
blob: fb65cad0664cb517d352d8481b6449ec0e8c8171 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
//-*- mode: c++; indent-tabs-mode: t; coding: utf-8; show-trailing-whitespace: t -*-

// file freedom.cpp

#include "freedom.hpp"

namespace freedom {

  template <> bool freeName<int>(int &a)
  {
    bool bReturnValue = false;
    //
    return bReturnValue;
  }

  template <> bool freeName<double>(double &a)
  {
    bool bReturnValue = false;
    //
    ;
    return bReturnValue;
  }

  bool freeIn(const std::string &sANSI, int32_t &n12)
  {
    int32_t n8;
    double d12;
    bool bReturnValue = false;
    //
    if(n12) {
      n8 = 1;
      freeFix(sANSI, n8);
      std::sscanf(sANSI.substr(0, 80).c_str (), "%lf", &d12);
      n12 = (uint32_t) d12;
      bReturnValue = true;
    }
    return bReturnValue;
  }

  bool freeIn(const std::string &, int32_t &, int32_t &)
  {
    bool bReturnValue = false;
    //
    return bReturnValue;
  }

  bool freeFix(const std::string &, int32_t &)
  {
    bool bReturnValue = false;
    //
    return bReturnValue;
  }

  bool freeOne(double &d)
  {
    bool bReturnValue = false;
    //
    //bReturnValue = freeFLD(sANSI, d);
    return bReturnValue;
  }

}

// end of file freedom.cpp