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:
Eberhard Graether
2014-03-31 17:59:52 +02:00
parent b5f91e62fa
commit d4e3433e5d
72 changed files with 957 additions and 57 deletions
+13
View File
@@ -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()
{
}
+22
View File
@@ -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
+1
View File
@@ -0,0 +1 @@
#include "data/Element.h"
+9
View File
@@ -0,0 +1,9 @@
#ifndef ELEMENT_H
#define ELEMENT_H
class Element
{
};
#endif // ELEMENT_H
+1
View File
@@ -0,0 +1 @@
#include "data/ElementIndex.h"
+9
View File
@@ -0,0 +1,9 @@
#ifndef ELEMENT_INDEX_H
#define ELEMENT_INDEX_H
class ElementIndex
{
};
#endif // ELEMENT_INDEX_H
+9
View File
@@ -0,0 +1,9 @@
#include "data/Graph.h"
Graph::Graph()
{
}
Graph::~Graph()
{
}
+21
View File
@@ -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
+9
View File
@@ -0,0 +1,9 @@
#include "data/GraphStorage.h"
GraphStorage::GraphStorage()
{
}
GraphStorage::~GraphStorage()
{
}
+17
View File
@@ -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
+1
View File
@@ -0,0 +1 @@
#include "data/Node.h"
+11
View File
@@ -0,0 +1,11 @@
#ifndef NODE_H
#define NODE_H
#include "data/Element.h"
class Node: public Element
{
};
#endif // NODE_H
+5
View File
@@ -0,0 +1,5 @@
#include "data/Parser.h"
Parser::~Parser()
{
}
+10
View File
@@ -0,0 +1,10 @@
#ifndef PARSER_H
#define PARSER_H
class Parser
{
virtual ~Parser();
};
#endif // PARSER_H
+1
View File
@@ -0,0 +1 @@
#include "data/SearchIndex.h"
+9
View File
@@ -0,0 +1,9 @@
#ifndef SEARCH_INDEX_H
#define SEARCH_INDEX_H
class SearchIndex
{
};
#endif // SEARCH_INDEX_H
+18
View File
@@ -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()
{
}
+26
View File
@@ -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
+10
View File
@@ -0,0 +1,10 @@
#include "data/TextLocationFile.h"
TextLocationFile::TextLocationFile(const std::string& filePath)
: m_filePath(filePath)
{
}
TextLocationFile::~TextLocationFile()
{
}
+22
View File
@@ -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
+13
View File
@@ -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()
{
}
+26
View File
@@ -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
+9
View File
@@ -0,0 +1,9 @@
#include "data/TextLocationStorage.h"
TextLocationStorage::TextLocationStorage()
{
}
TextLocationStorage::~TextLocationStorage()
{
}
+19
View File
@@ -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
+1
View File
@@ -0,0 +1 @@
#include "data/access/CodeAccess.h"
+9
View File
@@ -0,0 +1,9 @@
#ifndef CODE_ACCESS_H
#define CODE_ACCESS_H
class CodeAccess
{
};
#endif // CODE_ACCESS_H
+1
View File
@@ -0,0 +1 @@
#include "data/access/GraphAccess.h"
+9
View File
@@ -0,0 +1,9 @@
#ifndef GRAPH_ACCESS_H
#define GRAPH_ACCESS_H
class GraphAccess
{
};
#endif // GRAPH_ACCESS_H