OpenCPN Partial API docs
Loading...
Searching...
No Matches
catalog_parser.h File Reference

Datatypes and methods to parse ocpn-plugins.xml XML data, either complete catalog or a single plugin. More...

#include <string>
#include <vector>

Go to the source code of this file.

Classes

struct  CatalogData
 Overall metadata for the set of plugins used. More...
 
struct  PluginMetadata
 Plugin metadata, reflects the xml format directly. More...
 
struct  CatalogCtx
 The result from parsing the xml catalog i. More...
 

Functions

bool ParseCatalog (const std::string xml, CatalogCtx *ctx)
 
bool ParsePlugin (const std::string &xml, PluginMetadata &metadata)
 

Detailed Description

Datatypes and methods to parse ocpn-plugins.xml XML data, either complete catalog or a single plugin.

Definition in file catalog_parser.h.

Function Documentation

◆ ParseCatalog()

bool ParseCatalog ( const std::string  xml,
CatalogCtx ctx 
)

Definition at line 117 of file catalog_parser.cpp.

◆ ParsePlugin()

bool ParsePlugin ( const std::string &  xml,
PluginMetadata metadata 
)

Definition at line 106 of file catalog_parser.cpp.