Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial setup for project structure and classes (#8)
* Initial setup * Moved files around and added box classes * Updated formatting
- Loading branch information
Showing
9 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
cmake-build-debug-remote/ | ||
cmake-build-debug/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
cmake_minimum_required(VERSION 3.23) | ||
project(lovok) | ||
|
||
set(CMAKE_CXX_STANDARD 14) | ||
|
||
add_library(lovok src/lovok.cpp src/lovok_handle_internal.cpp src/box.cpp src/box.h src/file_type_box.cpp src/file_type_box.h) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#ifndef LOVOK_LOVOK_H | ||
#define LOVOK_LOVOK_H | ||
|
||
typedef struct LovokHandleInternal *LOVOK_HANDLE; | ||
|
||
LOVOK_HANDLE Lovok_create(); | ||
|
||
void Lovok_destroy(LOVOK_HANDLE); | ||
|
||
#endif //LOVOK_LOVOK_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#include "box.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// | ||
#ifndef LOVOK_BOX_H | ||
#define LOVOK_BOX_H | ||
|
||
|
||
#include <string> | ||
|
||
class box { | ||
public: | ||
int size; | ||
std::string name; | ||
}; | ||
|
||
#endif //LOVOK_BOX_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#include "file_type_box.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#include "box.h" | ||
#include <vector> | ||
|
||
#ifndef LOVOK_FILE_TYPE_BOX_H | ||
#define LOVOK_FILE_TYPE_BOX_H | ||
|
||
class FileTypeBox : public box { | ||
public: | ||
uint32_t major_brand; | ||
uint32_t minor_version; | ||
std::vector <uint32_t> compatible_brands; | ||
|
||
FileTypeBox(int s, std::string n, uint32_t mb, uint32_t mv, std::vector <uint32_t> cb) { | ||
size = s; | ||
name = std::move(n); | ||
major_brand = mb; | ||
minor_version = mv; | ||
compatible_brands = std::move(cb); | ||
} | ||
}; | ||
|
||
#endif //LOVOK_FILE_TYPE_BOX_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#include "../include/lovok.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#include "../include/lovok.h" | ||
|
||
enum LovokStatusCode { | ||
SUCCESS = 0, | ||
}; | ||
|
||
typedef struct LovokHandleInternal { | ||
// TODO add later | ||
} *LOVOK_HANDLE; |