Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Include File Hierarchy Viewer

, 29 Jul 2003 CPOL
A tool to view the include file hierarchy of your source code.
//====================================================================
// Although great care has gone into developing this software,
// it is provided without any guarantee of reliability, accuracy
// of information, or correctness of operation.  I am not responsible
// for any damages that may occur as a result of using this software.
// Use this software entirely at your own risk.
// Copyright 2003, Chris Richardson
//
// Description: Settings storage.
//
//====================================================================

#if !defined(AFX_SETTINGS_H__35FCB039_D9B3_4725_AB5A_C2DB76EB6386__INCLUDED_)
#define AFX_SETTINGS_H__35FCB039_D9B3_4725_AB5A_C2DB76EB6386__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "Global.h"

class CSettings  
{
public:
	CSettings();
	virtual ~CSettings();
   
   static CSettings &   GetSettings() { return s_oSettings; }

   static void          ReadRegistry();
   static void          WriteRegistry();

   CStdStringArray      c_oDirectories;
   CStdStringArray      c_oFileMasks;
   CTCharString         c_sIncludeDirs;
   BOOL                 c_bRecurse;
   BOOL                 c_bPreprocess;

   CStdStringArray      c_oWorkspaces;
   CStdStringArray      c_oWorkspaceFileMasks;

   CRect                c_oMainRect;
   BOOL                 c_bMaximized;
   
   int                  c_iActiveSearchTab;

   CTCharString         c_sCustomSourceViewerCommand;
   BOOL                 c_bViewWithAssociatedViewer;

protected:
   static CSettings     s_oSettings;

   static void          ReadArray( CStdStringArray & p_roArray,
                                   const TCHAR * p_pszNameStr,
                                   const TCHAR * p_pszCountStr );
   static void          WriteArray( CStdStringArray & p_roArray,
                                    const TCHAR * p_pszNameStr,
                                    const TCHAR * p_pszCountStr );
};

#endif // !defined(AFX_SETTINGS_H__35FCB039_D9B3_4725_AB5A_C2DB76EB6386__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Chris Richardson
Software Developer (Senior)
United States United States
I like to program, I like to sail.

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.1411022.1 | Last Updated 30 Jul 2003
Article Copyright 2003 by Chris Richardson
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid