NCBI C++ ToolKit
|
Go to the source code of this file.
Go to the SVN repository for this file.
Classes | |
struct | lookup_int |
struct | attribute |
Macros | |
#define | TYPE(s) { #s, s } |
#define | TYPE(s) { #s, s } |
#define | TYPE(s) { #s, s } |
#define | TYPE(s) { #s, s } |
#define | TYPE(s) { #s, s } |
#define | TYPE(s) { #s, s } |
#define | TYPE(s) { #s, s } |
#define | TYPE(s) { #s, s } |
#define | ATTR(s, t) { #s, s, type_##t, NULL } |
#define | ATTR2(s, t, l) { #s, s, type_##t, l } |
#define | SEP " \t\n" |
#define | ATTR_PARAMS const struct attribute *attr, int expected |
#define | TEST_FILE "attributes.in" |
Typedefs | |
typedef int(* | get_attr_t) (const struct attribute *attr, int expected) |
Enumerations | |
enum | test_type_t { type_INTEGER , type_UINTEGER , type_SMALLINT , type_LEN , type_CHARP , type_DESC , type_VOIDP , type_INTEGER , type_SMALLINT , type_LEN , type_CHARP , type_INTEGER , type_UINTEGER , type_SMALLINT , type_LEN , type_CHARP , type_DESC , type_VOIDP , type_INTEGER , type_SMALLINT , type_LEN , type_CHARP } |
Functions | |
static void | fatal (const char *msg,...) |
static int | get_int (const char *s) |
static int | lookup (const char *name, const struct lookup_int *table) |
static const char * | unlookup (int value, const struct lookup_int *table) |
static const struct attribute * | lookup_attr (const char *name) |
static int | get_attr_stmt (const struct attribute *attr, int expected) |
int | main (int argc, char *argv[]) |
Variables | |
static int | g_result = 0 |
static unsigned int | line_num |
static struct lookup_int | concurrency [] |
static struct lookup_int | scrollable [] |
static struct lookup_int | sensitivity [] |
static struct lookup_int | cursor_type [] |
static struct lookup_int | noscan [] |
static struct lookup_int | retrieve_data [] |
static struct lookup_int | simulate_cursor [] |
static struct lookup_int | use_bookmarks [] |
static const struct attribute | attributes [] |
Definition at line 222 of file attributes.c.
#define SEP " \t\n" |
Definition at line 220 of file attributes.c.
#define TEST_FILE "attributes.in" |
#define TYPE | ( | s | ) | { #s, s } |
#define TYPE | ( | s | ) | { #s, s } |
#define TYPE | ( | s | ) | { #s, s } |
#define TYPE | ( | s | ) | { #s, s } |
#define TYPE | ( | s | ) | { #s, s } |
#define TYPE | ( | s | ) | { #s, s } |
#define TYPE | ( | s | ) | { #s, s } |
#define TYPE | ( | s | ) | { #s, s } |
Definition at line 223 of file attributes.c.
enum test_type_t |
Definition at line 146 of file attributes.c.
Definition at line 18 of file attributes.c.
References exit().
Referenced by get_attr_stmt(), get_int(), lookup_attr(), and main().
Definition at line 226 of file attributes.c.
References fatal(), i, line_num, odbc_stmt, si, SQL_ERROR, SQL_SUCCEEDED, SQLGetStmtAttr(), SQLLEN, type_CHARP, type_DESC, type_INTEGER, type_LEN, type_SMALLINT, type_UINTEGER, and type_VOIDP.
Referenced by main().
|
static |
Definition at line 50 of file attributes.c.
References get_int(), util::strcmp(), and table.
Referenced by main().
Definition at line 207 of file attributes.c.
References attributes, fatal(), i, line_num, attribute::name, NULL, util::strcmp(), and TDS_VECTOR_SIZE.
Referenced by main().
Definition at line 271 of file attributes.c.
References buf, cmd, exit(), expected, f(), fatal(), FREETDS_SRCDIR, g_result, get_attr_stmt(), get_int(), i, isspace(), len, line_num, attribute::lookup, lookup(), lookup_attr(), attribute::name, NULL, odbc_check_cursor(), odbc_command, odbc_connect(), odbc_disconnect(), odbc_reset_statement, odbc_stmt, odbc_use_version3, SEP, SQL_C_SLONG, SQL_ERROR, SQL_NTS, SQL_SUCCEEDED, SQLBindCol(), SQLLEN, SQLSetStmtAttr(), util::strcmp(), TDS_INT2PTR, TEST_FILE, attribute::type, type_CHARP, type_DESC, type_INTEGER, type_LEN, type_SMALLINT, type_UINTEGER, type_VOIDP, unlookup(), rapidjson::value, and attribute::value.
|
static |
Definition at line 63 of file attributes.c.
Referenced by main().
Definition at line 63 of file attributes.c.
Referenced by lookup_attr().
|
static |
Definition at line 63 of file attributes.c.
|
static |
Definition at line 63 of file attributes.c.
|
static |
Definition at line 10 of file attributes.c.
Referenced by main().
|
static |
Definition at line 11 of file attributes.c.
Referenced by get_attr_stmt(), get_int(), lookup_attr(), and main().
|
static |
Definition at line 63 of file attributes.c.
|
static |
Definition at line 63 of file attributes.c.
|
static |
Definition at line 63 of file attributes.c.
|
static |
Definition at line 63 of file attributes.c.
|
static |
Definition at line 63 of file attributes.c.
|
static |
Definition at line 63 of file attributes.c.