I have a big project with many classes in diferent files including their methods in diferent files also.
I have some RAF manipulation routines functions which are put in each class as members
1ST OPTION
Till now I declare them inside the class and i include a header outside them.
A diferent file for each class but all containing the same routines. e.g
1 2 3 4 5 6 7 8 9 10 11
class SERVER {
bool writeINT(string Filename, size_t pBlock intSTRUCT iCELL );
};
#include "routines.SERVER.h"
class EXECUTOR {
bool writeINT(string Filename, size_t pBlock intSTRUCT iCELL );
};
#include "routines.EXECUTOR.h"
routines.SERVER.h
Don't do that. I didn't quite understand what exactly you're trying to achieve, but I doubt any good solution would include including headers in random places.
Thank you so much. I doubt there are other solutions. I ll leave it Unsolved 24 hours however.
@hanst99
Many classes will use common routines like
Deep_Copy_This_Specific_Structure_Common_to_all_Clases
(STRUC sourceSTRUCT, STRUCT destinationSTRUCT);