PLCnext API Documentation 23.6.0.37
XmlErrorHandler.hpp
1
2//
3// Copyright PHOENIX CONTACT Electronics GmbH
4//
6
7#pragma once
9
10namespace Arp { namespace System { namespace Commons { namespace Xml
11{
12
15{
16public: // typedefs
17
18public: // construction/destruction
22 XmlErrorHandler(const XmlErrorHandler& arg) = delete;
26 ~XmlErrorHandler(void) = default;
27
28public: // operators
29 bool ParserErrorCatched();
30 bool ValidityErrorCatched();
31 String GetLastError();
32
33public: // static operations
34
35public: // setter/getter operations
36
37public: // operations
38
39protected: // fields
40 size_t parserErrorCounter;
41 size_t validityErrorCounter;
42 String lastError;
43protected: // operations
44
45private: // static methods
46
47private: // methods
48
49private: // fields
50
51
52private: // static fields
53
54
55};
56
57//inline methods of XmlErrorHandler
58
59inline String XmlErrorHandler::GetLastError()
60{
61 return lastError;
62}
63
64}}}} // end of namespace Arp::System::Commons::Xml
internal base class to handle xml parsing errors in XmlReader
Definition: XmlErrorHandler.hpp:15
~XmlErrorHandler(void)=default
Destructs this instance and frees all resouces.
XmlErrorHandler()
Constructs an XmlErrorHandler instance.
XmlErrorHandler(const XmlErrorHandler &arg)=delete
Copy contructor.
XmlErrorHandler & operator=(const XmlErrorHandler &arg)=delete
Assignment operator.
@ System
System components used by the System, Device, Plc or Io domains.
Root namespace for the PLCnext API