MAK Data Logger API Documentation for HLA
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vlDatabase
accessCommandFactory.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
******************************************************************************/
5
8
9
#pragma once
10
11
#include "
databaseCommandFactory.h
"
12
#include "
databaseColumn.h
"
13
14
#include <map>
15
16
class
DtString
;
17
class
DT_DLL_VLDB
DtAccessCommandFactory
:
public
DtDatabaseCommandFactory
18
{
19
public
:
20
DtAccessCommandFactory
();
21
virtual
~
DtAccessCommandFactory
();
22
23
// Request the creation of a database (currently, you must be connected to
24
// a master database to perform this operation)
25
virtual
DtString
createDatabase
(
const
DtString
& databaseName );
26
27
// Request the creation of a database, if it exists (currently, you must be
28
// connected to a master database to perform this operation)
29
virtual
DtString
deleteDatabase
(
const
DtString
& dbName );
30
32
virtual
DtString
createTable
(
const
DtDatabaseTable
& table);
33
35
virtual
DtString
deleteTable
(
const
DtDatabaseTable
& table);
36
38
virtual
void
insertTable
( std::vector<DtString>& commands,
const
DtDatabaseTable
& table);
39
40
virtual
DtString
updateTable
(
const
DtDatabaseTable
& table,
41
const
std::vector<DtString>& columnsToSet,
42
const
DtString
& whereCondition);
43
45
virtual
DtString
createConditionString
(
const
DtDatabaseColumn
& column,
46
const
DtString
& columnValue,
ConditionOperator
anOperator);
47
49
virtual
DtString
combineConditionStrings
(
const
DtString
& conditionOne,
50
const
DtString
& conditionTwo,
MergeOperator
anOperator );
51
52
protected
:
53
54
static
unsigned
int
theMaximumColumnSize
;
55
static
unsigned
int
theMaximumNotesSize
;
56
58
virtual
const
DtString
& translateName(
const
DtString
&);
59
61
virtual
int
validDisplaySize(
int
size);
62
63
virtual
DtString
createArgList(
const
DtDatabaseTable
& table);
64
virtual
DtString
createColumnList(
const
DtDatabaseTable
& table);
65
virtual
DtString
createColumnRep(
const
DtDatabaseColumn
& column);
66
virtual
DtString
dataTypeToSqlString(
const
DtDatabaseColumn
& column);
67
typedef
std::map<DtString,DtString>
TranslationMap
;
68
TranslationMap
myTranslationMap
;
69
};
Document ID: Generated on Thu Apr 7 20:50:59 EDT 2016 from SVN revision 163818
Copyright © 2005-2012 VT MÄK. All Rights Reserved (
www.mak.com
)