Boilerplate
This commit is contained in:
parent
c8203d4308
commit
eabbbbefa7
8
.idea/sqlDataSources.xml
generated
Normal file
8
.idea/sqlDataSources.xml
generated
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="DdlMappings">
|
||||
<mapping uuid="9a9538a8-bd37-41b0-bc60-73af8279c40c" name="SQLite - accounts.sqlite Mapping">
|
||||
<data-sources db="12a339a0-479d-435e-9bcd-76796d62848c" />
|
||||
</mapping>
|
||||
</component>
|
||||
</project>
|
@ -3,6 +3,12 @@ project(budget)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 20)
|
||||
|
||||
add_executable(${PROJECT_NAME} src/main.cpp)
|
||||
add_executable(${PROJECT_NAME} src/main.cpp
|
||||
src/database/idatabase.h
|
||||
src/DTO/account.h
|
||||
src/DTO/transaction.h
|
||||
src/DTO/receipt.h
|
||||
src/DTO/plannedTransaction.h
|
||||
src/DTO/dtoObject.h)
|
||||
|
||||
target_link_libraries(${PROJECT_NAME} sqlite3)
|
17
src/DTO/account.h
Normal file
17
src/DTO/account.h
Normal file
@ -0,0 +1,17 @@
|
||||
//
|
||||
// Created by quentin on 2/7/24.
|
||||
//
|
||||
|
||||
#ifndef BUDGET_ACCOUNT_H
|
||||
#define BUDGET_ACCOUNT_H
|
||||
|
||||
#include <string>
|
||||
#include "dtoObject.h"
|
||||
|
||||
namespace Budget::DTO {
|
||||
class Account : DTOObject {
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
#endif //BUDGET_ACCOUNT_H
|
18
src/DTO/dtoObject.h
Normal file
18
src/DTO/dtoObject.h
Normal file
@ -0,0 +1,18 @@
|
||||
//
|
||||
// Created by quentin on 2/7/24.
|
||||
//
|
||||
|
||||
#ifndef BUDGET_DTOOBJECT_H
|
||||
#define BUDGET_DTOOBJECT_H
|
||||
|
||||
#include <string>
|
||||
namespace Budget::DTO {
|
||||
class DTOObject {
|
||||
protected:
|
||||
unsigned long long int id;
|
||||
std::string updater;
|
||||
unsigned long long int update_date;
|
||||
};
|
||||
}
|
||||
|
||||
#endif //BUDGET_DTOOBJECT_H
|
13
src/DTO/plannedTransaction.h
Normal file
13
src/DTO/plannedTransaction.h
Normal file
@ -0,0 +1,13 @@
|
||||
//
|
||||
// Created by quentin on 2/7/24.
|
||||
//
|
||||
|
||||
#ifndef BUDGET_PLANNEDTRANSACTION_H
|
||||
#define BUDGET_PLANNEDTRANSACTION_H
|
||||
|
||||
namespace Budget::DTO {
|
||||
class PlannedTransaction {
|
||||
};
|
||||
}
|
||||
|
||||
#endif //BUDGET_PLANNEDTRANSACTION_H
|
14
src/DTO/receipt.h
Normal file
14
src/DTO/receipt.h
Normal file
@ -0,0 +1,14 @@
|
||||
//
|
||||
// Created by quentin on 2/7/24.
|
||||
//
|
||||
|
||||
#ifndef BUDGET_RECEIPT_H
|
||||
#define BUDGET_RECEIPT_H
|
||||
|
||||
namespace Budget::DTO {
|
||||
class Receipt {
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
#endif //BUDGET_RECEIPT_H
|
14
src/DTO/transaction.h
Normal file
14
src/DTO/transaction.h
Normal file
@ -0,0 +1,14 @@
|
||||
//
|
||||
// Created by quentin on 2/7/24.
|
||||
//
|
||||
|
||||
#ifndef BUDGET_TRANSACTION_H
|
||||
#define BUDGET_TRANSACTION_H
|
||||
|
||||
namespace Budget::DTO {
|
||||
class Transaction {
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
#endif //BUDGET_TRANSACTION_H
|
14
src/database/idatabase.h
Normal file
14
src/database/idatabase.h
Normal file
@ -0,0 +1,14 @@
|
||||
//
|
||||
// Created by quentin on 2/7/24.
|
||||
//
|
||||
|
||||
#ifndef BUDGET_IDATABASE_H
|
||||
#define BUDGET_IDATABASE_H
|
||||
|
||||
namespace Budget::Database {
|
||||
class IDatabase {
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
#endif //BUDGET_IDATABASE_H
|
Loading…
x
Reference in New Issue
Block a user