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"
bool existsm(string filename){
......
/**
* @file Matrix.hpp
* @date 2020-05-14
* @version 1.0
*/
#ifndef MATRIX_HPP
#define MATRIX_HPP
......@@ -20,6 +26,15 @@ using namespace std;
using namespace cgicc;
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{
public:
Matrix(int dim);
......
/**
* @file delete.cpp
* @date 2020-05-14
* @version 1.0
*/
#include "Matrix.hpp"
/**
* \brief This method is used to delete a matrix
* \param no params
* \return null or error
*
* -- Detailed description --
*
*/
int main(){
htmlHeader("delete.cgi");
Cgicc formData;
......@@ -26,4 +40,6 @@ int main(){
cout << "</div>" << endl;
cout << "</body>\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"
/**
* \brief This method is used to generate a matrix
* \param no params
* \return null or error
*
* -- Detailed description --
*
*/
int main(){
Matrix matrix(2);
Cgicc formData;
......@@ -28,5 +42,6 @@ int main(){
cout << "<a href=\"http://localhost:80/index.html\">Back to Index</a>";
cout << "</body>\n";
cout << "</html>\n";
return 0;
}
\ No newline at end of file
/**
* @file list.cpp
* @date 2020-05-14
* @version 1.0
*/
#include "Matrix.hpp"
namespace fs = filesystem;
/**
* \brief This method is used to list all existing matrices
* \param no params
* \return null or error
*
* -- Detailed description --
*
*/
int main(){
htmlHeader("list.cgi");
......@@ -20,6 +35,7 @@ int main(){
"<tbody>" << endl;
string path = "Json";
for(const auto & entry : fs::directory_iterator(path)){
json existingjson;
ifstream in(entry.path());
......@@ -51,4 +67,6 @@ int main(){
cout << "</div>" << endl;
cout << "</body>\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"
// Value to cut the matrices
int cut = 64;
Matrix mult_std(Matrix a, Matrix b) {
......
/**
* @file show.cpp
* @date 2020-05-14
* @version 1.0
*/
#include "Matrix.hpp"
/**
* \brief This method is used to show a Matrix
* \param no params
* \return null or error
*
* -- Detailed description --
*
*/
int main(){
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