- Main Page
- Namespaces
- Classes
- Files
- Related Pages

# /Users/fpy/titan-1-5-MBARI/Mers/Utils/Io/Xml/Sax/StringCH.h

    00001
    00002 //
    00003 // Copyright (c) 2005           Model-based Embedded and Robotic Systems Group
    00004 // All Rights Reserved          Massachusetts Institute of Technology
    00005 //
    00006 // This software is provided as is. Model-based Embedded and Robotic Systems
    00007 // (MERS) group does not assume any responsibility.
    00008 //
    00010
    00011 #ifndef MERS_UTILS_IO_XML_SAX_STRINGCH_HEADER_FILE
    00012 #define MERS_UTILS_IO_XML_SAX_STRINGCH_HEADER_FILE
    00013
    00014 #include "ContentHandler.h"
    00015 #include "ContentCallback.h"
    00016
    00017 namespace Mers {
    00018         namespace Utils {
    00019                 namespace Lang {
    00020                         class String;
    00021                 }
    00022         }
    00023         namespace Utils {
    00024                 namespace Io {
    00025                         namespace Xml {
    00026                                 namespace Sax {
    00030                                         class StringCH : public ContentHandler
    00031                                         {
    00032                                         public:
    00046                                                 StringCH( XERCES_CPP_NAMESPACE::SAX2XMLReader * reader,
    00047                                                         ContentHandler * parent,
    00048                                                         ContentCallback< ::Mers::Utils::Lang::String * > * callback );
    00049
    00079                                                 virtual void characters(
    00080                                                         const XMLCh * const chars,
    00081                                                         const unsigned int length);
    00082
    00101                                                 virtual void endElement(
    00102                                                         const XMLCh * const uri,
    00103                                                         const XMLCh * const localname,
    00104                                                         const XMLCh * const qname);
    00105
    00106                                         protected:
    00107                                                 // Our value
    00108                                                 ::Mers::Utils::Lang::String * m_Value;
    00109
    00110                                                 // Our callback object.
    00111                                                 ContentCallback< ::Mers::Utils::Lang::String * > * m_Callback;
    00112                                         private:
    00114                                                 StringCH();
    00115                                                 StringCH(const StringCH &other);
    00116                                                 StringCH & operator =(const StringCH &other);
    00117                                         };
    00118                                 }
    00119                         }
    00120                 }
    00121         }
    00122 }
    00123
    00124 #endif