diff options
author | Elliott Hughes <enh@google.com> | 2012-05-07 17:34:08 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2012-05-07 17:34:08 -0700 |
commit | 436bbd1a6c227148c294117e725e03be75e01ebf (patch) | |
tree | c0312cb3d52d2043e993eab54f6093f745e705db /tools/localize/ValuesFile.h | |
parent | 476b03b0c0d5cae4d1b114c6f80858d59ba36cad (diff) | |
download | frameworks_base-436bbd1a6c227148c294117e725e03be75e01ebf.zip frameworks_base-436bbd1a6c227148c294117e725e03be75e01ebf.tar.gz frameworks_base-436bbd1a6c227148c294117e725e03be75e01ebf.tar.bz2 |
The 'localize' tool is dead.
Change-Id: I6486e50fd1d2f82dd040371a308a2a756beadb64
Diffstat (limited to 'tools/localize/ValuesFile.h')
-rw-r--r-- | tools/localize/ValuesFile.h | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/tools/localize/ValuesFile.h b/tools/localize/ValuesFile.h deleted file mode 100644 index 752fd78..0000000 --- a/tools/localize/ValuesFile.h +++ /dev/null @@ -1,52 +0,0 @@ -#ifndef VALUES_FILE_H -#define VALUES_FILE_H - -#include "SourcePos.h" -#include "Configuration.h" -#include "XMLHandler.h" -#include "Values.h" - -#include <string> -#include <set> - -using namespace std; - -extern const XMLNamespaceMap ANDROID_NAMESPACES; - -class ValuesFile -{ -public: - ValuesFile(const Configuration& config); - - static ValuesFile* ParseFile(const string& filename, const Configuration& config, - int version, const string& versionString); - static ValuesFile* ParseString(const string& filename, const string& text, - const Configuration& config, - int version, const string& versionString); - ~ValuesFile(); - - const Configuration& GetConfiguration() const; - - void AddString(const StringResource& str); - set<StringResource> GetStrings() const; - - // exports this file as a n XMLNode, you own this object - XMLNode* ToXMLNode() const; - - // writes the ValuesFile out to a string in the canonical format (i.e. writes the contents of - // ToXMLNode()). - string ToString() const; - -private: - class ParseState; - friend class ValuesFile::ParseState; - friend class StringHandler; - - ValuesFile(); - - Configuration m_config; - set<StringResource> m_strings; - map<string,set<StringResource> > m_arrays; -}; - -#endif // VALUES_FILE_H |