Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/plugin/PluginDictionary.h

Issue 10897028: Create a shared dictionary class for plugin and engine (Closed)
Patch Set: Created June 7, 2013, 12:42 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/plugin/PluginDictionary.h
===================================================================
deleted file mode 100644
--- a/src/plugin/PluginDictionary.h
+++ /dev/null
@@ -1,41 +0,0 @@
-#ifndef _DICTIONARY_H
-#define _DICTIONARY_H
-
-
-#include "PluginIniFileW.h"
-#include "PluginChecksum.h"
-
-
-class CPluginDictionary
-{
-
-private:
-
- static CPluginDictionary* s_instance;
-
- static CComAutoCriticalSection s_criticalSectionDictionary;
-
- CPluginIniFileW::TSectionData m_dictionary;
- CString m_dictionaryLanguage;
- std::map<CString,CString> m_dictionaryConversions;
-
- // private constructor used by the singleton pattern
- CPluginDictionary(bool forceCreate=false);
-
-public:
-
- ~CPluginDictionary();
-
- // Returns an instance of the Dictionary
- static CPluginDictionary* GetInstance(bool forceCreate=false);
-
- void Create(bool forceCreate=false);
-
- // Initializes the Dictionary. Should be called before any thing else
- void SetLanguage(const CString& lang);
- bool IsLanguageSupported(const CString& lang);
-
- CString Lookup(const CString& key);
-};
-
-#endif

Powered by Google App Engine
This is Rietveld