Sequence Chart Studio  svn HEAD revision
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
Registry Class Reference

#include <registryManager.h>

Collaboration diagram for Registry:
Collaboration graph

Public Member Functions

template<class T , DWORD dwType>
void _setRegistry_ (const TCHAR *path, const TCHAR *parameter, T value)
 
template<class T >
void setRegistry (const TCHAR *path, const TCHAR *parameter, T value)
 
template<>
void setRegistry (const TCHAR *path, const TCHAR *parameter, DWORD value)
 
template<class T >
getRegistry (const TCHAR *path, const TCHAR *parameter, T defaultValue)
 
std::wstring getRegistryString (const TCHAR *path, const TCHAR *parameter, std::wstring defaultValue)
 
bool setRegistryString (const TCHAR *path, const TCHAR *parameter, std::wstring value)
 

Static Public Member Functions

static Registryget ()
 

Private Types

typedef std::map< _bstr_t,
boost::any > 
RegistryCacheMap
 

Private Member Functions

 Registry ()
 
std::wstring storeAndReturn (const TCHAR *path, const TCHAR *parameter, std::wstring defaultValue)
 
_bstr_t getKey (const TCHAR *path, const TCHAR *parameter)
 

Private Attributes

RegistryCacheMap _items
 

Static Private Attributes

static Registry_inst = NULL
 

Detailed Description

Definition at line 28 of file registryManager.h.

Member Typedef Documentation

typedef std::map<_bstr_t, boost::any> Registry::RegistryCacheMap
private

Definition at line 31 of file registryManager.h.

Constructor & Destructor Documentation

Registry::Registry ( )
inlineprivate

Definition at line 91 of file registryManager.h.

Referenced by get().

Member Function Documentation

template<class T , DWORD dwType>
void Registry::_setRegistry_ ( const TCHAR *  path,
const TCHAR *  parameter,
value 
)
inline

Definition at line 43 of file registryManager.h.

References _items, getKey(), and path.

static Registry* Registry::get ( )
inlinestatic

Definition at line 34 of file registryManager.h.

References _inst, and Registry().

Referenced by CDocumentMonitor::autoEnumerate(), CStudioAddon::DisplayOptions(), CMessageJump::getEdgeInstanceTreatment(), CMessageSnapping::getSnapType(), CStudioAddon::HandleCoordinatesChanged(), CStudioAddon::HandleVisioIsIdle(), CMessageSnapping::isArrowKeysEnabled(), CMessageJump::isEdgeTreatmentEnabled(), CMessageSnapping::isEnabled(), CProtectionGlobalDlg::LoadRegistryData(), CSimulatorDlg::LoadRegistryData(), CSnapGlobalDlg::LoadRegistryData(), COptionsDlg::LoadRegistryData(), CInstancesFieldDlg::LoadRegistryData(), CPcapSettingsViewDlg::LoadRegistryData(), CMessageSequenceDlg::LoadRegistryData(), CPcapSettingsADlg::LoadRegistryData(), CBeautifySettingsTimesDlg::LoadRegistryData(), CPcapSettingsGDlg::LoadRegistryData(), CPcapSettingsAggregDlg::LoadRegistryData(), CBeautifySettingsWidthsDlg::LoadRegistryData(), CBeautifySettingsGDlg::LoadRegistryData(), CBeautifySettingsADlg::LoadRegistryData(), CNumberingGlobalDlg::OnApply(), CNumberingGlobalDlg::OnInitDialog(), CDocumentMonitor::OnMenuVerify(), CDocumentMonitor::run_checks(), CProtectionGlobalDlg::SaveRegistryData(), CSimulatorDlg::SaveRegistryData(), CSnapGlobalDlg::SaveRegistryData(), COptionsDlg::SaveRegistryData(), CInstancesFieldDlg::SaveRegistryData(), CPcapSettingsViewDlg::SaveRegistryData(), CMessageSequenceDlg::SaveRegistryData(), CPcapSettingsADlg::SaveRegistryData(), CBeautifySettingsTimesDlg::SaveRegistryData(), CPcapSettingsGDlg::SaveRegistryData(), CPcapSettingsAggregDlg::SaveRegistryData(), CBeautifySettingsGDlg::SaveRegistryData(), CBeautifySettingsWidthsDlg::SaveRegistryData(), CBeautifySettingsADlg::SaveRegistryData(), CMessageSnapping::setEnabled(), and CMessageSnapping::setSnapType().

_bstr_t Registry::getKey ( const TCHAR *  path,
const TCHAR *  parameter 
)
private
template<class T >
T Registry::getRegistry ( const TCHAR *  path,
const TCHAR *  parameter,
defaultValue 
)
inline
std::wstring Registry::getRegistryString ( const TCHAR *  path,
const TCHAR *  parameter,
std::wstring  defaultValue 
)
template<class T >
void Registry::setRegistry ( const TCHAR *  path,
const TCHAR *  parameter,
value 
)
inline
template<>
void Registry::setRegistry ( const TCHAR *  path,
const TCHAR *  parameter,
DWORD  value 
)
inline

Definition at line 61 of file registryManager.h.

References path.

bool Registry::setRegistryString ( const TCHAR *  path,
const TCHAR *  parameter,
std::wstring  value 
)

Definition at line 56 of file registryManager.cpp.

References _items, and getKey().

Referenced by CNumberingGlobalDlg::OnApply(), and CPcapSettingsGDlg::SaveRegistryData().

std::wstring Registry::storeAndReturn ( const TCHAR *  path,
const TCHAR *  parameter,
std::wstring  defaultValue 
)
private

Definition at line 81 of file registryManager.cpp.

References _items, and getKey().

Referenced by getRegistryString().

Member Data Documentation

Registry * Registry::_inst = NULL
staticprivate

Definition at line 30 of file registryManager.h.

Referenced by get().

RegistryCacheMap Registry::_items
private

The documentation for this class was generated from the following files:

SourceForge.net Logo
Generated on Fri Jan 15 2016 16:26:59 for Sequence Chart Studio by  doxygen