Commit 7879632c authored by Olivier Bertrand's avatar Olivier Bertrand

- Change Subclass name from TYPE to T

modified:
  storage/connect/value.h
parent 7132c590
...@@ -183,16 +183,16 @@ class DllExport TYPVAL : public VALUE { ...@@ -183,16 +183,16 @@ class DllExport TYPVAL : public VALUE {
TYPVAL(void) : VALUE(TYPE_ERROR) {} TYPVAL(void) : VALUE(TYPE_ERROR) {}
// Specialized functions // Specialized functions
template <class TYPE> template <class T>
TYPE GetTypedValue(PVAL vp, TYPE t) {return vp->GetIntValue();} T GetTypedValue(PVAL vp, T t) {return vp->GetIntValue();}
PSZ GetTypedValue(PVAL vp, PSZ t) PSZ GetTypedValue(PVAL vp, PSZ t)
{char buf[32]; return strncpy(Tval, vp->GetCharString(buf), Len);} {char buf[32]; return strncpy(Tval, vp->GetCharString(buf), Len);}
short GetTypedValue(PVAL vp, short t) {return vp->GetShortValue();} short GetTypedValue(PVAL vp, short t) {return vp->GetShortValue();}
longlong GetTypedValue(PVAL vp, longlong t) {return vp->GetBigintValue();} longlong GetTypedValue(PVAL vp, longlong t) {return vp->GetBigintValue();}
double GetTypedValue(PVAL vp, double t) {return vp->GetFloatValue();} double GetTypedValue(PVAL vp, double t) {return vp->GetFloatValue();}
template <class TYPE> template <class T>
TYPE GetTypedValue(PVBLK blk, int n, TYPE t) T GetTypedValue(PVBLK blk, int n, T t)
{return blk->GetIntValue(n);} {return blk->GetIntValue(n);}
PSZ GetTypedValue(PVBLK blk, int n, PSZ t) PSZ GetTypedValue(PVBLK blk, int n, PSZ t)
{return strncpy(Tval, blk->GetCharValue(n), Len);} {return strncpy(Tval, blk->GetCharValue(n), Len);}
...@@ -203,8 +203,8 @@ class DllExport TYPVAL : public VALUE { ...@@ -203,8 +203,8 @@ class DllExport TYPVAL : public VALUE {
double GetTypedValue(PVBLK blk, int n, double t) double GetTypedValue(PVBLK blk, int n, double t)
{return blk->GetFloatValue(n);} {return blk->GetFloatValue(n);}
template <class TYPE> template <class T>
TYPE GetTypedValue(PSZ s, TYPE n) {return atol(s);} T GetTypedValue(PSZ s, T n) {return atol(s);}
PSZ GetTypedValue(PSZ s, PSZ n) {return strncpy(Tval, s, Len);} PSZ GetTypedValue(PSZ s, PSZ n) {return strncpy(Tval, s, Len);}
short GetTypedValue(PSZ s, short n) {return atoi(s);} short GetTypedValue(PSZ s, short n) {return atoi(s);}
longlong GetTypedValue(PSZ s, longlong n) {return atoll(s);} longlong GetTypedValue(PSZ s, longlong n) {return atoll(s);}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment