Tag.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2005 Palmsource, Inc.
00003  * 
00004  * This software is licensed as described in the file LICENSE, which
00005  * you should have received as part of this distribution. The terms
00006  * are also available at http://www.openbinder.org/license.html.
00007  * 
00008  * This software consists of voluntary contributions made by many
00009  * individuals. For the exact contribution history, see the revision
00010  * history and logs, available at http://www.openbinder.org
00011  */
00012 
00013 #ifndef XML_TAG_H
00014 #define XML_TAG_H
00015 
00016 #include <support/String.h>
00017 
00018 #if _SUPPORTS_NAMESPACE
00019 namespace palmos {
00020 namespace xml {
00021 using namespace support;
00022 #endif
00023 
00024 class SXMLTag
00025 {
00026 public:
00027     SXMLTag();
00028     SXMLTag(const SString& tag);
00029     SXMLTag(const SXMLTag& tag);
00030 
00031     SString Namespace();
00032     SString Accessor();
00033 private:
00034     void split(const SString& tag);
00035 
00036     SString m_namespace;
00037     SString m_accessor;
00038 };
00039 
00040 #if _SUPPORTS_NAMESPACE
00041 } }
00042 #endif
00043 
00044 #endif // XML_TAG_H