• Skip to main content
  • Skip to header right navigation
  • Skip to site footer
CDP Studio logo

CDP Studio

Software development tool for distributed control systems

  • Why CDP
    • Software developers
    • Automation engineers
    • Managers
  • Product
    • Design UI
    • Develop
    • Analyze and test
    • Deploy
    • Framework and toolbox
    • Compatibility
  • Services
  • Use cases
  • Pricing
  • Try CDP

CDP Studio Documentation

  • Framework - XMLParser
  • XMLHeader

XMLHeader Class

The XMLHeader class holds an XML header. More...

Header: #include <XMLHeader>
Inherits: XMLElementEx
  • List of all members, including inherited members

Public Functions

XMLHeader(void)
virtual ~XMLHeader(void)

Reimplemented Public Functions

virtual bool Dump(FILE *pFile)
virtual char *Dump(char *pzBuffer)
virtual void Dump(XMLBuffer &strBuffer)
virtual unsigned int GetWriteBufferSize()
virtual const char *Parse(const char *pStart, unsigned int &nLineNumber)
  • 30 public functions inherited from XMLElementEx
  • 37 public functions inherited from XMLPrimitive

Additional Inherited Members

  • 1 static public member inherited from XMLPrimitive

Detailed Description

The XMLHeader class holds an XML header.

Example XMLHeader:

<?xml version="1.0" charset="utf-8" encoding=""?>

The XMLHeader Name is set to "xml" and any attributes are read in and can be retrieved by the attribute access functions. The Value is empty.

Member Function Documentation

XMLHeader::XMLHeader(void)

Constructs the XML header, setting the Type to e_XMLHeader.

[virtual] XMLHeader::~XMLHeader(void)

Destructs the XMLHeader.

[virtual] bool XMLHeader::Dump(FILE *pFile)

Reimplemented from XMLPrimitive::Dump().

Appends the xml header and attributes to (an already open) pFile.

[virtual] char *XMLHeader::Dump(char *pzBuffer)

Reimplemented from XMLPrimitive::Dump().

Appends the xml header and attributes to pzBuffer.

[virtual] void XMLHeader::Dump(XMLBuffer &strBuffer)

Reimplemented from XMLPrimitive::Dump().

Appends the xml header and attributes to strBuffer.

[virtual] unsigned int XMLHeader::GetWriteBufferSize()

Reimplemented from XMLPrimitive::GetWriteBufferSize().

Returns the size to allocate for this header and attributes.

[virtual] const char *XMLHeader::Parse(const char *pStart, unsigned int &nLineNumber)

Reimplemented from XMLPrimitive::Parse().

Parses the XML Header, reading attributes and reporting any errors if found. Also parses elements following the header. On success, returns pointer to string-terminating-character(0), or returns nullptr on error.

The content of this document is confidential information not to be published without the consent of CDP Technologies AS.

CDP Technologies AS, www.cdpstudio.com

Get started with CDP Studio today

Let us help you take your great ideas and turn them into the products your customer will love.

Try CDP Studio for free
Why CDP Studio?

CDP Technologies AS
Hundsværgata 8,
P.O. Box 144
6001 Ålesund, Norway

Tel: +47 990 80 900
E-mail: info@cdptech.com

Company

About CDP

Contact us

Services

Partners

Blog

Developers

Get started

User manuals

Support

Document download

Release notes

Follow CDP

    © Copyright 2021 CDP Technologies. Privacy and cookie policy.

    Return to top