src/CSLModels.cpp
void AcTxtLine_DEPENDENCY (std::vector<std::string>& tokens,
                           int lnNr)
{
    if (tokens.size() >= 2) {
        // We try finding the package and issue a warning if we didn't...but continue anyway
        if (glob.mapCSLPkgs.find(tokens[1]) == glob.mapCSLPkgs.cend()) {
            LOG_MSG(logWARN, WARN_PKG_DPDCY_FAILED, lnNr, tokens[1].c_str());
        }
    }
    else
        LOG_MSG(logERR, ERR_TOO_FEW_PARAM, lnNr, tokens[0].c_str(), 1);
}
/// Process an DEPENDENCY line of an `xsb_aircraft.txt` file
Process an DEPENDENCY line of an `xsb_aircraft.txt` file
Process an DEPENDENCY line of an ` xsb_aircraft . txt ` file
void AcTxtLine_DEPENDENCY (std::vector<std::string>& tokens,
                           int lnNr)
{
    if (tokens.size() >= 2) {
        if (glob.mapCSLPkgs.find(tokens[1]) == glob.mapCSLPkgs.cend()) {
            LOG_MSG(logWARN, WARN_PKG_DPDCY_FAILED, lnNr, tokens[1].c_str());
        }
    }
    else
        LOG_MSG(logERR, ERR_TOO_FEW_PARAM, lnNr, tokens[0].c_str(), 1);
}
void AcTxtLine_DEPENDENCY ( std :: vector < std :: string > & tokens , int lnNr ) { if ( tokens . size ( ) >= 2 ) { if ( glob . mapCSLPkgs . find ( tokens [ 1 ] ) == glob . mapCSLPkgs . cend ( ) ) { LOG_MSG ( logWARN , WARN_PKG_DPDCY_FAILED , lnNr , tokens [ 1 ] . c_str ( ) ) ; } } else LOG_MSG ( logERR , ERR_TOO_FEW_PARAM , lnNr , tokens [ 0 ] . c_str ( ) , 1 ) ; }
Process an DEPENDENCY line of an `xsb_aircraft.txt` file
Process an DEPENDENCY line of an ` xsb_aircraft . txt ` file
// We try finding the package and issue a warning if we didn't...but continue anyway