Ejemplo n.º 1
0
void ConfigFileWriter::writeSlotsFile(std::ostream& configFile,
                                      Config& config,
                                      NodeSet& ns)
{
    const Parameter &slotParm = config.getParameter("LINK-16-SLOT-FILE");
    if (ns.usesSlots() && slotParm != Parameter::unknownParameter)
    {
        configFile << slotParm << std::endl;

        std::string filename = slotParm.value;
        std::fstream out;
        out.open(filename.c_str(), std::fstream::out | std::fstream::trunc);
    }
}