debug.h #1

  • //
  • guest/
  • andrew_mcdonald/
  • p4hl/
  • src/
  • dlls/
  • debug.h
  • View
  • Commits
  • Open Download .zip Download (873 B)
/*
 * Copyright 1995, 1996 Perforce Software.  All rights reserved.
 *
 * This file is part of Perforce - the FAST SCM System.
 */

enum DebugType {
	DT_DB,		// DbOpen
	DT_DBMAP,	// Db map handling
	DT_DIFF,	// Diff
	DT_DM,		// Dm
	DT_HANDLE,	// Handles
	DT_INDEX,	// the indexing system
	DT_LBR,		// Lbr
	DT_MAP,		// MapTable
	DT_NET,		// Net
	DT_RCS,		// RCS
	DT_RECORDS,	// VarRecords
	DT_RPC,		// Rpc
	DT_SERVER,	// Server
	DT_SPEC,	// Spec
	DT_FTP,		// Ftp Server
	DT_PROC,	// External process creation
	DT_APP,		// Application level
	DT_WG,		// Web Gizmo
	DT_LAST
}  ;

class Debug {

    public:

			Debug();

	void		SetLevel( int l );
	void		SetLevel( char *set );
	void		SetLevel( DebugType t, int l ) { level[t] = l ;}

	int		GetLevel( DebugType t ) const { return level[t]; }

    private:

	void		Unbuffer();

	int 		level[DT_LAST];
} ;

extern Debug p4debug;

# Change User Description Committed
#1 7292 Andrew McDonald initial submittal
//guest/sam_stafford/p4hl/src/dlls/debug.h
#1 1688 Sam Stafford Quick branch of new API files.
//guest/sam_stafford/p4hltest/debug.h
#1 1687 Sam Stafford Add files that didn't get added.