Added support for bool in ArgumentParser::Parameter.
Added support for using Input::read(...) methods using ArgumentParser::Paramter to adapter to multiple paramter types.
This commit is contained in:
@@ -232,6 +232,10 @@ BEGIN_VALUE_REFLECTOR(osg::ArgumentParser)
|
||||
__bool__isNumber__C5_char_P1_S,
|
||||
"Return true if specified parameter is a number. ",
|
||||
"");
|
||||
I_StaticMethod1(bool, isBool, IN, const char *, str,
|
||||
__bool__isBool__C5_char_P1_S,
|
||||
"Return true if specified parameter is a bool. ",
|
||||
"");
|
||||
I_SimpleProperty(std::string, ApplicationName,
|
||||
__std_string__getApplicationName,
|
||||
0);
|
||||
@@ -245,6 +249,7 @@ END_REFLECTOR
|
||||
|
||||
BEGIN_ENUM_REFLECTOR(osg::ArgumentParser::Parameter::ParameterType)
|
||||
I_DeclaringFile("osg/ArgumentParser");
|
||||
I_EnumLabel(osg::ArgumentParser::Parameter::BOOL_PARAMETER);
|
||||
I_EnumLabel(osg::ArgumentParser::Parameter::FLOAT_PARAMETER);
|
||||
I_EnumLabel(osg::ArgumentParser::Parameter::DOUBLE_PARAMETER);
|
||||
I_EnumLabel(osg::ArgumentParser::Parameter::INT_PARAMETER);
|
||||
@@ -254,6 +259,11 @@ END_REFLECTOR
|
||||
|
||||
BEGIN_VALUE_REFLECTOR(osg::ArgumentParser::Parameter)
|
||||
I_DeclaringFile("osg/ArgumentParser");
|
||||
I_Constructor1(IN, bool &, value,
|
||||
Properties::NON_EXPLICIT,
|
||||
____Parameter__bool_R1,
|
||||
"",
|
||||
"");
|
||||
I_Constructor1(IN, float &, value,
|
||||
Properties::NON_EXPLICIT,
|
||||
____Parameter__float_R1,
|
||||
|
||||
@@ -28,6 +28,8 @@
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
TYPE_NAME_ALIAS(osg::ArgumentParser::Parameter, osgDB::Input::Parameter)
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgDB::Input)
|
||||
I_DeclaringFile("osgDB/Input");
|
||||
I_BaseType(osgDB::FieldReaderIterator);
|
||||
@@ -109,6 +111,51 @@ BEGIN_OBJECT_REFLECTOR(osgDB::Input)
|
||||
__void__registerUniqueIDForObject__C5_std_string_R1__osg_Object_P1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(bool, read, IN, const char *, str,
|
||||
Properties::NON_VIRTUAL,
|
||||
__bool__read__C5_char_P1,
|
||||
"",
|
||||
"");
|
||||
I_Method2(bool, read, IN, const char *, str, IN, osgDB::Input::Parameter, value1,
|
||||
Properties::NON_VIRTUAL,
|
||||
__bool__read__C5_char_P1__Parameter,
|
||||
"",
|
||||
"");
|
||||
I_Method3(bool, read, IN, const char *, str, IN, osgDB::Input::Parameter, value1, IN, osgDB::Input::Parameter, value2,
|
||||
Properties::NON_VIRTUAL,
|
||||
__bool__read__C5_char_P1__Parameter__Parameter,
|
||||
"",
|
||||
"");
|
||||
I_Method4(bool, read, IN, const char *, str, IN, osgDB::Input::Parameter, value1, IN, osgDB::Input::Parameter, value2, IN, osgDB::Input::Parameter, value3,
|
||||
Properties::NON_VIRTUAL,
|
||||
__bool__read__C5_char_P1__Parameter__Parameter__Parameter,
|
||||
"",
|
||||
"");
|
||||
I_Method5(bool, read, IN, const char *, str, IN, osgDB::Input::Parameter, value1, IN, osgDB::Input::Parameter, value2, IN, osgDB::Input::Parameter, value3, IN, osgDB::Input::Parameter, value4,
|
||||
Properties::NON_VIRTUAL,
|
||||
__bool__read__C5_char_P1__Parameter__Parameter__Parameter__Parameter,
|
||||
"",
|
||||
"");
|
||||
I_Method6(bool, read, IN, const char *, str, IN, osgDB::Input::Parameter, value1, IN, osgDB::Input::Parameter, value2, IN, osgDB::Input::Parameter, value3, IN, osgDB::Input::Parameter, value4, IN, osgDB::Input::Parameter, value5,
|
||||
Properties::NON_VIRTUAL,
|
||||
__bool__read__C5_char_P1__Parameter__Parameter__Parameter__Parameter__Parameter,
|
||||
"",
|
||||
"");
|
||||
I_Method7(bool, read, IN, const char *, str, IN, osgDB::Input::Parameter, value1, IN, osgDB::Input::Parameter, value2, IN, osgDB::Input::Parameter, value3, IN, osgDB::Input::Parameter, value4, IN, osgDB::Input::Parameter, value5, IN, osgDB::Input::Parameter, value6,
|
||||
Properties::NON_VIRTUAL,
|
||||
__bool__read__C5_char_P1__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter,
|
||||
"",
|
||||
"");
|
||||
I_Method8(bool, read, IN, const char *, str, IN, osgDB::Input::Parameter, value1, IN, osgDB::Input::Parameter, value2, IN, osgDB::Input::Parameter, value3, IN, osgDB::Input::Parameter, value4, IN, osgDB::Input::Parameter, value5, IN, osgDB::Input::Parameter, value6, IN, osgDB::Input::Parameter, value7,
|
||||
Properties::NON_VIRTUAL,
|
||||
__bool__read__C5_char_P1__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter,
|
||||
"",
|
||||
"");
|
||||
I_Method9(bool, read, IN, const char *, str, IN, osgDB::Input::Parameter, value1, IN, osgDB::Input::Parameter, value2, IN, osgDB::Input::Parameter, value3, IN, osgDB::Input::Parameter, value4, IN, osgDB::Input::Parameter, value5, IN, osgDB::Input::Parameter, value6, IN, osgDB::Input::Parameter, value7, IN, osgDB::Input::Parameter, value8,
|
||||
Properties::NON_VIRTUAL,
|
||||
__bool__read__C5_char_P1__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter,
|
||||
"",
|
||||
"");
|
||||
I_SimpleProperty(const osgDB::ReaderWriter::Options *, Options,
|
||||
__C5_ReaderWriter_Options_P1__getOptions,
|
||||
__void__setOptions__C5_ReaderWriter_Options_P1);
|
||||
|
||||
Reference in New Issue
Block a user