StrDict::Save( FILE * )

Marshals the StrDict into a text file.

Virtual?

No

 

Class

StrDict

 

Arguments

FILE *out

the file to save to

Returns

int

always equals 1

Notes

Save() stores the StrDict in a marshaled form to a text file, which can be recovered by using Load().

Example

The following example "saves" a StrDict by writing it to stdout.

void MyClientUser::OutputStat( StrDict *varList )
{
    varList->Save( stdout );
}

Executing the preceding code produces the following output:

> a.out fstat //depot/file.c

depotFile=//depot/file.c
clientFile=c:\test\depot\file.c
headAction=edit
headType=text
headTime=1020067607
headRev=4
headChange=2042
headModTime=1020067484
func=client-FstatInfo