Commit 97279961 authored by Thomas Zeitlhofer's avatar Thomas Zeitlhofer
Browse files

Commit 05: Erste Comments für Doxy-Doku hinzugefügt

parent 12cb3bf0
/**
* @file Matrix.cpp
* @date 2020-05-14
* @version 1.0
*/
#include "Matrix.hpp" #include "Matrix.hpp"
bool existsm(string filename){ bool existsm(string filename){
......
/**
* @file Matrix.hpp
* @date 2020-05-14
* @version 1.0
*/
#ifndef MATRIX_HPP #ifndef MATRIX_HPP
#define MATRIX_HPP #define MATRIX_HPP
...@@ -20,6 +26,15 @@ using namespace std; ...@@ -20,6 +26,15 @@ using namespace std;
using namespace cgicc; using namespace cgicc;
using json = nlohmann::json; using json = nlohmann::json;
/**
* \brief This class contains the information and methods for a Matrix used in this project
*
* \data ID = ID of the Matrix
* \data dim = Dimension of the Matrix
* \data *data = Pointer to the Data of the Matrix
* \methods generateMatrix(int dimension) = Method to generate the Matrix with the dimension used as parameter
* \methods print() = Method to output the Matrix
*/
class Matrix{ class Matrix{
public: public:
Matrix(int dim); Matrix(int dim);
......
/**
* @file delete.cpp
* @date 2020-05-14
* @version 1.0
*/
#include "Matrix.hpp" #include "Matrix.hpp"
/**
* \brief This method is used to delete a matrix
* \param no params
* \return null or error
*
* -- Detailed description --
*
*/
int main(){ int main(){
htmlHeader("delete.cgi"); htmlHeader("delete.cgi");
Cgicc formData; Cgicc formData;
...@@ -26,4 +40,6 @@ int main(){ ...@@ -26,4 +40,6 @@ int main(){
cout << "</div>" << endl; cout << "</div>" << endl;
cout << "</body>\n"; cout << "</body>\n";
cout << "</html>\n"; cout << "</html>\n";
return 0;
} }
\ No newline at end of file
/**
* @file generate.cpp
* @date 2020-05-14
* @version 1.0
*/
#include "Matrix.hpp" #include "Matrix.hpp"
/**
* \brief This method is used to generate a matrix
* \param no params
* \return null or error
*
* -- Detailed description --
*
*/
int main(){ int main(){
Matrix matrix(2); Matrix matrix(2);
Cgicc formData; Cgicc formData;
...@@ -28,5 +42,6 @@ int main(){ ...@@ -28,5 +42,6 @@ int main(){
cout << "<a href=\"http://localhost:80/index.html\">Back to Index</a>"; cout << "<a href=\"http://localhost:80/index.html\">Back to Index</a>";
cout << "</body>\n"; cout << "</body>\n";
cout << "</html>\n"; cout << "</html>\n";
return 0; return 0;
} }
\ No newline at end of file
/**
* @file list.cpp
* @date 2020-05-14
* @version 1.0
*/
#include "Matrix.hpp" #include "Matrix.hpp"
namespace fs = filesystem; namespace fs = filesystem;
/**
* \brief This method is used to list all existing matrices
* \param no params
* \return null or error
*
* -- Detailed description --
*
*/
int main(){ int main(){
htmlHeader("list.cgi"); htmlHeader("list.cgi");
...@@ -20,6 +35,7 @@ int main(){ ...@@ -20,6 +35,7 @@ int main(){
"<tbody>" << endl; "<tbody>" << endl;
string path = "Json"; string path = "Json";
for(const auto & entry : fs::directory_iterator(path)){ for(const auto & entry : fs::directory_iterator(path)){
json existingjson; json existingjson;
ifstream in(entry.path()); ifstream in(entry.path());
...@@ -51,4 +67,6 @@ int main(){ ...@@ -51,4 +67,6 @@ int main(){
cout << "</div>" << endl; cout << "</div>" << endl;
cout << "</body>\n"; cout << "</body>\n";
cout << "</html>\n"; cout << "</html>\n";
return 0;
} }
\ No newline at end of file
/**
* @file multi.cpp
* @date 2020-05-14
* @version 1.0
*/
#include "Matrix.hpp" #include "Matrix.hpp"
// Value to cut the matrices
int cut = 64; int cut = 64;
Matrix mult_std(Matrix a, Matrix b) { Matrix mult_std(Matrix a, Matrix b) {
......
/**
* @file show.cpp
* @date 2020-05-14
* @version 1.0
*/
#include "Matrix.hpp" #include "Matrix.hpp"
/**
* \brief This method is used to show a Matrix
* \param no params
* \return null or error
*
* -- Detailed description --
*
*/
int main(){ int main(){
Cgicc formData; Cgicc formData;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment