Function and class list
by Charlie Malbaurn · in Torque Game Engine · 12/16/2004 (5:05 am) · 7 replies
Hey all,
Sorry to ask this question since I had part of the answer before. But after a clean format of the comp, I've lost the information.
Anyway...
I know there is a way to get a list of all scriptable functions and classes through the console to save to a file but I don't remember what it was.
So if anyone can refresh my memory, I will be grateful.
Also if there is a way to save it with another file name, that would be great.
Thanks,
Charlie
Sorry to ask this question since I had part of the answer before. But after a clean format of the comp, I've lost the information.
Anyway...
I know there is a way to get a list of all scriptable functions and classes through the console to save to a file but I don't remember what it was.
So if anyone can refresh my memory, I will be grateful.
Also if there is a way to save it with another file name, that would be great.
Thanks,
Charlie
About the author
#2
12/16/2004 (11:34 am)
Enclose the url in [ URL ] tags.
#3
I need the console commands to dump them to a text file for a program that I am working on.
If someone adds functions or classes to the engine, I need to be able to get to them.
The two console functions are ConsoleDumpClasses() and the other is ConsoleDumpFunctions() but i still dont remember how to write them to a file.
Edit: those are the two functions and it writes it to the console.log file.
If anyone knows how to save them to a different file. please let me know
12/16/2004 (10:34 pm)
Thanks Eric, but I have a list of the classes and members. I need the console commands to dump them to a text file for a program that I am working on.
If someone adds functions or classes to the engine, I need to be able to get to them.
The two console functions are ConsoleDumpClasses() and the other is ConsoleDumpFunctions() but i still dont remember how to write them to a file.
Edit: those are the two functions and it writes it to the console.log file.
If anyone knows how to save them to a different file. please let me know
#4
12/17/2004 (6:45 am)
AFAIK you cant save them to another file. I did write a quick routine in VB for Access to import this file and spit it all out into html files with a quick index. Its not a particularly hard thing to do as the dumps are well structured.
#5
I've gone through the console .h files and they are more desctriptive. I need to learn more about doxygen and how it finds the information out. like Daan Broekhof's wonderful chm file does.
It's about what I need but I also don't want people to have to run doxygen to run my programs.
I just need to get all classes and there members in a some sort of order for the editor I've been working on.
I guess I could do it by hand . I don't want to do that though. I want the program to reference functions and classes that a user may have added. Or if there is any changes in releases
I'll be busy for a while. Again :)
12/17/2004 (8:55 am)
The problem with the dumps, as far as I can see, is they are structured to the point where they list all classes and all functions but they do not however list the function arguments and descriptions as,say, doxygen does. I've gone through the console .h files and they are more desctriptive. I need to learn more about doxygen and how it finds the information out. like Daan Broekhof's wonderful chm file does.
It's about what I need but I also don't want people to have to run doxygen to run my programs.
I just need to get all classes and there members in a some sort of order for the editor I've been working on.
I guess I could do it by hand . I don't want to do that though. I want the program to reference functions and classes that a user may have added. Or if there is any changes in releases
I'll be busy for a while. Again :)
#6
12/17/2004 (9:20 am)
Doxygen is your friend. Assuming you have the appropriate comments in the source code, it will do all this automatically for you :)
#7
What will probably happen is that I will use Doxygen myself and just create the file for my editor to use.
12/17/2004 (12:25 pm)
Doxygen is a nice program. But as a rule of thumb. I try to create programs that automate things on there own. What will probably happen is that I will use Doxygen myself and just create the file for my editor to use.
Torque Owner Eric Lavigne
Thanks, Mark.