NSVD Reader  0.0.1
nodamushi::svd::tinyxml_svd_reader Struct Reference

#include <tinyxml.hpp>

Inheritance diagram for nodamushi::svd::tinyxml_svd_reader:

Classes

struct  sub_reader
 

Public Types

using node = ::tinyxml2::XMLNode
 
using text = ::tinyxml2::XMLText
 
using element = ::tinyxml2::XMLElement
 
using attribute = ::tinyxml2::XMLAttribute
 
using document = ::tinyxml2::XMLDocument
 

Public Member Functions

 tinyxml_svd_reader (const std::string &filename, bool throw_error=false)
 
bool ok () const
 
bool is_attribute () const
 
std::string get_name () const
 
std::string get_value () const
 
sub_reader next_child ()
 
 operator bool () const
 

Detailed Description

SVD reader with TinyXML-2k.

When you want to use this header,add TineyXML2 to include directories and link libraries.
if(!r.ok())return; // file open failed
if(!r.ok())return; // xml parser error
See also
https://github.com/libexpat/libexpat

Definition at line 39 of file tinyxml.hpp.

Member Typedef Documentation

◆ attribute

using nodamushi::svd::tinyxml_svd_reader::attribute = ::tinyxml2::XMLAttribute

Definition at line 65 of file tinyxml.hpp.

◆ document

using nodamushi::svd::tinyxml_svd_reader::document = ::tinyxml2::XMLDocument

Definition at line 66 of file tinyxml.hpp.

◆ element

using nodamushi::svd::tinyxml_svd_reader::element = ::tinyxml2::XMLElement

Definition at line 64 of file tinyxml.hpp.

◆ node

using nodamushi::svd::tinyxml_svd_reader::node = ::tinyxml2::XMLNode

Definition at line 62 of file tinyxml.hpp.

◆ text

using nodamushi::svd::tinyxml_svd_reader::text = ::tinyxml2::XMLText

Definition at line 63 of file tinyxml.hpp.

Constructor & Destructor Documentation

◆ tinyxml_svd_reader()

nodamushi::svd::tinyxml_svd_reader::tinyxml_svd_reader ( const std::string &  filename,
bool  throw_error = false 
)
inline

Definition at line 43 of file tinyxml.hpp.

Member Function Documentation

◆ get_name()

std::string nodamushi::svd::tinyxml_svd_reader::get_name ( ) const
inline

Definition at line 131 of file tinyxml.hpp.

◆ get_value()

std::string nodamushi::svd::tinyxml_svd_reader::get_value ( ) const
inline

Definition at line 132 of file tinyxml.hpp.

◆ is_attribute()

bool nodamushi::svd::tinyxml_svd_reader::is_attribute ( ) const
inline

Definition at line 126 of file tinyxml.hpp.

◆ next_child()

sub_reader nodamushi::svd::tinyxml_svd_reader::next_child ( )
inline

Definition at line 134 of file tinyxml.hpp.

◆ ok()

bool nodamushi::svd::tinyxml_svd_reader::ok ( ) const
inline
Returns
file open / xml parse status

Definition at line 59 of file tinyxml.hpp.

◆ operator bool()

nodamushi::svd::tinyxml_svd_reader::operator bool ( ) const
inline

Definition at line 140 of file tinyxml.hpp.


The documentation for this struct was generated from the following file: