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

SVD reader with Expat(https://github.com/libexpat/libexpat) More...

#include <expat.hpp>

Inheritance diagram for nodamushi::svd::expat_svd_reader:

Public Member Functions

 expat_svd_reader (const std::string &file_name, bool throw_error=false)
 
bool ok () const
 
 expat_svd_reader (expat_svd_reader &&d)
 
 ~expat_svd_reader ()
 
 expat_svd_reader (const expat_svd_reader &)=delete
 
expat_svd_readeroperator= (const expat_svd_reader &)=delete
 
expat_svd_readeroperator= (expat_svd_reader &&)=delete
 
void close ()
 
void read ()
 svd_reader_base interface function More...
 
bool is_end ()
 svd_reader_base interface function More...
 
- Public Member Functions inherited from nodamushi::svd::stream_reader_base< expat_svd_reader >
 stream_reader_base ()
 
 stream_reader_base (stream_reader_base &&d)
 
 stream_reader_base (const stream_reader_base &)=delete
 
virtual ~stream_reader_base ()=default
 
stream_reader_baseoperator= (stream_reader_base &&d)
 
stream_reader_baseoperator= (const stream_reader_base &)=delete
 
bool is_attribute () const
 
std::string get_name () const
 
std::string get_value () const
 
elnext_child ()
 
 operator bool ()
 
void operator() (el &e)
 
eladd_child (std::string &&name)
 
eladd_child (const std::string &name)
 
elget_active_open_element ()
 
void close_children ()
 

Static Public Attributes

static constexpr size_t BUFFER_SIZE =1024
 

Additional Inherited Members

- Public Types inherited from nodamushi::svd::stream_reader_base< expat_svd_reader >
using el = stream_reader_element< stream_reader_base >
 

Detailed Description

SVD reader with Expat(https://github.com/libexpat/libexpat)

When you want to use this header,add Expat 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 102 of file expat.hpp.

Constructor & Destructor Documentation

◆ expat_svd_reader() [1/3]

nodamushi::svd::expat_svd_reader::expat_svd_reader ( const std::string &  file_name,
bool  throw_error = false 
)
inline

Definition at line 107 of file expat.hpp.

◆ expat_svd_reader() [2/3]

nodamushi::svd::expat_svd_reader::expat_svd_reader ( expat_svd_reader &&  d)
inline

Definition at line 137 of file expat.hpp.

◆ ~expat_svd_reader()

nodamushi::svd::expat_svd_reader::~expat_svd_reader ( )
inline

Definition at line 148 of file expat.hpp.

◆ expat_svd_reader() [3/3]

nodamushi::svd::expat_svd_reader::expat_svd_reader ( const expat_svd_reader )
delete

Member Function Documentation

◆ close()

void nodamushi::svd::expat_svd_reader::close ( )
inline

Definition at line 154 of file expat.hpp.

◆ is_end()

bool nodamushi::svd::expat_svd_reader::is_end ( )
inline

svd_reader_base interface function

Definition at line 185 of file expat.hpp.

◆ ok()

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

Definition at line 135 of file expat.hpp.

◆ operator=() [1/2]

expat_svd_reader& nodamushi::svd::expat_svd_reader::operator= ( const expat_svd_reader )
delete

◆ operator=() [2/2]

expat_svd_reader& nodamushi::svd::expat_svd_reader::operator= ( expat_svd_reader &&  )
delete

◆ read()

void nodamushi::svd::expat_svd_reader::read ( )
inline

svd_reader_base interface function

Definition at line 168 of file expat.hpp.

Member Data Documentation

◆ BUFFER_SIZE

constexpr size_t nodamushi::svd::expat_svd_reader::BUFFER_SIZE =1024
static

Definition at line 105 of file expat.hpp.


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