#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,3 +1,8 @@
#pragma once
#ifndef CALIGNANDCUTIMAGE_H
#define CALIGNANDCUTIMAGE_H
#include "CImageBasis.h"
#include "CFindTemplate.h"
@@ -19,3 +24,4 @@ class CAlignAndCutImage : public CImageBasis
void GetRefSize(int *ref_dx, int *ref_dy);
};
#endif //CALIGNANDCUTIMAGE_H

View File

@@ -1,5 +1,7 @@
#ifndef __CFINDTEMPLATE_CLASS
#define __CFINDTEMPLATE_CLASS
#pragma once
#ifndef CFINDTEMPLATE_H
#define CFINDTEMPLATE_H
#include "CImageBasis.h"
@@ -37,4 +39,4 @@ class CFindTemplate : public CImageBasis
bool CalculateSimularities(uint8_t* _rgb_tmpl, int _startx, int _starty, int _sizex, int _sizey, int &min, float &avg, int &max, float &SAD, float _SADold, float _SADcrit);
};
#endif
#endif //CFINDTEMPLATE_H

View File

@@ -1,7 +1,7 @@
#pragma once
#ifndef __CIMAGEBASIS
#define __CIMAGEBASIS
#ifndef CIMAGEBASIS_H
#define CIMAGEBASIS_H
#include <stdint.h>
#include <string>
@@ -86,5 +86,5 @@ class CImageBasis
};
#endif
#endif //CIMAGEBASIS_H

View File

@@ -1,3 +1,8 @@
#pragma once
#ifndef CROTATEIMAGE_H
#define CROTATEIMAGE_H
#include "CImageBasis.h"
@@ -19,3 +24,5 @@ class CRotateImage: public CImageBasis
void Translate(int _dx, int _dy);
void Mirror();
};
#endif //CROTATEIMAGE_H