R
Robby
Is it possible to save an entire namespace in some way? For example,
say I have this namespace:
foo.h
==================================================
namespace foo
{
int testVar1;
int testVar2
void testFunc1(void);
void testFunc2(void);
char testVar3[1024];
};
==================================================
And I use it for a while and then want to write the state of the
program to disk. Is there some way to copy all of the namespace
globals, without having to explicitly copy testVar1, testVar2, and
testVar3 - so that the code would not have to be modified if the
namespace is slightly changed?
say I have this namespace:
foo.h
==================================================
namespace foo
{
int testVar1;
int testVar2
void testFunc1(void);
void testFunc2(void);
char testVar3[1024];
};
==================================================
And I use it for a while and then want to write the state of the
program to disk. Is there some way to copy all of the namespace
globals, without having to explicitly copy testVar1, testVar2, and
testVar3 - so that the code would not have to be modified if the
namespace is slightly changed?