/**************************************************************************** * Copyright (C) 2018 Woboq GmbH * Dominik Schmidt * https://woboq.com/codebrowser.html * * This file is part of the Woboq Code Browser. * * Commercial License Usage: * Licensees holding valid commercial licenses provided by Woboq may use * this file in accordance with the terms contained in a written agreement * between the licensee and Woboq. * For further information see https://woboq.com/codebrowser.html * * Alternatively, this work may be used under a Creative Commons * Attribution-NonCommercial-ShareAlike 3.0 (CC-BY-NC-SA 3.0) License. * http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_US * This license does not allow you to use the code browser to assist the * development of your commercial software. If you intent to do so, consider * purchasing a commercial licence. ****************************************************************************/ #include "projectmanager.h" #include std::vector ProjectManager::systemProjects() { std::vector projects; std::istringstream stream("include;/usr/include/"); std::string current; std::string name; while (std::getline(stream, current, ';')) { if(name.empty()) { name = current; } else { projects.emplace_back(name, current, ProjectInfo::Internal); name.clear(); } } return projects; }