A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/xpath__object_8cpp_source.html below:

NCBI C++ ToolKit: src/misc/xmlwrapp/xpath_object.cpp Source File

46 #include <libxml/xpath.h> 47 #include <libxml/xpathInternals.h> 77  obj_

(reinterpret_cast<xmlXPathObjectPtr>(obj)),

84

xmlXPathFreeObject(

obj_

);

133  if

(

this

!= &other) {

144

other.pimpl_ =

NULL

;

149  if

(

this

!= &other) {

153

other.pimpl_ =

NULL

;

161

xmlXPathObjectPtr new_obj =

NULL

;

163

new_obj = xmlXPathNewString(

164  reinterpret_cast<const

xmlChar*

>

(

value

));

166

new_obj = xmlXPathNewString(

167  reinterpret_cast<const

xmlChar*

>

(

""

));

169  if

(new_obj ==

NULL

)

175

xmlXPathFreeObject(new_obj);

183

xmlXPathObjectPtr new_obj = xmlXPathNewBoolean(

value

);

184  if

(new_obj ==

NULL

)

190

xmlXPathFreeObject(new_obj);

198

xmlXPathObjectPtr new_obj = xmlXPathNewFloat(

value

);

199  if

(new_obj ==

NULL

)

205

xmlXPathFreeObject(new_obj);

213

xmlXPathObjectPtr new_obj = xmlXPathNewFloat(

value

);

214  if

(new_obj ==

NULL

)

220

xmlXPathFreeObject(new_obj);

229

xmlNodePtr new_node = xmlCopyNode(

230  reinterpret_cast<

xmlNodePtr

>

(

232  if

(new_node ==

NULL

)

235

xmlXPathObjectPtr new_obj = xmlXPathNewNodeSet(new_node);

236  if

(new_obj ==

NULL

) {

237

xmlFreeNode(new_node);

252

new_obj->boolval = 1;

257

xmlXPathFreeObject(new_obj);

265

xmlNodeSetPtr new_node_set = xmlXPathNodeSetCreate(

NULL

);

266  if

(new_node_set ==

NULL

)

270

std::vector<xmlNodePtr> node_copies;

272  for

( ; k != nset.

end

(); ++k) {

274

xmlNodePtr new_node = xmlCopyNode(

275  reinterpret_cast<

xmlNodePtr

>

(

277  if

(new_node ==

NULL

) {

278  for

(std::vector<xmlNodePtr>::iterator j = node_copies.begin();

279

j != node_copies.end(); ++j)

281

xmlXPathFreeNodeSet(new_node_set);

284

node_copies.push_back(new_node);

288  for

(std::vector<xmlNodePtr>::iterator j = node_copies.begin();

289

j != node_copies.end(); ++j) {

292

xmlXPathNodeSetAdd(new_node_set, *j);

296

xmlXPathObjectPtr new_obj = xmlXPathNewNodeSetList(new_node_set);

297

xmlXPathFreeNodeSet(new_node_set);

298  if

(new_obj ==

NULL

) {

299  for

(std::vector<xmlNodePtr>::iterator j = node_copies.begin();

300

j != node_copies.end(); ++j)

309

new_obj->boolval = 1;

314

xmlXPathFreeObject(new_obj);

322

xmlNodeSetPtr new_node_set = xmlXPathNodeSetCreate(

NULL

);

323  if

(new_node_set ==

NULL

)

327

std::vector<xmlNodePtr> node_copies;

328

type_node_source::const_iterator k =

value

.begin();

329  for

( ; k !=

value

.end(); ++k) {

330  void

* raw_node = k->get_node_data();

331

xmlNodePtr new_node = xmlCopyNode(

332  reinterpret_cast<

xmlNodePtr

>

(

334  if

(new_node ==

NULL

) {

335  for

(std::vector<xmlNodePtr>::iterator j = node_copies.begin();

336

j != node_copies.end(); ++j)

338

xmlXPathFreeNodeSet(new_node_set);

341

node_copies.push_back(new_node);

345  for

(std::vector<xmlNodePtr>::iterator j = node_copies.begin();

346

j != node_copies.end(); ++j) {

349

xmlXPathNodeSetAdd(new_node_set, *j);

353

xmlXPathObjectPtr new_obj = xmlXPathNewNodeSetList(new_node_set);

354

xmlXPathFreeNodeSet(new_node_set);

355  if

(new_obj ==

NULL

) {

356  for

(std::vector<xmlNodePtr>::iterator j = node_copies.begin();

357

j != node_copies.end(); ++j)

367

new_obj->boolval = 1;

372

xmlXPathFreeObject(new_obj);

383  return reinterpret_cast<const char

*

>

(

pimpl_

->

obj_

->stringval);

389  copy

= xmlXPathConvertString(

copy

);

393  std::string

retval =

reinterpret_cast<const char

*

>

(

copy

->stringval);

394

xmlXPathFreeObject(

copy

);

410  copy

= xmlXPathConvertBoolean(

copy

);

414  bool

retval =

copy

->boolval !=0;

415

xmlXPathFreeObject(

copy

);

426  return static_cast<int>

(

pimpl_

->

obj_

->floatval);

433  copy

= xmlXPathConvertNumber(

copy

);

440

xmlXPathFreeObject(

copy

);

444  int

retval =

static_cast<int>

(

copy

->floatval);

445

xmlXPathFreeObject(

copy

);

461  copy

= xmlXPathConvertNumber(

copy

);

465  double

retval =

copy

->floatval;

466

xmlXPathFreeObject(

copy

);

478  if

(

pimpl_

->

obj_

->nodesetval->nodeNr <= 0)

486  return

*nset.

begin

();

516  #ifdef LIBXML_XPTR_LOCS_ENABLED 561

pimpl_(new

impl

::xpath_obj_impl(

562

reinterpret_cast<xmlXPathObjectPtr>(raw_object)))

The xml::node_set::const_iterator class is used to iterate over nodes in a node set.

The xml::node_set class is used to store xpath query result set.

iterator begin()

Get an iterator that points to the beginning of the xpath query result node set.

iterator end()

Get an iterator that points one past the last node in the xpath query result node set.

The xml::node class is used to hold information about one XML node.

void * get_node_data(void) const

This exception class is thrown by xmlwrapp for all runtime XSLT-related errors.

static bool get_allow_extension_functions_leak(void)

Provides the current setting of the extension functions memory management.

The xslt::xpath_object class is used to store extension function arguments and return values.

xml::node & get_as_node(void) const

Provide the object value as a node.

bool get_from_xslt(void) const

std::vector< xml::node > type_node_source

Source of nodes to construct xpath_object of the nodeset type.

void * get_object(void) const

xpath_object_type get_type(void) const

Provides the object type.

xpath_object & operator=(const xpath_object &other)

Create a copy of the xslt::xpath_object object.

void test_int_convertability(double val) const

~xpath_object()

Destroy the object and clean up the memory.

void set_from_xslt(void) const

xml::node_set get_as_node_set(void) const

Provide the object value as a node set.

void revoke_ownership(void) const

std::string get_as_string(void) const

Provide the object value as a string.

impl::xpath_obj_impl * pimpl_

xpath_object()

Create a new xslt::xpath_object object.

int get_as_int(void) const

Provide the object value as an integer.

bool get_as_bool(void) const

Provide the object value as a boolean.

double get_as_float(void) const

Provide the object value as a float.

This file contains the definition of the xml::node class.

const GenericPointer< typename T::ValueType > T2 value

const char * kCouldNotCreateXpathNodeSet

xpath_object_type

Identifies what is stored in an xpath_object instance.

const char * kConverToNumberFailed

const char * kUnexpectedXpathObjectType

const char * kCouldNotCopyNode

const char * kCouldNotCreateNodeSet

const char * kCannotCopyXpathObject

const char * kUninitialisedObject

void copy(Njn::Matrix< S > *matrix_, const Njn::Matrix< T > &matrix0_)

This file contains the definition of the xml::impl::nset_impl class.

void set_ownership(bool owe)

xpath_obj_impl(void *obj)

This file contains the definition of the xslt::exception class.

This file contains the definition of the xslt::init class.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4