mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-16 18:56:52 +02:00
submitted 1.2.0
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# sample.vmsbuild
|
||||
#
|
||||
# $Id: //poco/1.1.0/XML/samples/DOMParser/DOMParser.vmsbuild#1 $
|
||||
# $Id: //poco/1.2/XML/samples/DOMParser/DOMParser.vmsbuild#1 $
|
||||
#
|
||||
EXE=DOMParser
|
||||
DOMParser
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# Makefile
|
||||
#
|
||||
# $Id: //poco/1.1.0/XML/samples/DOMParser/Makefile#1 $
|
||||
# $Id: //poco/1.2/XML/samples/DOMParser/Makefile#1 $
|
||||
#
|
||||
# Makefile for Poco DOMParser
|
||||
#
|
||||
@@ -12,6 +12,6 @@ objects = DOMParser
|
||||
|
||||
target = DOMParser
|
||||
target_version = 1
|
||||
target_libs = PocoFoundation PocoXML
|
||||
target_libs = PocoXML PocoFoundation
|
||||
|
||||
include $(POCO_BASE)/build/rules/exec
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// DOMParser.cpp
|
||||
//
|
||||
// $Id: //poco/1.1.0/XML/samples/DOMParser/src/DOMParser.cpp#2 $
|
||||
// $Id: //poco/1.2/XML/samples/DOMParser/src/DOMParser.cpp#1 $
|
||||
//
|
||||
// This sample demonstrates the DOMParser, AutoPtr and
|
||||
// NodeIterator classes.
|
||||
@@ -33,24 +33,24 @@
|
||||
//
|
||||
|
||||
|
||||
#include "DOM/DOMParser.h"
|
||||
#include "DOM/Document.h"
|
||||
#include "DOM/NodeIterator.h"
|
||||
#include "DOM/NodeFilter.h"
|
||||
#include "DOM/AutoPtr.h"
|
||||
#include "SAX/InputSource.h"
|
||||
#include "Foundation/Exception.h"
|
||||
#include "Poco/DOM/DOMParser.h"
|
||||
#include "Poco/DOM/Document.h"
|
||||
#include "Poco/DOM/NodeIterator.h"
|
||||
#include "Poco/DOM/NodeFilter.h"
|
||||
#include "Poco/DOM/AutoPtr.h"
|
||||
#include "Poco/SAX/InputSource.h"
|
||||
#include "Poco/Exception.h"
|
||||
#include <iostream>
|
||||
|
||||
|
||||
using XML::DOMParser;
|
||||
using XML::InputSource;
|
||||
using XML::Document;
|
||||
using XML::NodeIterator;
|
||||
using XML::NodeFilter;
|
||||
using XML::Node;
|
||||
using XML::AutoPtr;
|
||||
using Foundation::Exception;
|
||||
using Poco::XML::DOMParser;
|
||||
using Poco::XML::InputSource;
|
||||
using Poco::XML::Document;
|
||||
using Poco::XML::NodeIterator;
|
||||
using Poco::XML::NodeFilter;
|
||||
using Poco::XML::Node;
|
||||
using Poco::XML::AutoPtr;
|
||||
using Poco::Exception;
|
||||
|
||||
|
||||
int main(int argc, char** argv)
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# sample.vmsbuild
|
||||
#
|
||||
# $Id: //poco/1.1.0/XML/samples/DOMWriter/DOMWriter.vmsbuild#1 $
|
||||
# $Id: //poco/1.2/XML/samples/DOMWriter/DOMWriter.vmsbuild#1 $
|
||||
#
|
||||
EXE=DOMWriter
|
||||
DOMWriter
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# Makefile
|
||||
#
|
||||
# $Id: //poco/1.1.0/XML/samples/DOMWriter/Makefile#1 $
|
||||
# $Id: //poco/1.2/XML/samples/DOMWriter/Makefile#1 $
|
||||
#
|
||||
# Makefile for Poco DOMWriter
|
||||
#
|
||||
@@ -12,6 +12,6 @@ objects = DOMWriter
|
||||
|
||||
target = DOMWriter
|
||||
target_version = 1
|
||||
target_libs = PocoFoundation PocoXML
|
||||
target_libs = PocoXML PocoFoundation
|
||||
|
||||
include $(POCO_BASE)/build/rules/exec
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// DOMWriter.cpp
|
||||
//
|
||||
// $Id: //poco/1.1.0/XML/samples/DOMWriter/src/DOMWriter.cpp#2 $
|
||||
// $Id: //poco/1.2/XML/samples/DOMWriter/src/DOMWriter.cpp#1 $
|
||||
//
|
||||
// This sample demonstrates the DOMWriter class and how to
|
||||
// build DOM documents in memory.
|
||||
@@ -33,21 +33,21 @@
|
||||
//
|
||||
|
||||
|
||||
#include "DOM/Document.h"
|
||||
#include "DOM/Element.h"
|
||||
#include "DOM/Text.h"
|
||||
#include "DOM/AutoPtr.h"
|
||||
#include "DOM/DOMWriter.h"
|
||||
#include "XML/XMLWriter.h"
|
||||
#include "Poco/DOM/Document.h"
|
||||
#include "Poco/DOM/Element.h"
|
||||
#include "Poco/DOM/Text.h"
|
||||
#include "Poco/DOM/AutoPtr.h"
|
||||
#include "Poco/DOM/DOMWriter.h"
|
||||
#include "Poco/XML/XMLWriter.h"
|
||||
#include <iostream>
|
||||
|
||||
|
||||
using XML::Document;
|
||||
using XML::Element;
|
||||
using XML::Text;
|
||||
using XML::AutoPtr;
|
||||
using XML::DOMWriter;
|
||||
using XML::XMLWriter;
|
||||
using Poco::XML::Document;
|
||||
using Poco::XML::Element;
|
||||
using Poco::XML::Text;
|
||||
using Poco::XML::AutoPtr;
|
||||
using Poco::XML::DOMWriter;
|
||||
using Poco::XML::XMLWriter;
|
||||
|
||||
|
||||
int main(int argc, char** argv)
|
||||
|
@@ -1,12 +1,14 @@
|
||||
#
|
||||
# Makefile
|
||||
#
|
||||
# $Id: //poco/1.1.0/XML/samples/Makefile#1 $
|
||||
# $Id: //poco/1.2/XML/samples/Makefile#1 $
|
||||
#
|
||||
# Makefile for Poco XML Samples
|
||||
#
|
||||
|
||||
.DEFAULT all:
|
||||
.PHONY: projects
|
||||
clean all: projects
|
||||
projects:
|
||||
$(MAKE) -C DOMParser $(MAKECMDGOALS)
|
||||
$(MAKE) -C DOMWriter $(MAKECMDGOALS)
|
||||
$(MAKE) -C PrettyPrint $(MAKECMDGOALS)
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# Makefile
|
||||
#
|
||||
# $Id: //poco/1.1.0/XML/samples/PrettyPrint/Makefile#1 $
|
||||
# $Id: //poco/1.2/XML/samples/PrettyPrint/Makefile#1 $
|
||||
#
|
||||
# Makefile for Poco PrettyPrint
|
||||
#
|
||||
@@ -12,6 +12,6 @@ objects = PrettyPrint
|
||||
|
||||
target = PrettyPrint
|
||||
target_version = 1
|
||||
target_libs = PocoFoundation PocoXML
|
||||
target_libs = PocoXML PocoFoundation
|
||||
|
||||
include $(POCO_BASE)/build/rules/exec
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# sample.vmsbuild
|
||||
#
|
||||
# $Id: //poco/1.1.0/XML/samples/PrettyPrint/PrettyPrint.vmsbuild#1 $
|
||||
# $Id: //poco/1.2/XML/samples/PrettyPrint/PrettyPrint.vmsbuild#1 $
|
||||
#
|
||||
EXE=PrettyPrint
|
||||
PrettyPrint
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// PrettyPrint.cpp
|
||||
//
|
||||
// $Id: //poco/1.1.0/XML/samples/PrettyPrint/src/PrettyPrint.cpp#2 $
|
||||
// $Id: //poco/1.2/XML/samples/PrettyPrint/src/PrettyPrint.cpp#1 $
|
||||
//
|
||||
// This sample demonstrates the SAXParser, WhitespaceFilter,
|
||||
// InputSource and XMLWriter classes.
|
||||
@@ -33,20 +33,20 @@
|
||||
//
|
||||
|
||||
|
||||
#include "SAX/SAXParser.h"
|
||||
#include "SAX/WhitespaceFilter.h"
|
||||
#include "SAX/InputSource.h"
|
||||
#include "XML/XMLWriter.h"
|
||||
#include "Foundation/Exception.h"
|
||||
#include "Poco/SAX/SAXParser.h"
|
||||
#include "Poco/SAX/WhitespaceFilter.h"
|
||||
#include "Poco/SAX/InputSource.h"
|
||||
#include "Poco/XML/XMLWriter.h"
|
||||
#include "Poco/Exception.h"
|
||||
#include <iostream>
|
||||
|
||||
|
||||
using XML::SAXParser;
|
||||
using XML::XMLReader;
|
||||
using XML::WhitespaceFilter;
|
||||
using XML::InputSource;
|
||||
using XML::XMLWriter;
|
||||
using Foundation::Exception;
|
||||
using Poco::XML::SAXParser;
|
||||
using Poco::XML::XMLReader;
|
||||
using Poco::XML::WhitespaceFilter;
|
||||
using Poco::XML::InputSource;
|
||||
using Poco::XML::XMLWriter;
|
||||
using Poco::Exception;
|
||||
|
||||
|
||||
int main(int argc, char** argv)
|
||||
@@ -61,7 +61,7 @@ int main(int argc, char** argv)
|
||||
|
||||
filter.setContentHandler(&writer);
|
||||
filter.setDTDHandler(&writer);
|
||||
filter.setProperty(XMLReader::PROPERTY_LEXICAL_HANDLER, static_cast<XML::LexicalHandler*>(&writer));
|
||||
filter.setProperty(XMLReader::PROPERTY_LEXICAL_HANDLER, static_cast<Poco::XML::LexicalHandler*>(&writer));
|
||||
|
||||
try
|
||||
{
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# Makefile
|
||||
#
|
||||
# $Id: //poco/1.1.0/XML/samples/SAXParser/Makefile#1 $
|
||||
# $Id: //poco/1.2/XML/samples/SAXParser/Makefile#1 $
|
||||
#
|
||||
# Makefile for Poco SAXParser
|
||||
#
|
||||
@@ -12,6 +12,6 @@ objects = SAXParser
|
||||
|
||||
target = SAXParser
|
||||
target_version = 1
|
||||
target_libs = PocoFoundation PocoXML
|
||||
target_libs = PocoXML PocoFoundation
|
||||
|
||||
include $(POCO_BASE)/build/rules/exec
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# sample.vmsbuild
|
||||
#
|
||||
# $Id: //poco/1.1.0/XML/samples/SAXParser/SAXParser.vmsbuild#1 $
|
||||
# $Id: //poco/1.2/XML/samples/SAXParser/SAXParser.vmsbuild#1 $
|
||||
#
|
||||
EXE=SAXParser
|
||||
SAXParser
|
||||
|
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// SAXParser.cpp
|
||||
//
|
||||
// $Id: //poco/1.1.0/XML/samples/SAXParser/src/SAXParser.cpp#2 $
|
||||
// $Id: //poco/1.2/XML/samples/SAXParser/src/SAXParser.cpp#1 $
|
||||
//
|
||||
// This sample demonstrates the SAXParser class.
|
||||
//
|
||||
@@ -32,23 +32,23 @@
|
||||
//
|
||||
|
||||
|
||||
#include "SAX/SAXParser.h"
|
||||
#include "SAX/ContentHandler.h"
|
||||
#include "SAX/LexicalHandler.h"
|
||||
#include "SAX/Attributes.h"
|
||||
#include "SAX/Locator.h"
|
||||
#include "Foundation/Exception.h"
|
||||
#include "Poco/SAX/SAXParser.h"
|
||||
#include "Poco/SAX/ContentHandler.h"
|
||||
#include "Poco/SAX/LexicalHandler.h"
|
||||
#include "Poco/SAX/Attributes.h"
|
||||
#include "Poco/SAX/Locator.h"
|
||||
#include "Poco/Exception.h"
|
||||
#include <iostream>
|
||||
|
||||
|
||||
using XML::SAXParser;
|
||||
using XML::XMLReader;
|
||||
using XML::XMLString;
|
||||
using XML::XMLChar;
|
||||
using XML::ContentHandler;
|
||||
using XML::LexicalHandler;
|
||||
using XML::Attributes;
|
||||
using XML::Locator;
|
||||
using Poco::XML::SAXParser;
|
||||
using Poco::XML::XMLReader;
|
||||
using Poco::XML::XMLString;
|
||||
using Poco::XML::XMLChar;
|
||||
using Poco::XML::ContentHandler;
|
||||
using Poco::XML::LexicalHandler;
|
||||
using Poco::XML::Attributes;
|
||||
using Poco::XML::Locator;
|
||||
|
||||
|
||||
class MyHandler: public ContentHandler, public LexicalHandler
|
||||
@@ -205,7 +205,7 @@ int main(int argc, char** argv)
|
||||
{
|
||||
parser.parse(argv[1]);
|
||||
}
|
||||
catch (Foundation::Exception& e)
|
||||
catch (Poco::Exception& e)
|
||||
{
|
||||
std::cerr << e.displayText() << std::endl;
|
||||
return 2;
|
||||
|
Reference in New Issue
Block a user