-
October 4th, 2010, 09:53 AM
#1
marking a class as serializable dynamically!
Hi,
I'm working on a ASN1 decoding project. I've faced a problem that I could't figure out! The problem is ASN1C program is creating classes for me to use them for decoding process. But after decoding process I need to be able to serialize that class. But the problem is those classes (which are about 6000 classes)are being created without serializable attribute. So I need to add them attributes "serializable".
Is there any way to do this dynamically?
I'll appreciate any help.
Thanks in advance
-
October 4th, 2010, 02:29 PM
#2
Re: marking a class as serializable dynamically!
1) Modify the ASN1C program program to add the attribute for you
or
2) Perform some post processing that adds the attribute (after the ANS1C program has run).
-
October 5th, 2010, 01:28 AM
#3
Re: marking a class as serializable dynamically!
Originally Posted by Arjay
1) Modify the ASN1C program program to add the attribute for you
or
2) Perform some post processing that adds the attribute (after the ANS1C program has run).
1) I can't modify the program it is an external program (Qt Assistant Version 4.6.2).
2 ) Can you give me an example or link about it?
-
October 6th, 2010, 11:37 AM
#4
Re: marking a class as serializable dynamically!
Originally Posted by kubi081
2 ) Can you give me an example or link about it?
Look at PostSharp, that's his job.
- Make it run.
- Make it right.
- Make it fast.
Don't hesitate to rate my post.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|