Decode object from the file with the specified filename.
Synopsis
Declared in <balxml_decoder.h>
template<class TYPE>
int
decode(
char const* filename,
TYPE* object);
Description
Decode the specified object of parameterized TYPE from the file with the specified filename. Return 0 on success, and a non‐zero value otherwise. A compilation error will result unless TYPE conforms to the requirements of a bdlat sequence or choice, as described in bdlat_sequencefunctions and bdlat_choicefunctions.
Return Value
0 on success, and a non‐zero value otherwise
Parameters
Name |
Description |
filename |
path of the XML file to open |
object |
object being decoded |
Created with MrDocs