- Rename __PIP_TYPENAME_DECLARE to PIP_REGISTER_TYPENAME across all headers - Add PIP_DECLARE_TYPENAME(name) macro for in-class type name declaration - Replace all static const char * __pip_typename__() member functions with PIP_DECLARE_TYPENAME
30 lines
664 B
C
30 lines
664 B
C
#ifndef PIRC_PARSER_H
|
|
#define PIRC_PARSER_H
|
|
|
|
#include "pifile.h"
|
|
|
|
struct ParserEntry {
|
|
ParserEntry(const PIString & n = PIString(), const PIString & a = PIString(), const PIString & p = PIString()) {
|
|
name = n;
|
|
alias = a;
|
|
path = p;
|
|
}
|
|
PIString name;
|
|
PIString alias;
|
|
PIString path;
|
|
};
|
|
|
|
struct ParserSection {
|
|
PIString name;
|
|
PIVector<ParserEntry> files;
|
|
};
|
|
|
|
PIVector<ParserSection> parse(const PIString & path);
|
|
PIVector<ParserSection> parseConf(PIFile & file, const PIString & dir);
|
|
PIVector<ParserSection> parseQRC(PIFile & file, const PIString & dir);
|
|
|
|
PIP_REGISTER_TYPENAME(ParserEntry)
|
|
PIP_REGISTER_TYPENAME(ParserSection)
|
|
|
|
#endif // PIRC_PARSER_H
|