T
fgRegressionBaseline(
    const T &           val,
    const std::string & path,
    const std::string & name)
{
    if (FgTempFile::getKeepTempFiles())
        fgSaveXml(name+"_baseline.xml",val);
    T       base;
    fgLoadXml(fgDataDir()+path+name+"_baseline.xml",base);
    return base;
}
 void
 readNode(FgDgn<T> node,const FgString & uid,bool binary)
 {
     T       val;
     if (binary) {
         if (fgLoadPBin(m_storeBase+uid,val,false))
             dg.setNodeVal(node,val);
     }
     else {
         if (fgLoadXml(m_storeBase+uid+".xml",val,false))
             dg.setNodeVal(node,val);
     }
 }