Skip to main content
gamedev.net
🔒 Locked

split header class code into seperate files

Started by aboeing 1 reply 1.1k views
Original Post
aboeing
aboeing
Hi, I have inherited a poorley written C++ program where pretty much all the code is written into .h files, there are about 30 classes. Does anyone know of a program that can split this header file into seperate .h and .cpp files for each class?
Endar
Endar
Unfortunately, no, but why don't you just do it yourself?

I suppose 30 can be a lot if they are even moderately sized classes, but I always write my code in header files and then after it's mostly working, I split. It usually only take a couple of minutes (or less) for each split, even if the classes and amount of code is big.
[size="2"][size=2]Mort, Duke of Sto Helit: NON TIMETIS MESSOR -- Don't Fear The Reaper
aboeing
aboeing
Thanks for the reply, yeah, I guess I will, I just thought someone might be able to point me to a tool that would save me an hour of my life.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.