xmlregionsource.cc

来自「VC视频对象的跟踪提取原代码(vc视频监控源码)」· CC 代码 · 共 57 行

CC
57
字号
// Tue Feb 19 21:28:47 GMT 2002  by  nts//////////////////////////////////////////////////////////////////////////////////////                                                                                //// class XMLRegionSource      <<< abstract >>>                                    ////                                                                                //// This class defines an interface to XML Region data as defined by the XML       //// Schema namespace "http://www.cvg.cs.reading.ac.uk/ADVISOR" (the current name). ////                                                                                //// Similar in design to our ImageSource classes, some methods are pure virtual    ////   and the class should not be instantiated directly.                           ////                                                                                //// The XMLRegionSource class uses the XMLRegionHandler class to extract data from ////   the XML structures.                                                          ////                                                                                //////////////////////////////////////////////////////////////////////////////////////// XML libraries for SAX2 API...#include <util/PlatformUtils.hpp> // XMLPlatformUtils class with static init/deinit methods#include <sax2/XMLReaderFactory.hpp>  // XMLReaderFactory class with static reader methods#include <util/XMLString.hpp>    // XMLString class with static character conversion methods#include <sax2/SAX2XMLReader.hpp>  // which defines the SAX2 XML parser class// our own includes#include "XMLRegionSource.h"#include "XMLRegionHandler.h"#include "RegionSet.h"#include "TrackedObjectSet.h"#include "text_output.h"namespace ReadingPeopleTracker{////////////////////////////////////////////////////////////////////////////   Constructor and Destructor                                         ////////////////////////////////////////////////////////////////////////////XMLRegionSource::XMLRegionSource(){    // assign default values to detect errors during initialisation    XML_region_handler = NULL;    XML_parser = NULL;        // Initialize the XML system    try    {	XMLPlatformUtils::Initialize(); // apparently, this is per-process so OK    }        catch (const XMLException &exception)    {	char *message = XMLString::transcode(exception.getMessage());		cerror << " XMLRegionSource::XMLRegionSource(): Error during initialization: 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?