#ifndef in *.h + #pragma once (#1639)

This commit is contained in:
Nicolas Liaudat
2022-12-20 06:46:13 +01:00
committed by GitHub
parent c4cd43b3d6
commit fc5fbd648e
37 changed files with 188 additions and 288 deletions

View File

@@ -1,5 +1,8 @@
#pragma once
#ifndef CLASSFLOW_H
#define CLASSFLOW_H
#include <fstream>
#include <string>
#include <vector>
@@ -48,3 +51,4 @@ public:
};
#endif //CLASSFLOW_H

View File

@@ -1,5 +1,8 @@
#pragma once
#ifndef CLASSFLOWALIGNMENT_H
#define CLASSFLOWALIGNMENT_H
#include "ClassFlow.h"
#include "Helper.h"
#include "CAlignAndCutImage.h"
@@ -44,3 +47,5 @@ public:
string name(){return "ClassFlowAlignment";};
};
#endif //CLASSFLOWALIGNMENT_H

View File

@@ -1,5 +1,7 @@
#ifndef __CLASSCNNGENERAL__
#define __CLASSCNNGENERAL__
#pragma once
#ifndef CLASSFLOWCNNGENERAL_H
#define CLASSFLOWCNNGENERAL_H
#include"ClassFlowDefineTypes.h"
#include "ClassFlowAlignment.h"

View File

@@ -1,7 +1,7 @@
#pragma once
#ifndef __FLOWCONTROLL__
#define __FLOWCONTROLL__
#ifndef CLASSFLOWCONTROLL_H
#define CLASSFLOWCONTROLL_H
#include <string>

View File

@@ -1,5 +1,7 @@
#ifndef __CLASSFLOWIMAGE_CLASS__
#define __CLASSFLOWIMAGE_CLASS__
#pragma once
#ifndef CLASSFLOWDEFINETYPES_H
#define CLASSFLOWDEFINETYPES_H
#include "ClassFlowImage.h"

View File

@@ -1,4 +1,8 @@
#pragma once
#ifndef CLASSFLOWIMAGE_H
#define CLASSFLOWIMAGE_H
#include "ClassFlow.h"
using namespace std;
@@ -22,3 +26,5 @@ public:
void RemoveOldLogs();
};
#endif //CLASSFLOWIMAGE_H

View File

@@ -1,5 +1,10 @@
#ifdef ENABLE_INFLUXDB
#pragma once
#ifndef CLASSFINFLUXDB_H
#define CLASSFINFLUXDB_H
#include "ClassFlow.h"
#include "ClassFlowPostProcessing.h"
@@ -30,4 +35,5 @@ public:
string name(){return "ClassFlowInfluxDB";};
};
#endif //CLASSFINFLUXDB_H
#endif //ENABLE_INFLUXDB

View File

@@ -1,5 +1,10 @@
#ifdef ENABLE_MQTT
#pragma once
#ifndef CLASSFFLOWMQTT_H
#define CLASSFFLOWMQTT_H
#include "ClassFlow.h"
#include "ClassFlowPostProcessing.h"
@@ -33,5 +38,5 @@ public:
bool doFlow(string time);
string name(){return "ClassFlowMQTT";};
};
#endif //CLASSFFLOWMQTT_H
#endif //ENABLE_MQTT

View File

@@ -1,4 +1,8 @@
#pragma once
#ifndef CLASSFFLOWMAKEIMAGE_H
#define CLASSFFLOWMAKEIMAGE_H
#include "ClassFlowImage.h"
#include "ClassControllCamera.h"
#include "../../include/defines.h"
@@ -48,3 +52,4 @@ public:
};
#endif //CLASSFFLOWMAKEIMAGE_H

View File

@@ -1,5 +1,7 @@
#ifndef __FLOWPOSTPROCESSING__
#define __FLOWPOSTPROCESSING__
#pragma once
#ifndef CLASSFFLOWPOSTPROCESSING_H
#define CLASSFFLOWPOSTPROCESSING_H
#include "ClassFlow.h"
#include "ClassFlowMakeImage.h"
@@ -76,4 +78,4 @@ public:
};
#endif
#endif //CLASSFFLOWPOSTPROCESSING_H

View File

@@ -1,4 +1,8 @@
#pragma once
#ifndef CLASSFFLOWPWRITELIST_H
#define CLASSFFLOWPWRITELIST_H
#include "ClassFlow.h"
#include "ClassFlowPostProcessing.h"
@@ -20,3 +24,4 @@ public:
string name(){return "ClassFlowWriteList";};
};
#endif //CLASSFFLOWPWRITELIST_H