Added .cpp and .h files under the sql/src subdirectory

git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@469 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
dsandersoremutah
2006-05-26 23:17:49 +00:00
parent dc6cd8b9cb
commit 021073907f
82 changed files with 97516 additions and 0 deletions

114
sql/src/flog.h Normal file
View File

@@ -0,0 +1,114 @@
//------------------------------------------------------------------------------
// Desc: This file contains the logging routines. They use the
// IF_Logger_Client and IF_LogMessage_Client classes.
//
// Tabs: 3
//
// Copyright (c) 2001-2006 Novell, Inc. All Rights Reserved.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the GNU General Public
// License as published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, contact Novell, Inc.
//
// To contact Novell about this file by physical or electronic mail,
// you may find current contact information at www.novell.com
//
// $Id: flog.h 3108 2006-01-19 13:05:19 -0700 (Thu, 19 Jan 2006) dsanders $
//------------------------------------------------------------------------------
#ifndef FLOG_H
#define FLOG_H
// Special defines for use in the format string of flmLogPrintf
#define F_BLACK "%0C"
#define F_BLUE "%1C"
#define F_GREEN "%2C"
#define F_CYAN "%3C"
#define F_RED "%4C"
#define F_PURPLE "%5C"
#define F_BROWN "%6C"
#define F_LIGHTGRAY "%7C"
#define F_DARKGRAY "%8C"
#define F_LIGHTBLUE "%9C"
#define F_LIGHTGREEN "%10C"
#define F_LIGHTCYAN "%11C"
#define F_LIGHTRED "%12C"
#define F_LIGHTPURPLE "%13C"
#define F_YELLOW "%14C"
#define F_WHITE "%15C"
#define F_PUSHFORECOLOR "%+0C"
#define F_PUSHBACKCOLOR "%+1C"
#define F_POPFORECOLOR "%-0C"
#define F_POPBACKCOLOR "%-1C"
#define F_PUSHCOLOR F_PUSHFORECOLOR F_PUSHBACKCOLOR
#define F_POPCOLOR F_POPFORECOLOR F_POPBACKCOLOR
#define F_BLUE_ON_WHITE "%1.15C"
// Logging functions for use within FLAIM
IF_LogMessageClient * flmBeginLogMessage(
eLogMessageType eMsgType);
void flmLogPrintf(
IF_LogMessageClient * pLogMessage,
const char * pszFormatStr, ...);
void flmLogVPrintf(
IF_LogMessageClient * pLogMessage,
const char * szFormatStr,
f_va_list * args);
void flmEndLogMessage(
IF_LogMessageClient ** ppLogMessage);
/*============================================================================
Debug Logging Functions
============================================================================*/
#ifdef FLM_DBG_LOG
void scaLogWrite(
F_Database * pDatabase,
FLMUINT uiWriteAddress,
FLMBYTE * pucBlkBuf,
FLMUINT uiBufferLen,
FLMUINT uiBlockSize,
char * pszEvent);
void flmDbgLogWrite(
F_Database * pDatabase,
FLMUINT uiBlkAddress,
FLMUINT uiWriteAddress,
FLMUINT64 ui64TransId,
char * pszEvent);
void flmDbgLogUpdate(
F_Database * pDatabase,
FLMUINT64 ui64TransId,
FLMUINT uiCollection,
FLMUINT64 ui64NodeId,
RCODE rc,
char * pszEvent);
void flmDbgLogMsg(
char * pszMsg);
void flmDbgLogInit( void);
void flmDbgLogExit( void);
void flmDbgLogFlush( void);
#endif // #ifdef FLM_DBG_LOG
#endif // #ifndef FLOG_H