Feature #643

Xmlize default value

Added by Iñaki Zabala almost 7 years ago. Updated over 6 years ago.

Status:ApprovedStart date:01/12/2014
Priority:NormalDue date:
Assignee:Iñaki Zabala% Done:

0%

Category:CoreSpent time:-
Target version:-

Description

A possible idea to improve Xmlize/Serialize functions would be to add a default value to be used when no data is found loading the class.

It could be like this

void Xmlize(XmlIO &xml) {
    xml
        ("MyString", myString, "Default value")
        ("MyDouble", myDouble, 1200.2)
    ;
}

History

#1 Updated by Miroslav Fidler over 6 years ago

  • Status changed from New to Ready for QA
  • Assignee changed from Miroslav Fidler to Iñaki Zabala

#2 Updated by Miroslav Fidler over 6 years ago

  • Status changed from Ready for QA to Approved

Also available in: Atom PDF