Cleanup on reading structure members and command arguments. (#282)

This commit is contained in:
Andreas Süßenbach
2019-01-14 10:09:19 +01:00
committed by Markus Tavenrath
parent d53fdf3bce
commit e3f096bc7c
2 changed files with 92 additions and 127 deletions

View File

@@ -82,6 +82,10 @@ class VulkanHppGenerator
struct ParamData
{
ParamData()
: optional(false)
{}
TypeData type;
std::string name;
std::string arraySize;
@@ -160,7 +164,6 @@ class VulkanHppGenerator
void readCommand(tinyxml2::XMLElement const* element);
void readCommandAlias(int lineNum, std::string const& alias, std::map<std::string, std::string> const& attributes, std::vector<tinyxml2::XMLElement const*> const& children);
ParamData readCommandParam(tinyxml2::XMLElement const* element);
tinyxml2::XMLNode const* readCommandParamType(tinyxml2::XMLNode const* node, ParamData& param);
std::string readCommandProto(tinyxml2::XMLElement const* element, std::string & returnType);
std::vector<std::string> readCommandSuccessCodes(std::map<std::string, std::string> const& attributes);
void readDefine(tinyxml2::XMLElement const* element, std::map<std::string, std::string> const& attributes);