Is there a way to get the function signatures of every function in the OpenCV.js API?
I need a way to get the function signatures of every top-level(?) function in the OpenCV.js API (top level: meaning every function that the end-user can use), so I can store them in a structured way, perhaps in an xml. Is there a way to get that information?
Thank you.
just curious, what do you need this for ? and which language are you talking about ?
@berak I'm trying to create a web based visual programming tool for OpenCV that allows flow based programming. I don't want to manually create or update my components with every update to OpenCV API, so I need a way to fetch API function signatures. (I've also edited my question into saying "every function in the API")
maybe the python wrapper which is generating the java code would be a good starting point. But if its for java - i would use reflection.
you could also use a html parser and parse then generated documentation.
python as well as java bindings are auto-generated from the c++ headers, you could try something similar
hehe, guilty, too... (but i gave up on the idea, ~2500 functions were just too much to manage ....)
Just curious are we talking about some kind of bpm software? It usually works with building blocks of functionalities - you don't need to expose every api function, this is too fine grained.
nm -C opencv_core.so
(and a lot of filtering)http://www.dependencywalker.com/
@holger Yes it's sort of similar to block programming, except it's flow-based. It is practically the same thing. I just need the return type and parameter types of every API function. (Maybe not every API function as you have said: I'm not sure on that. I just mean to say "every end-user-usable, or 'top-level?' function in the API." (Sorry I'm not being clear enough)
I'm considering the options you guys are putting forward, thank you a lot. I'll keep the question open because we don't yet have a definitive solution that doesn't require further processing, if such solution even exists.
oh, now finally we know, it's about js ? xD
so you need js signatures ? look here and here