All these objects have been design to be written to or read from a persistent file. The following example shows how to write the previously created objects into such a file :
//-- Writing { char *fileout = "myfile.ppf"; string tag; POutPersist outppf(fileout); tag = "H"; outppf.PutObject(H,tag); tag = "H2"; outppf.PutObject(H2,tag); tag = "NT"; outppf.PutObject(NT,tag); } // closing ``}'' destroy ``outppf'' and automatically close the file !
Sophya graphical tools (spiapp) can automatically display and operate all these objects.