diff options
author | Constantin Michael <constantin@codesynthesis.com> | 2011-09-05 11:54:16 +0200 |
---|---|---|
committer | Constantin Michael <constantin@codesynthesis.com> | 2011-09-05 11:54:16 +0200 |
commit | f024d16b9c78d683baa5d87b6e92b3d79a1f3300 (patch) | |
tree | 0f2c114c2d046a4abe1fe582f34d18b08f8cc2c0 /odb/oracle/details | |
parent | db57fa8ca484a677350299e691f0f6ba721904c8 (diff) |
Add initial development infrastructure
Diffstat (limited to 'odb/oracle/details')
-rw-r--r-- | odb/oracle/details/config.h.in | 14 | ||||
-rw-r--r-- | odb/oracle/details/config.hxx | 20 | ||||
-rw-r--r-- | odb/oracle/details/export.hxx | 41 | ||||
-rw-r--r-- | odb/oracle/details/options.cli | 62 |
4 files changed, 137 insertions, 0 deletions
diff --git a/odb/oracle/details/config.h.in b/odb/oracle/details/config.h.in new file mode 100644 index 0000000..7cbd297 --- /dev/null +++ b/odb/oracle/details/config.h.in @@ -0,0 +1,14 @@ +/* file : odb/oracle/details/config.h.in + * author : Constantin Michael <constantin@codesynthesis.com> + * copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC + * license : ODB NCUEL; see accompanying LICENSE file + */ + +/* This file is automatically processed by configure. */ + +#ifndef ODB_ORACLE_DETAILS_CONFIG_H +#define ODB_ORACLE_DETAILS_CONFIG_H + +#undef LIBODB_ORACLE_STATIC_LIB + +#endif /* ODB_ORACLE_DETAILS_CONFIG_H */ diff --git a/odb/oracle/details/config.hxx b/odb/oracle/details/config.hxx new file mode 100644 index 0000000..bf62c5c --- /dev/null +++ b/odb/oracle/details/config.hxx @@ -0,0 +1,20 @@ +// file : odb/oracle/details/config.hxx +// author : Constantin Michael <constantin@codesynthesis.com> +// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC +// license : ODB NCUEL; see accompanying LICENSE file + +#ifndef ODB_ORACLE_DETAILS_CONFIG_HXX +#define ODB_ORACLE_DETAILS_CONFIG_HXX + +// no pre + +#ifdef _MSC_VER +#elif defined(ODB_COMPILER) +# error libodb-oracle header included in odb-compiled header +#else +# include <odb/oracle/details/config.h> +#endif + +// no post + +#endif // ODB_ORACLE_DETAILS_CONFIG_HXX diff --git a/odb/oracle/details/export.hxx b/odb/oracle/details/export.hxx new file mode 100644 index 0000000..bee88f5 --- /dev/null +++ b/odb/oracle/details/export.hxx @@ -0,0 +1,41 @@ +// file : odb/oracle/details/export.hxx +// author : Constantin Michael <constantin@codesynthesis.com> +// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC +// license : ODB NCUEL; see accompanying LICENSE file + +#ifndef ODB_ORACLE_DETAILS_EXPORT_HXX +#define ODB_ORACLE_DETAILS_EXPORT_HXX + +#include <odb/pre.hxx> + +#include <odb/oracle/details/config.hxx> + +#ifdef LIBODB_ORACLE_STATIC_LIB +# define LIBODB_ORACLE_EXPORT +#else +# ifdef _WIN32 +# ifdef _MSC_VER +# ifdef LIBODB_ORACLE_DYNAMIC_LIB +# define LIBODB_ORACLE_EXPORT __declspec(dllexport) +# else +# define LIBODB_ORACLE_EXPORT __declspec(dllimport) +# endif +# else +# ifdef LIBODB_ORACLE_DYNAMIC_LIB +# ifdef DLL_EXPORT +# define LIBODB_ORACLE_EXPORT __declspec(dllexport) +# else +# define LIBODB_ORACLE_EXPORT +# endif +# else +# define LIBODB_ORACLE_EXPORT __declspec(dllimport) +# endif +# endif +# else +# define LIBODB_ORACLE_EXPORT +# endif +#endif + +#include <odb/post.hxx> + +#endif // ODB_ORACLE_DETAILS_EXPORT_HXX diff --git a/odb/oracle/details/options.cli b/odb/oracle/details/options.cli new file mode 100644 index 0000000..b8a9531 --- /dev/null +++ b/odb/oracle/details/options.cli @@ -0,0 +1,62 @@ +// file : odb/oracle/details/options.cli +// author : Constantin Michael <constantin@codesynthesis.com> +// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC +// license : ODB NCUEL; see accompanying LICENSE file + +include <string>; + +namespace odb +{ + namespace oracle + { + namespace details + { + class options + { + std::string --user + { + "<name>", + "Oracle database user." + }; + + std::string --password + { + "<str>", + "Oracle database password." + }; + + std::string --database + { + "<connect-id>", + "Oracle connect identifier." + }; + + std::string --service + { + "<name>", + "Oracle service name." + }; + + std::string --host + { + "<str>", + "Oracle database host name or address (localhost by default)." + }; + + unsigned int --port + { + "<str>", + "Oracle database port number." + }; + + std::string --options-file + { + "<file>" + "Read additional options from <file>. Each option appearing on a + separate line optionally followed by space and an option value. + Empty lines and lines starting with \cb{#} are ignored." + }; + }; + } + } +} |