logic: visual studio solution parsing
Can now parse visual studio solutions. VS Plugin can send a command, parsing is implemented in Coati. Some minor changes: added project file icon, added language check to vs plugin
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
#ifndef I_SOLUTION_PARSER_H
|
||||
#define I_SOLUTION_PARSER_H
|
||||
|
||||
#include <fstream>
|
||||
#include <vector>
|
||||
|
||||
class ISolutionParser
|
||||
{
|
||||
public:
|
||||
ISolutionParser()
|
||||
: m_solutionPath("")
|
||||
, m_solution("")
|
||||
{};
|
||||
virtual ~ISolutionParser(){};
|
||||
|
||||
void openSolutionFile(const std::string& solutionFilePath);
|
||||
unsigned int getSolutionCharCount() const;
|
||||
|
||||
virtual std::string getSolutionName() = 0; // to be overwritten to account for different file endings
|
||||
std::string getSolutionPath();
|
||||
|
||||
virtual std::vector<std::string> getProjects() = 0;
|
||||
virtual std::vector<std::string> getProjectFiles() = 0;
|
||||
virtual std::vector<std::string> getProjectItems() = 0;
|
||||
|
||||
protected:
|
||||
std::string loadFile(const std::string& filePath);
|
||||
|
||||
std::string m_solutionName;
|
||||
std::string m_solutionPath;
|
||||
std::string m_solution;
|
||||
};
|
||||
|
||||
#endif // I_SOLUTION_PARSER_H
|
||||
Reference in New Issue
Block a user