35 static const int CONNECTMETHODS = 2;
36 static const char *ConnectMethodList =
"file, or none";
37 static const char *ConnectMethodNames[CONNECTMETHODS] = {
"file",
"none" };
38 static bool ConnectMethodSupported[CONNECTMETHODS] = {
true,
true};
80 return CONNECTMETHODS;
88 if (
n >= 0 &&
n < CONNECTMETHODS)
89 return ConnectMethodNames[
n];
99 return ConnectMethodList;
107 return (
known(cm) ? ConnectMethodSupported[cm] :
false);
123 return (cm >= 0 && cm < CONNECTMETHODS);
154 }
else if (cm == 1) {
160 ERRORMSG(
"DataConnectCreator: unknown connection method." <<
endl);
195 for (
int i=0; i < CONNECTMETHODS; ++i) {
Inform & endl(Inform &inf)
static int getNumMethods()
static DataConnect * DefaultConnection
static void setDefaultNodes(int)
static bool supported(int)
static const char * getAllMethodNames()
static DataConnect * create()
static bool setDefaultMethod(int)
static int getDefaultNodes()
static int libindex(const char *)
static const char * getMethodName(int)