Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

convert.h File Reference

Declares various string-to-integer type conversion templates. More...

#include "platform.h"
#include "defs.h"
#include <stdlib.h>

Include dependency graph for convert.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  mysqlpp


Detailed Description

Declares various string-to-integer type conversion templates.

These templates are the mechanism used within mysqlpp::ColData_Tmpl for its string-to-something conversions.


Define Documentation

#define mysql__convert TYPE,
FUNC   
 

Value:

template <> \
  class mysql_convert<TYPE> {\
  private:\
    TYPE num;\
  public:\
    mysql_convert(const char* str, const char *& end) { \
      num = FUNC(str, const_cast<char **>(&end),10);}\
    operator TYPE () {return num;}\
  };\

#define mysql__convert TYPE,
FUNC   
 

Value:

template <> \
  class mysql_convert<TYPE> {\
  private:\
    TYPE num;\
  public:\
    mysql_convert(const char* str, const char *& end) { \
      num = FUNC(str, const_cast<char **>(&end));}\
    operator TYPE () {return num;}\
  };\


Generated on Thu May 5 05:30:51 2005 for MySQL++ by doxygen1.2.18