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

# /Users/fpy/titan-1-5-MBARI/Mers/Utils/Io/Xml/Sax/TypedCH.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_TYPECH_HEADER_FILE
    00012 #define MERS_UTILS_IO_XML_SAX_TYPECH_HEADER_FILE
    00013
    00014 #include "ContentHandler.h"
    00015
    00016 namespace Mers {
    00017         namespace Utils {
    00018                 namespace Io {
    00019                         namespace Xml {
    00020                                 namespace Sax {
    00025                                         template <typename UserDataType>
    00026                                         class TypedCH :
    00027                                                 public ::Mers::Utils::Io::Xml::Sax::ContentHandler
    00028                                         {
    00029                                         public:
    00041                                                 TypedCH( XERCES_CPP_NAMESPACE::SAX2XMLReader * reader,
    00042                                                         UserDataType data,
    00043                                                         ::Mers::Utils::Io::Xml::Sax::ContentHandler * parent = NULL )
    00044                                                         : ::Mers::Utils::Io::Xml::Sax::ContentHandler( reader, parent ),
    00045                                                                 m_Data( data ) {}
    00046
    00047
    00048                                         protected:
    00050                                                 UserDataType m_Data;
    00051                                         };
    00052                                 }
    00053                         }
    00054                 }
    00055         }
    00056 }
    00057
    00058 #endif