Is there possiblitity to portable way to serialize enum type?



 DEVELOP > c-Plus-Plus > Is there possiblitity to portable way to serialize enum type?

LINK TO THIS PAGE  


rating :  0   |  0


  Page 1 of 1

1

 
Topic: DEVELOP > c-Plus-Plus
User: "Voronkov Konstantin"
Date: 09 Sep 2004 03:57:01 PM
Object: Is there possiblitity to portable way to serialize enum type?
Hello, All!
I want to ask question whether there is portable way to serialize
enum type? Is it safe to threat enum as integer?
Best Regards,
Voronkov Konstantin
.

User: "Victor Bazarov"

Title: Re: Is there possiblitity to portable way to serialize enum type? 09 Sep 2004 04:27:48 PM
Voronkov Konstantin wrote:

I want to ask question whether there is portable way to serialize
enum type? Is it safe to threat enum as integer?

It is advisable to write conversion functions instead of "treating
enums" as anything. That's basically what serialisation is about,
you define the external representation and write functions that
convert something to it and from it to something.
V
.


  Page 1 of 1

1

 


Related Articles
 

NEWER

pg.1232     pg.940     pg.716     pg.544     pg.412     pg.311     pg.234     pg.175     pg.130     pg.96     pg.70     pg.50     pg.35     pg.24     pg.16     pg.10     pg.6     pg.3     pg.1

OLDER