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

# /Users/fpy/titan-1-5-MBARI/Mers/Estimation/Discrete/Io/Xml/Sax/TrajCH.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_ESTIMATION_DISCRETE_IO_XML_SAX_TRAJCH_HEADER_FILE
    00012 #define MERS_ESTIMATION_DISCRETE_IO_XML_SAX_TRAJCH_HEADER_FILE
    00013
    00014 #include <Mers/Utils/Io/Xml/Sax/TypedCH.h>
    00015 #include <Mers/Utils/Io/Xml/Sax/ContentCallback.h>
    00016
    00017 namespace Mers {
    00018         namespace Models {
    00019                 namespace Base {
    00020                         class BaseModel;
    00021                 }
    00022         }
    00023         namespace Estimation {
    00024                 namespace Discrete {
    00025                         class Trajectories;
    00026                         class Estimate;
    00027
    00028                         namespace Io {
    00029                                 namespace Xml {
    00030                                         namespace Sax {
    00034                                         class TrajCH
    00035                                                 : public ::Mers::Utils::Io::Xml::Sax::TypedCH
    00036                                                                 < const ::Mers::Models::Base::BaseModel * >,
    00037                                                         protected ::Mers::Utils::Io::Xml::Sax::ContentCallback
    00038                                                                 < ::Mers::Estimation::Discrete::Estimate * >
    00039                                         {
    00040                                         public:
    00054                                                 TrajCH( XERCES_CPP_NAMESPACE::SAX2XMLReader * reader,
    00055                                                         const Mers::Models::Base::BaseModel * model,
    00056                                                         ::Mers::Utils::Io::Xml::Sax::ContentHandler * parent,
    00057                                                         ::Mers::Utils::Io::Xml::Sax::ContentCallback
    00058                                                                 < ::Mers::Estimation::Discrete::Trajectories * > * callback );
    00059
    00090                                                 virtual void startElement(
    00091                                                         const XMLCh * const uri,
    00092                                                         const XMLCh * const localname,
    00093                                                         const XMLCh * const qname,
    00094                                                         const XERCES_CPP_NAMESPACE::Attributes& attrs);
    00095
    00114                                                 virtual void endElement(
    00115                                                         const XMLCh * const uri,
    00116                                                         const XMLCh * const localname,
    00117                                                         const XMLCh * const qname);
    00118
    00119                                         protected:
    00129                                                 virtual void handleContent(
    00130                                                         ::Mers::Estimation::Discrete::Estimate * est,
    00131                                                         const XMLCh * element );
    00132
    00133                                         protected:
    00134                                                 // The trajectories we're loading.
    00135                                                 ::Mers::Estimation::Discrete::Trajectories * m_Trajectories;
    00136
    00137                                                 // Our callback object.
    00138                                                 ::Mers::Utils::Io::Xml::Sax::ContentCallback
    00139                                                         < ::Mers::Estimation::Discrete::Trajectories * > * m_Callback;
    00140                                         private:
    00142                                                 TrajCH();
    00143                                                 TrajCH(const TrajCH &other);
    00144                                                 TrajCH & operator =(const TrajCH &other);
    00145                                         };
    00146                                         }
    00147                                 }
    00148                         }
    00149                 }
    00150         }
    00151 }
    00152
    00153 #endif