Ejemplo n.º 1
0
//___________________________________________________________________________________________
void  KVValues::Print(Option_t*) const
{
   //Info("Print","%s : %d values computed",GetName(),kval_tot);
   printf("KVValues::Print_NVL\n%s : %d values computed\n", GetName(), kval_tot);
   for (Int_t nn = 0; nn < kval_tot; nn += 1) {
      printf("- %d %s %lf\n", nn, GetNameAt(nn), GetValue(nn));
   }
}
Ejemplo n.º 2
0
void CStringTable::PopulateXmlNode(CXmlTree& Tree, CTreeElement< CXmlNode > * pXmlNode) const {  
    CXmlNode ConfigNode, DataNode;
    CString ValueData;
    
    for (int i=0;i<(int) GetSize();i++) {      
        ConfigNode.SetType(xmlnOpen);
        ConfigNode.SetData(GetNameAt(i));
        CTreeElement< CXmlNode > * pXmlConfigNode = Tree.AddChildLast(pXmlNode, ConfigNode);
        
        DataNode.SetType(xmlnData);
        ValueData = GetValueAt(i);
        ValueData.Replace("\\","\\\\");
        DataNode.SetData(ValueData);
        Tree.AddChildLast(pXmlConfigNode, DataNode);
        
        ConfigNode.SetType(xmlnClose);
        Tree.AddChildLast(pXmlNode, ConfigNode);
    }
    
}