Skip to content

Commit

Permalink
Started on new design #10
Browse files Browse the repository at this point in the history
  • Loading branch information
Musa-Sina-Ertugrul committed Oct 21, 2023
1 parent c58cbac commit 15aa341
Show file tree
Hide file tree
Showing 13 changed files with 250 additions and 0 deletions.
142 changes: 142 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
# File created using '.gitignore Generator' for Visual Studio Code: https://bit.ly/vscode-gig
# Created by https://www.toptal.com/developers/gitignore/api/windows,visualstudiocode,c,c++,linux
# Edit at https://www.toptal.com/developers/gitignore?templates=windows,visualstudiocode,c,c++,linux

### C ###
# Prerequisites
*.d

# Object files
*.o
*.ko
*.obj
*.elf

# Linker output
*.ilk
*.map
*.exp

# Precompiled Headers
*.gch
*.pch

# Libraries
*.lib
*.a
*.la
*.lo

# Shared objects (inc. Windows DLLs)
*.dll
*.so
*.so.*
*.dylib

# Executables
*.exe
*.out
*.app
*.i*86
*.x86_64
*.hex

# Debug files
*.dSYM/
*.su
*.idb
*.pdb

# Kernel Module Compile Results
*.mod*
*.cmd
.tmp_versions/
modules.order
Module.symvers
Mkfile.old
dkms.conf

### C++ ###
# Prerequisites

# Compiled Object files
*.slo

# Precompiled Headers

# Compiled Dynamic libraries

# Fortran module files
*.mod
*.smod

# Compiled Static libraries
*.lai

# Executables

### Linux ###
*~

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

### VisualStudioCode ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets

# Local History for Visual Studio Code
.history/

# Built Visual Studio Code Extensions
*.vsix

### VisualStudioCode Patch ###
# Ignore all local history of files
.history
.ionide

### Windows ###
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db

# Dump file
*.stackdump

# Folder config file
[Dd]esktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp

# Windows shortcuts
*.lnk

# End of https://www.toptal.com/developers/gitignore/api/windows,visualstudiocode,c,c++,linux

# Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option)

build/
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"cmake.sourceDirectory": "C:/Users/msert/projects/ulak-avionic"
}
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
cmake_minimum_required(VERSION 3.25) # I will change this after check dependencies
project(ULAK-Avionic)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_C_STANDARD 23)
add_subdirectory(${CMAKE_BINARY_DIR}/../src/)
4 changes: 4 additions & 0 deletions DesignPropesels/Ulak-avionic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions DesignPropesels/Ulak-seq.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
add_subdirectory(${CMAKE_BINARY_DIR}/../src/headers/)
add_subdirectory(${CMAKE_BINARY_DIR}/../src/cJSON/)
1 change: 1 addition & 0 deletions src/cJSON
Submodule cJSON added at cb8693
19 changes: 19 additions & 0 deletions src/headers/BombParser.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#ifndef BOMB_PARSER_HPP
#define BOMB_PARSER_HPP

#include "ParserSender.hpp"

using namespace std;

class ParserSender : public Parser{

public:
void run();

};

void ParserSender::run(){

}

#endif
Empty file added src/headers/CMakeLists.txt
Empty file.
23 changes: 23 additions & 0 deletions src/headers/Parser.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#ifndef PARSER_HPP
#define PARSER_HPP

#include "Run.hpp"
#include "ParserReciver.hpp"
#include "ParserSender.hpp"
#include <memory>

using namespace std;

class Parser : public Run{
public:
void run();
private:
unique_ptr<ParserReciver> parserReciver;
unique_ptr<ParserSender> parserSender;
};

void Parser::run(){
parserReciver->run();
parserSender->run();
}
#endif
19 changes: 19 additions & 0 deletions src/headers/ParserReciver.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#ifndef PARSER_RECIVER_HPP
#define PARSER_RECIVER_HPP

#include "Parser.hpp"

using namespace std;

class ParserReciver : public Parser{

public:
void run();

};

void ParserReciver::run(){

}

#endif
19 changes: 19 additions & 0 deletions src/headers/ParserSender.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#ifndef PARSER_SENDER_HPP
#define PARSER_SENDER_HPP

#include "Parser.hpp"

using namespace std;

class ParserSender : public Parser{

public:
void run();

};

void ParserSender::run(){

}

#endif
9 changes: 9 additions & 0 deletions src/headers/Run.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#ifndef RUN_HPP
#define RUN_HPP

class Run{
public:
virtual void run()=0;
};

#endif

0 comments on commit 15aa341

Please sign in to comment.