PLCnext API Documentation  22.9.0.33
XmlErrorHandler.hpp
1 //
3 // Copyright PHOENIX CONTACT Electronics GmbH
4 //
6 
7 #pragma once
8 #include "Arp/System/Core/Arp.h"
9 
10 namespace Arp { namespace System { namespace Commons { namespace Xml
11 {
12 
15 {
16 public: // typedefs
17 
18 public: // construction/destruction
22  XmlErrorHandler(const XmlErrorHandler& arg) = delete;
24  XmlErrorHandler& operator=(const XmlErrorHandler& arg) = delete;
26  ~XmlErrorHandler(void) = default;
27 
28 public: // operators
29  bool ParserErrorCatched();
30  bool ValidityErrorCatched();
31  String GetLastError();
32 
33 public: // static operations
34 
35 public: // setter/getter operations
36 
37 public: // operations
38 
39 protected: // fields
40  size_t parserErrorCounter;
41  size_t validityErrorCounter;
42  String lastError;
43 protected: // operations
44 
45 private: // static methods
46 
47 private: // methods
48 
49 private: // fields
50 
51 
52 private: // static fields
53 
54 
55 };
56 
57 //inline methods of XmlErrorHandler
58 
59 inline 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