mirror of
https://github.com/jezhiggins/arabica
synced 2025-02-06 20:46:18 +01:00
*** empty log message ***
This commit is contained in:
parent
925803b5b9
commit
e9a97584fc
4 changed files with 11 additions and 5 deletions
|
@ -2,10 +2,14 @@
|
||||||
#define JEZUK_SimpleDOM_ELEMENTBYTAGIMPL_H
|
#define JEZUK_SimpleDOM_ELEMENTBYTAGIMPL_H
|
||||||
|
|
||||||
#include <DOM/Node.h>
|
#include <DOM/Node.h>
|
||||||
|
#include <DOM/Simple/NodeImpl.h>
|
||||||
|
|
||||||
namespace SimpleDOM
|
namespace SimpleDOM
|
||||||
{
|
{
|
||||||
|
|
||||||
|
template<class stringT, class string_adaptorT>
|
||||||
|
class DocumentImpl;
|
||||||
|
|
||||||
template<class stringT, class string_adaptorT>
|
template<class stringT, class string_adaptorT>
|
||||||
class ElementByTagList : public DOM::NodeList_impl<stringT>
|
class ElementByTagList : public DOM::NodeList_impl<stringT>
|
||||||
{
|
{
|
||||||
|
|
|
@ -11,11 +11,11 @@ namespace SimpleDOM
|
||||||
{
|
{
|
||||||
|
|
||||||
template<class stringT, class string_adaptorT>
|
template<class stringT, class string_adaptorT>
|
||||||
class nameIs : public std::unary_function<NodeImpl<stringT, string_adaptorT>*, bool>
|
class nameIs : public std::unary_function<SimpleDOM::NodeImpl<stringT, string_adaptorT>*, bool>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
nameIs(const stringT& name) : name_(name) { }
|
nameIs(const stringT& name) : name_(name) { }
|
||||||
bool operator()(const NodeImpl<stringT, string_adaptorT>* node) const
|
bool operator()(const SimpleDOM::NodeImpl<stringT, string_adaptorT>* node) const
|
||||||
{
|
{
|
||||||
return (node->getNodeName() == name_);
|
return (node->getNodeName() == name_);
|
||||||
} // operator()
|
} // operator()
|
||||||
|
|
|
@ -6,7 +6,9 @@
|
||||||
//
|
//
|
||||||
// $Id$
|
// $Id$
|
||||||
////////////////////////////
|
////////////////////////////
|
||||||
|
|
||||||
#include <DOM/Node.h>
|
#include <DOM/Node.h>
|
||||||
|
#include <DOM/DOMException.h>
|
||||||
#include <deque>
|
#include <deque>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
####################################
|
####################################
|
||||||
# ARABICA CONFIG
|
# ARABICA CONFIG
|
||||||
# edit for your parser choice - may include more than one USE_*
|
# edit for your parser choice - may include more than one USE_*
|
||||||
PARSER_CONFIG = -DUSE_EXPAT -DARABICA_NO_WCHAR_T
|
PARSER_CONFIG = -DUSE_LIBXML2 -DARABICA_NO_WCHAR_T
|
||||||
#PARSER_CONFIG = -DUSE_EXPAT -DUSE_LIBXML2 -DUSE_XERCES -DUSE_GARDEN
|
#PARSER_CONFIG = -DUSE_EXPAT -DUSE_LIBXML2 -DUSE_XERCES -DUSE_GARDEN
|
||||||
|
|
||||||
####################################
|
####################################
|
||||||
|
@ -33,11 +33,11 @@ CXXFLAGS = -Wall
|
||||||
LDFLAGS =
|
LDFLAGS =
|
||||||
|
|
||||||
# Includes and library directories
|
# Includes and library directories
|
||||||
INCS_DIRS = -I.. -I/home/jez/gcc-3.4.2/include
|
INCS_DIRS = -I.. -I/home/jez/gcc-3.4.2/include -I/usr/include/libxml2
|
||||||
LIBS_DIRS = -I/home/jez/gcc-3.4.2/lib
|
LIBS_DIRS = -I/home/jez/gcc-3.4.2/lib
|
||||||
|
|
||||||
STATIC_LIBS =
|
STATIC_LIBS =
|
||||||
DYNAMIC_LIBS = -lexpat -lstdc++
|
DYNAMIC_LIBS = -lxml2 -lstdc++
|
||||||
|
|
||||||
# link flag to create a shared library
|
# link flag to create a shared library
|
||||||
LINK_SHARED = -shared
|
LINK_SHARED = -shared
|
||||||
|
|
Loading…
Add table
Reference in a new issue