Skip to content

Calling from C++ a C++ reg function by name #12

@marriusco

Description

@marriusco

How do I do this ?

        FFPython ffpython;
	
        ffpython.regClass<Foo(int)>("Foo")
		.regMethod(&Foo::getValue, "getValue")
		.regMethod(&Foo::setValue, "setValue")
		.regMethod(&Foo::testStl, "testStl")
		.regField(&Foo::nValue, "nValue");

         

Then I want to call from C++

     int rv = ffpython.call????<int>("module_name", "getValue");  
     ffpython.call????<int>("module_name", "setValue", 55);

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions