Replacce pragma once with ifndef

This commit is contained in:
2024-05-18 13:00:13 +02:00
parent c165a4bdda
commit 25bd7a42c6
41 changed files with 118 additions and 89 deletions

View File

@@ -1,5 +1,5 @@
#pragma once
#ifndef CLOCALE_H
#define CLOCALE_H
#include <locale>
#include <iostream>
#include <string>
@@ -19,3 +19,4 @@ namespace platform {
}
};
}
#endif

View File

@@ -1,5 +1,5 @@
#pragma once
#ifndef COLORS_H
#define COLORS_H
#include <string>
class Colors {
public:
@@ -27,3 +27,4 @@ public:
static std::string CONCEALED() { return "\033[8m"; }
static std::string CLRSCR() { return "\033[2J\033[1;1H"; }
};
#endif

View File

@@ -1,5 +1,5 @@
#pragma once
#ifndef DATASET_H
#define DATASET_H
#include <torch/torch.h>
#include <map>
#include <vector>
@@ -48,4 +48,4 @@ namespace platform {
std::vector<mdlp::labels_t> discretizeDataset(std::vector<mdlp::samples_t>& X, mdlp::labels_t& y);
};
};
#endif

View File

@@ -1,5 +1,5 @@
#pragma once
#ifndef DATASETS_H
#define DATASETS_H
#include "Dataset.h"
namespace platform {
class Datasets {
@@ -28,3 +28,4 @@ namespace platform {
void load(); // Loads the list of datasets
};
};
#endif

View File

@@ -1,5 +1,5 @@
#pragma once
#ifndef DOTENV_H
#define DOTENV_H
#include <string>
#include <map>
#include <fstream>
@@ -59,3 +59,4 @@ namespace platform {
}
};
}
#endif

View File

@@ -1,5 +1,5 @@
#pragma once
#ifndef PATHS_H
#define PATHS_H
#include <string>
#include <filesystem>
#include "DotEnv.h"
@@ -36,3 +36,4 @@ namespace platform {
}
};
}
#endif

View File

@@ -1,5 +1,5 @@
#pragma once
#ifndef SYMBOLS_H
#define SYMBOLS_H
#include <string>
namespace platform {
class Symbols {
@@ -17,3 +17,4 @@ namespace platform {
inline static const std::string notebook{ "\U0001F5C8" };
};
}
#endif

View File

@@ -1,5 +1,5 @@
#pragma once
#ifndef TIMER_H
#define TIMER_H
#include <chrono>
#include <string>
#include <sstream>
@@ -40,3 +40,4 @@ namespace platform {
}
};
} /* namespace platform */
#endif

View File

@@ -1,10 +1,9 @@
#pragma once
#ifndef UTILS_H
#define UTILS_H
#include <sstream>
#include <string>
#include <vector>
namespace platform {
//static std::vector<std::string> split(const std::string& text, char delimiter);
static std::vector<std::string> split(const std::string& text, char delimiter)
{
std::vector<std::string> result;
@@ -27,3 +26,4 @@ namespace platform {
return result;
}
}
#endif