8 #define SOCI_ORACLE_SOURCE 19 #pragma warning(disable:4355) 28 std::string & serviceName, std::string & userName,
29 std::string & password,
int & mode,
bool & decimals_as_strings)
39 bool in_value =
false;
40 for (std::string::const_iterator i = connectString.begin(),
41 end = connectString.end(); i != end; ++i)
43 if (*i ==
'=' && in_value ==
false)
52 if (*i ==
' ' || *i ==
'\t')
64 decimals_as_strings =
false;
66 std::istringstream iss(tmp);
67 std::string key, value;
68 while (iss >> key >> value)
74 else if (key ==
"user")
78 else if (key ==
"password")
82 else if (key ==
"mode")
84 if (value ==
"sysdba")
88 else if (value ==
"sysoper")
92 else if (value ==
"default")
101 else if (key ==
"decimals_as_strings")
103 decimals_as_strings = value ==
"1" || value ==
"Y" || value ==
"y";
112 std::string serviceName, userName, password;
114 bool decimals_as_strings;
117 mode, decimals_as_strings);
120 mode, decimals_as_strings);
SOCI_ORACLE_DECL oracle_backend_factory const oracle
SOCI_ORACLE_DECL backend_factory const * factory_oracle()
std::string const & get_connect_string() const
SOCI_DECL void register_backend(std::string const &name, std::string const &shared_object=std::string())
virtual oracle_session_backend * make_session(connection_parameters const ¶meters) const
void chop_connect_string(std::string const &connectString, std::string &serviceName, std::string &userName, std::string &password, int &mode, bool &decimals_as_strings)
std::string connectString
SOCI_ORACLE_DECL void register_factory_oracle()
std::vector< ISM::CombinatorialTrainerParameters > parameters