project: added project skeleton
Skeleton includes emtpy implementations of application class structure. Source groups were added to CMakeLists to define filters in Visual Studio.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
#include "data/Edge.h"
|
||||
|
||||
#include "data/Node.h"
|
||||
|
||||
Edge::Edge(std::weak_ptr<Node> from, std::weak_ptr<Node> to)
|
||||
: m_from(from)
|
||||
, m_to(to)
|
||||
{
|
||||
}
|
||||
|
||||
Edge::~Edge()
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
#ifndef EDGE_H
|
||||
#define EDGE_H
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "data/Element.h"
|
||||
|
||||
class Node;
|
||||
|
||||
class Edge: public Element
|
||||
{
|
||||
public:
|
||||
Edge(std::weak_ptr<Node> from, std::weak_ptr<Node> to);
|
||||
~Edge();
|
||||
|
||||
private:
|
||||
const std::weak_ptr<Node> m_from;
|
||||
const std::weak_ptr<Node> m_to;
|
||||
};
|
||||
|
||||
|
||||
#endif // EDGE_H
|
||||
@@ -0,0 +1 @@
|
||||
#include "data/Element.h"
|
||||
@@ -0,0 +1,9 @@
|
||||
#ifndef ELEMENT_H
|
||||
#define ELEMENT_H
|
||||
|
||||
class Element
|
||||
{
|
||||
};
|
||||
|
||||
|
||||
#endif // ELEMENT_H
|
||||
@@ -0,0 +1 @@
|
||||
#include "data/ElementIndex.h"
|
||||
@@ -0,0 +1,9 @@
|
||||
#ifndef ELEMENT_INDEX_H
|
||||
#define ELEMENT_INDEX_H
|
||||
|
||||
class ElementIndex
|
||||
{
|
||||
};
|
||||
|
||||
|
||||
#endif // ELEMENT_INDEX_H
|
||||
@@ -0,0 +1,9 @@
|
||||
#include "data/Graph.h"
|
||||
|
||||
Graph::Graph()
|
||||
{
|
||||
}
|
||||
|
||||
Graph::~Graph()
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
#ifndef GRAPH_H
|
||||
#define GRAPH_H
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "data/Edge.h"
|
||||
#include "data/Node.h"
|
||||
|
||||
class Graph
|
||||
{
|
||||
public:
|
||||
Graph();
|
||||
~Graph();
|
||||
|
||||
private:
|
||||
std::vector<std::shared_ptr<Node>> m_nodes;
|
||||
std::vector<std::shared_ptr<Edge>> m_edges;
|
||||
};
|
||||
|
||||
|
||||
#endif // GRAPH_H
|
||||
@@ -0,0 +1,9 @@
|
||||
#include "data/GraphStorage.h"
|
||||
|
||||
GraphStorage::GraphStorage()
|
||||
{
|
||||
}
|
||||
|
||||
GraphStorage::~GraphStorage()
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
#ifndef GRAPH_STORAGE_H
|
||||
#define GRAPH_STORAGE_H
|
||||
|
||||
#include "data/Graph.h"
|
||||
|
||||
class GraphStorage
|
||||
{
|
||||
public:
|
||||
GraphStorage();
|
||||
~GraphStorage();
|
||||
|
||||
private:
|
||||
Graph m_graph;
|
||||
};
|
||||
|
||||
|
||||
#endif // GRAPH_STORAGE_H
|
||||
@@ -0,0 +1 @@
|
||||
#include "data/Node.h"
|
||||
@@ -0,0 +1,11 @@
|
||||
#ifndef NODE_H
|
||||
#define NODE_H
|
||||
|
||||
#include "data/Element.h"
|
||||
|
||||
class Node: public Element
|
||||
{
|
||||
};
|
||||
|
||||
|
||||
#endif // NODE_H
|
||||
@@ -0,0 +1,5 @@
|
||||
#include "data/Parser.h"
|
||||
|
||||
Parser::~Parser()
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
#ifndef PARSER_H
|
||||
#define PARSER_H
|
||||
|
||||
class Parser
|
||||
{
|
||||
virtual ~Parser();
|
||||
};
|
||||
|
||||
|
||||
#endif // PARSER_H
|
||||
@@ -0,0 +1 @@
|
||||
#include "data/SearchIndex.h"
|
||||
@@ -0,0 +1,9 @@
|
||||
#ifndef SEARCH_INDEX_H
|
||||
#define SEARCH_INDEX_H
|
||||
|
||||
class SearchIndex
|
||||
{
|
||||
};
|
||||
|
||||
|
||||
#endif // SEARCH_INDEX_H
|
||||
@@ -0,0 +1,18 @@
|
||||
#include "data/TextLocation.h"
|
||||
|
||||
#include "data/Element.h"
|
||||
#include "data/TextLocationLine.h"
|
||||
|
||||
TextLocation::TextLocation(
|
||||
const std::weak_ptr<TextLocationLine>& textLocationLine,
|
||||
const std::weak_ptr<Element>& element,
|
||||
unsigned int column)
|
||||
: m_textLocationLine(textLocationLine)
|
||||
, m_element(element)
|
||||
, m_column(column)
|
||||
{
|
||||
}
|
||||
|
||||
TextLocation::~TextLocation()
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
#ifndef TEXT_LOCATION_H
|
||||
#define TEXT_LOCATION_H
|
||||
|
||||
#include <memory>
|
||||
|
||||
class Element;
|
||||
class TextLocationLine;
|
||||
|
||||
class TextLocation
|
||||
{
|
||||
public:
|
||||
TextLocation(
|
||||
const std::weak_ptr<TextLocationLine>& textLocationLine,
|
||||
const std::weak_ptr<Element>& element,
|
||||
unsigned int column);
|
||||
|
||||
~TextLocation();
|
||||
|
||||
private:
|
||||
const unsigned int m_column;
|
||||
const std::weak_ptr<TextLocationLine> m_textLocationLine;
|
||||
const std::weak_ptr<Element> m_element;
|
||||
};
|
||||
|
||||
|
||||
#endif // TEXT_LOCATION_H
|
||||
@@ -0,0 +1,10 @@
|
||||
#include "data/TextLocationFile.h"
|
||||
|
||||
TextLocationFile::TextLocationFile(const std::string& filePath)
|
||||
: m_filePath(filePath)
|
||||
{
|
||||
}
|
||||
|
||||
TextLocationFile::~TextLocationFile()
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
#ifndef TEXT_LOCATION_FILE_H
|
||||
#define TEXT_LOCATION_FILE_H
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "data/TextLocationLine.h"
|
||||
|
||||
class TextLocationFile
|
||||
{
|
||||
public:
|
||||
TextLocationFile(const std::string& filePath);
|
||||
~TextLocationFile();
|
||||
|
||||
private:
|
||||
const std::string m_filePath;
|
||||
std::vector<std::shared_ptr<TextLocationLine>> m_textLocationLine;
|
||||
};
|
||||
|
||||
|
||||
#endif // TEXT_LOCATION_FILE_H
|
||||
@@ -0,0 +1,13 @@
|
||||
#include "data/TextLocationLine.h"
|
||||
|
||||
#include "data/TextLocationFile.h"
|
||||
|
||||
TextLocationLine::TextLocationLine(const std::weak_ptr<TextLocationFile>& textLocationFile, unsigned int lineNumber)
|
||||
: m_textLocationFile(textLocationFile)
|
||||
, m_lineNumber(lineNumber)
|
||||
{
|
||||
}
|
||||
|
||||
TextLocationLine::~TextLocationLine()
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
#ifndef TEXT_LOCATION_LINE_H
|
||||
#define TEXT_LOCATION_LINE_H
|
||||
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
#include "data/TextLocation.h"
|
||||
|
||||
class TextLocationFile;
|
||||
|
||||
class TextLocationLine
|
||||
{
|
||||
public:
|
||||
TextLocationLine(const std::weak_ptr<TextLocationFile>& textLocationFile, unsigned int lineNumber);
|
||||
|
||||
~TextLocationLine();
|
||||
|
||||
private:
|
||||
const std::weak_ptr<TextLocationFile> m_textLocationFile;
|
||||
const unsigned int m_lineNumber;
|
||||
|
||||
const std::vector<std::shared_ptr<TextLocation>> m_textLocations;
|
||||
};
|
||||
|
||||
|
||||
#endif // TEXT_LOCATION_LINE_H
|
||||
@@ -0,0 +1,9 @@
|
||||
#include "data/TextLocationStorage.h"
|
||||
|
||||
TextLocationStorage::TextLocationStorage()
|
||||
{
|
||||
}
|
||||
|
||||
TextLocationStorage::~TextLocationStorage()
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
#ifndef TEXT_LOCATION_STORAGE_H
|
||||
#define TEXT_LOCATION_STORAGE_H
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "data/TextLocationFile.h"
|
||||
|
||||
class TextLocationStorage
|
||||
{
|
||||
public:
|
||||
TextLocationStorage();
|
||||
~TextLocationStorage();
|
||||
|
||||
private:
|
||||
std::vector<std::shared_ptr<TextLocationFile>> m_textLocationFiles;
|
||||
};
|
||||
|
||||
|
||||
#endif // TEXT_LOCATION_STORAGE_H
|
||||
@@ -0,0 +1 @@
|
||||
#include "data/access/CodeAccess.h"
|
||||
@@ -0,0 +1,9 @@
|
||||
#ifndef CODE_ACCESS_H
|
||||
#define CODE_ACCESS_H
|
||||
|
||||
class CodeAccess
|
||||
{
|
||||
};
|
||||
|
||||
|
||||
#endif // CODE_ACCESS_H
|
||||
@@ -0,0 +1 @@
|
||||
#include "data/access/GraphAccess.h"
|
||||
@@ -0,0 +1,9 @@
|
||||
#ifndef GRAPH_ACCESS_H
|
||||
#define GRAPH_ACCESS_H
|
||||
|
||||
class GraphAccess
|
||||
{
|
||||
};
|
||||
|
||||
|
||||
#endif // GRAPH_ACCESS_H
|
||||
Reference in New Issue
Block a user