This repository has been archived by the owner on Nov 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from jvdcf/parser-csv
Adding first parser
- Loading branch information
Showing
11 changed files
with
502 additions
and
234 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
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,36 @@ | ||
cmake_minimum_required(VERSION 3.26) | ||
project(AED2324_PRJ1_G23) | ||
|
||
set(CMAKE_CXX_STANDARD 20) | ||
|
||
# Doxygen Build | ||
find_package(Doxygen) | ||
if(DOXYGEN_FOUND) | ||
set(BUILD_DOC_DIR "${CMAKE_SOURCE_DIR}/docs/output") | ||
if(NOT EXISTS "${BUILD_DOC_DIR}") | ||
file(MAKE_DIRECTORY "${BUILD_DOC_DIR}") | ||
endif() | ||
|
||
set(DOXYGEN_IN "${CMAKE_CURRENT_SOURCE_DIR}/docs/Doxyfile") | ||
set(DOXYGEN_OUT "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile") | ||
configure_file("${DOXYGEN_IN}" "${DOXYGEN_OUT}" @ONLY) | ||
|
||
message("Doxygen build started") | ||
add_custom_target(Doxygen ALL | ||
COMMAND "${DOXYGEN_EXECUTABLE}" "${DOXYGEN_OUT}" | ||
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}" | ||
COMMENT "Generating API documentation with Doxygen" | ||
VERBATIM) | ||
else(DOXYGEN_FOUND) | ||
message("Doxygen needs to be installed to generate the documentation.") | ||
endif(DOXYGEN_FOUND) | ||
|
||
# Project build | ||
add_executable(AED2324_PRJ1_G23 main.cpp | ||
src/appClasses.cpp src/appClasses.hpp | ||
src/appClassesPerUC.cpp src/appClassesPerUC.hpp | ||
src/appStudentsClasses.cpp src/appStudentsClasses.hpp | ||
src/classes.cpp src/classes.hpp | ||
src/classesPerUC.cpp src/classesPerUC.hpp | ||
src/studentsClasses.cpp src/studentsClasses.hpp | ||
src/Utils.cpp src/Utils.hpp) |
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
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 |
---|---|---|
@@ -1,6 +1,23 @@ | ||
#include "src/appClasses.hpp" | ||
#include "src/appClassesPerUC.hpp" | ||
#include "src/appStudentsClasses.hpp" | ||
#include "src/classes.hpp" | ||
#include "src/classesPerUC.hpp" | ||
#include "src/studentsClasses.hpp" | ||
#include <iostream> | ||
#include <fstream> | ||
#include <sstream> | ||
#include <string> | ||
|
||
int main() { | ||
std::cout << "Hello, World!" << std::endl; | ||
return 0; | ||
std::ifstream file = std::ifstream("schedule/classes_per_uc.csv"); | ||
std::string contents; | ||
std::ostringstream sstr; | ||
sstr << file.rdbuf(); | ||
contents = sstr.str(); | ||
AppCPU cpu = AppCPU(contents); | ||
cpu.display(); | ||
|
||
//std::cout << "Hello, World!" << std::endl; | ||
return 0; | ||
} |
Oops, something went wrong.