Home » U++ Library support » U++ Core » ...nize class
...nize class [message #36223] |
Mon, 14 May 2012 13:17 |
|
koldo
Messages: 3361 Registered: August 2008
|
Senior Veteran |
|
|
Hello Mirek
Now the syntax of Xmlize and Jsnize is identical. For example:
void SystemOverview::Xmlize(XmlIO &xml) {
xml
("signature", signature)("biosVersion", biosVersion)("biosSerial", biosSerial)
("biosReleaseDate", biosReleaseDate)("computerName", computerName)("kernel", kernel)
("kerVersion", kerVersion)("kerArchitecture", kerArchitecture)("distro", distro)
("distVersion", distVersion)("desktop", desktop)("deskVersion", deskVersion)
("compilerName", compilerName)("compilerVersion", compilerVersion)
("compilerTime", compilerTime)("compilerMode", compilerMode)
;
}
void SystemOverview::Jsonize(JsonIO& json) {
json
("signature", signature)("biosVersion", biosVersion)("biosSerial", biosSerial)
("biosReleaseDate", biosReleaseDate)("computerName", computerName)("kernel", kernel)
("kerVersion", kerVersion)("kerArchitecture", kerArchitecture)("distro", distro)
("distVersion", distVersion)("desktop", desktop)("deskVersion", deskVersion)
("compilerName", compilerName)("compilerVersion", compilerVersion)
("compilerTime", compilerTime)("compilerMode", compilerMode)
;
}
Would it be possible to have a kind of ...nize class to have only one basic implementation per class of the Jsonize and Xmlize methods?
Best regards
IƱaki
|
|
|
|
|
...nize class
By: koldo on Mon, 14 May 2012 13:17
|
|
|
Re: ...nize class
|
|
|
Re: ...nize class
|
|
|
Re: ...nize class
By: mirek on Wed, 16 May 2012 11:42
|
|
|
Re: ...nize class
By: koldo on Wed, 16 May 2012 12:01
|
|
|
Re: ...nize class
By: mirek on Wed, 16 May 2012 12:04
|
|
|
Re: ...nize class
By: koldo on Wed, 16 May 2012 15:01
|
|
|
Re: ...nize class
By: mirek on Sun, 20 May 2012 17:05
|
|
|
Re: ...nize class
By: koldo on Sun, 20 May 2012 20:35
|
|
|
Re: ...nize class
By: koldo on Sun, 20 May 2012 22:31
|
|
|
Re: ...nize class
By: koldo on Sun, 20 May 2012 22:42
|
|
|
Re: ...nize class
By: mirek on Mon, 21 May 2012 13:33
|
|
|
Re: ...nize class
By: koldo on Mon, 21 May 2012 13:46
|
|
|
Re: ...nize class
By: mirek on Mon, 21 May 2012 14:50
|
|
|
Re: ...nize class
By: koldo on Tue, 22 May 2012 11:11
|
Goto Forum:
Current Time: Mon May 13 10:37:15 CEST 2024
Total time taken to generate the page: 0.02976 seconds
|