34#ifndef NASAKEYWORDHANDLER_H
35#define NASAKEYWORDHANDLER_H
50class CPL_DLL NASAKeywordHandler
55 const char *pszHeaderNext =
nullptr;
59 bool m_bStripSurroundingQuotes =
false;
62 int ReadWord(
CPLString &osWord,
bool bStripSurroundingQuotes =
false,
63 bool bParseList =
false,
bool *pbIsString =
nullptr);
65 int ReadGroup(
const std::string &osPathPrefix,
CPLJSONObject &oCur,
68 NASAKeywordHandler(
const NASAKeywordHandler &) =
delete;
69 NASAKeywordHandler &operator=(
const NASAKeywordHandler &) =
delete;
73 ~NASAKeywordHandler();
75 void SetStripSurroundingQuotes(
bool bStripSurroundingQuotes)
77 m_bStripSurroundingQuotes = bStripSurroundingQuotes;
80 int Ingest(
VSILFILE *fp,
int nOffset);
82 const char *GetKeyword(
const char *pszPath,
const char *pszDefault);
83 char **GetKeywordList();
The CPLJSONArray class holds JSON object from CPLJSONDocument.
Definition cpl_json.h:54
String list class designed around our use of C "char**" string lists.
Definition cpl_string.h:438
Convenient string class based on std::string.
Definition cpl_string.h:312
Interface for read and write JSON documents.
Various convenience functions for working with strings and string lists.
FILE VSILFILE
Opaque type for a FILE that implements the VSIVirtualHandle API.
Definition cpl_vsi.h:162