/*
*	Stored procedures database classes for MCSI.
*/

// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//

#pragma once

#define WIN32_LEAN_AND_MEAN		// Exclude rarely-used stuff from Windows headers

#include <windows.h>
#include <assert.h>
#include <iostream>
#include <winsock2.h>
#include <math.h>
#include <process.h>
#include <iostream>
using namespace std;

// ODBC headers
#include <sql.h>
#include <sqlext.h>
#include <odbcss.h>

// Disable expected warnings.
//
#pragma warning (disable: 4312) // disable 64-bit portability warning "conversion from 'int' to 'SQLPOINTER' of greater size"

//return -1 or 1 depending on the sign of n
inline int sign(int n) {if (n >= 0) return (1); else return (-1);}
inline int sign(double n) {if (n >= 0) return (1); else return (-1);}

// Error code sent to the driver when the transaction
// was a deadlock victim, but was successfully retried.
//
#define ERR_DEADLOCK_VICTIM		111111

// TODO: reference additional headers your program requires here
#include "../Utilities/inc/EGenUtilities_stdafx.h"
#include "../inc/win/error.h"
#include "../inc/TxnHarnessStructs.h"
#include "../SUT_CE_Server/SUTStructs.h"
#include "../inc/TxnHarnessSendToMarketInterface.h"
#include "../inc/TxnHarnessDBInterface.h"

#include "TxnHarnessDBConn.h"
#include "TxnHarnessDBBase.h"
#include "BrokerVolumeDB_SP.h"
#include "CheckpointDB_SP.h"
#include "CustomerPositionDB_SP.h"
#include "DataMaintenanceDB_SP.h"
#include "MarketFeedDB_SP.h"
#include "MarketWatchDB_SP.h"
#include "SecurityDetailDB_SP.h"
#include "TradeLookupDB_SP.h"
#include "TradeOrderDB_SP.h"
#include "TradeResultDB_SP.h"
#include "TradeStatusDB_SP.h"
#include "TradeUpdateDB_SP.h"