src/CSLModels.cpp
void CSLModel::CompModelName ()
{
    // Find the last component of the path
    size_t sep = xsbAircraftPath.find_last_of("\\/:");
    modelName = sep == std::string::npos ? xsbAircraftPath : xsbAircraftPath.substr(sep+1);
    // Add the id to it
    modelName += ' ';
    modelName += shortId;
}
// Puts together the model name string from a path component and the model's id
Puts together the model name string from a path component and the model's id
Puts together the model name string from a path component and the model ' s id
void CSLModel::CompModelName ()
{
    size_t sep = xsbAircraftPath.find_last_of("\\/:");
    modelName = sep == std::string::npos ? xsbAircraftPath : xsbAircraftPath.substr(sep+1);
    modelName += ' ';
    modelName += shortId;
}
void CSLModel :: CompModelName ( ) { size_t sep = xsbAircraftPath . find_last_of ( " \\ " ) ; modelName = sep == std :: string :: npos ? xsbAircraftPath : xsbAircraftPath . substr ( sep + 1 ) ; modelName += ' ' ; modelName += shortId ; }
Puts together the model name string from a path component and the model's id
Puts together the model name string from a path component and the model ' s id
// Find the last component of the path // Add the id to it