Software and Services, Portable Libraries  2019.Mar.01
A library for managing digital certificates
SqlType.hpp
1 //
2 // (C) Copyright 2001-2016 Software and Services LLC, All Rights Reserved.
3 //
4 // NOTICE:
5 //
6 // THIS SOURCE CODE BELONGS TO SOFTWARE AND SERVICES LIMITED LIABILITY
7 // CORPORATION, AN IDAHO CORPORATION. THIS CODE IS CONSIDERED A
8 // TRADE SECRET AND IS NOT TO BE DIVULGED OR USED BY PARTIES WHO HAVE
9 // NOT RECEIVED WRITTEN AUTHORIZATION FROM THE OWNER.
10 //
11 // THIS SOURCE CODE IS UNPUBLISHED WORK FULLY PROTECTED BY THE UNITED
12 // STATES COPYRIGHT LAWS AND IS CONSIDERED A TRADE SECRET BELONGING
13 // TO THE COPYRIGHT HOLDER.
14 //
15 // THIS SOFTWARE AND MANUAL ARE BOTH PROTECTED BY UNITED STATES
16 // COPYRIGHT LAW (TITLE 17 UNITED STATES CODE). UNAUTHORIZED REPRODUCTION
17 // AND/OR SALE MAY RESULT IN IMPRISONMENT OF UP TO ONE YEAR AND FINES
18 // OF UP TO $100,000 (17 USC 506). COPYRIGHT INFRINGERS MAY ALSO
19 // BE SUBJECT TO CIVIL LIABILITY.
20 //
21 // ALL OF THIS CODE IS ORIGINAL WORK BY THE COPYRIGHT HOLDER.
22 //
23 
24 #ifndef _DOUGLAS_MARK_ROYER_SQL_TOOLS_SQLTYPE_HPP_
25 #define _DOUGLAS_MARK_ROYER_SQL_TOOLS_SQLTYPE_HPP_
26 
27 #include <map>
28 #include <list>
29 #include <vector>
30 
31 #ifdef BUILDING_LIBRARY_SQL
32 #include "Types.hpp"
33 #include "SQLENUM.hpp"
34 #else
35 #include <SaS/Sql/Types.hpp>
36 #include <SaS/Sql/SQLENUM.hpp>
37 #endif
38 
39 namespace SoftwareAndServices
40 {
41  namespace Library
42  {
43  namespace Database
44  {
50  : public SqlTable
51  {
52 
53  public:
54 
58  SqlTypeTable();
59 
63  virtual ~SqlTypeTable();
64 
68  static void CreateCpp();
69 
70  private:
71 
76  static std::map<const char *,SqlTypeTable*> _AllTypes;
77 
78  };
79 
87  const char * TypeToString(SQL::SqlDataType_e DbType);
88 
90  {
91  public:
92 
93  SqlTypeRange();
94 
95  virtual ~SqlTypeRange();
96  };
97 
98  }
99  }
100 }
101 #endif //_DOUGLAS_MARK_ROYER_SQL_TOOLS_SQLTYPE_HPP_
102 
SqlTypeTable()
SqlTypeTable - Default Constructor.
virtual ~SqlTypeTable()
SqlTypeTable - Destructor.
static void CreateCpp()
Create the C++ code for all SqlFunction objects.
Copyright Douglas Mark Royer DouglasRoyer@gmail.com.
Definition: Base.hpp:98
SqlDataType_e
Generic names for data types.
Definition: SQL.hpp:197