ui: vs plugin integration
Reworked vs solution based project setup to utilize new CDB feature
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#ifndef MESSAGE_IDE_CREATE_CDB_H
|
||||
#define MESSAGE_IDE_CREATE_CDB_H
|
||||
|
||||
#include "utility/messaging/Message.h"
|
||||
|
||||
class MessageIDECreateCDB : public Message<MessageIDECreateCDB>
|
||||
{
|
||||
public:
|
||||
MessageIDECreateCDB()
|
||||
{
|
||||
}
|
||||
|
||||
static const std::string getStaticType()
|
||||
{
|
||||
return "MessageIDECreateCDB";
|
||||
}
|
||||
|
||||
virtual void print(std::ostream& os) const
|
||||
{
|
||||
os << "Create CDB from current solution";
|
||||
}
|
||||
};
|
||||
|
||||
#endif // MESSAGE_IDE_CREATE_CDB_H
|
||||
@@ -9,6 +9,7 @@ class MessageProjectNew
|
||||
public:
|
||||
MessageProjectNew()
|
||||
: solutionPath("")
|
||||
, headerPaths()
|
||||
, ideId("")
|
||||
{
|
||||
}
|
||||
@@ -23,12 +24,38 @@ public:
|
||||
return solutionPath.size() > 0;
|
||||
}
|
||||
|
||||
bool fromCDB() const
|
||||
{
|
||||
if (solutionPath.length() > 0)
|
||||
{
|
||||
size_t pos = solutionPath.find_last_of('.');
|
||||
if (pos != std::string::npos)
|
||||
{
|
||||
std::string extension = solutionPath.substr(pos + 1);
|
||||
|
||||
return (extension == "json");
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
void setSolutionPath(const std::string& path)
|
||||
{
|
||||
solutionPath = path;
|
||||
}
|
||||
|
||||
void setHeaderPaths(const std::vector<std::string>& headerPaths)
|
||||
{
|
||||
this->headerPaths = headerPaths;
|
||||
}
|
||||
|
||||
std::string solutionPath;
|
||||
std::vector<std::string> headerPaths;
|
||||
std::string ideId;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user