Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use pragma once instead of include guards #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions include/nmeaparse/Event.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
* See the license file included with this source.
*/

#ifndef EVENT_H_
#define EVENT_H_
#pragma once

#include <list>
#include <functional>
Expand Down Expand Up @@ -213,5 +212,3 @@ namespace nmea {


}

#endif /* EVENT_H_ */
5 changes: 1 addition & 4 deletions include/nmeaparse/GPSFix.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
* See the license file included with this source.
*/

#ifndef GPSFIX_H_
#define GPSFIX_H_
#pragma once

#include <cstdint>
#include <ctime>
Expand Down Expand Up @@ -178,5 +177,3 @@ namespace nmea {
};

}

#endif /* GPSFIX_H_ */
5 changes: 1 addition & 4 deletions include/nmeaparse/GPSService.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
* See the license file included with this source.
*/

#ifndef GPSSERVICE_H_
#define GPSSERVICE_H_
#pragma once

#include <string>
#include <chrono>
Expand Down Expand Up @@ -43,5 +42,3 @@ class GPSService {


}

#endif /* GPSSERVICE_H_ */
5 changes: 1 addition & 4 deletions include/nmeaparse/NMEACommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
* See the license file included with this source.
*/

#ifndef NMEACOMMAND_H_
#define NMEACOMMAND_H_
#pragma once

#include <string>
#include <nmeaparse/NMEAParser.h>
Expand Down Expand Up @@ -113,5 +112,3 @@ namespace nmea {


}

#endif /* NMEACOMMAND_H_ */
6 changes: 1 addition & 5 deletions include/nmeaparse/NMEAParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
* See the license file included with this source.
*/

#ifndef NMEAPARSER_H_
#define NMEAPARSER_H_

#pragma once

#include <nmeaparse/Event.h>
#include <string>
Expand Down Expand Up @@ -119,5 +117,3 @@ class NMEAParser {
};

}

#endif /* NMEAPARSER_H_ */
8 changes: 1 addition & 7 deletions include/nmeaparse/NumberConversion.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
* See the license file included with this source.
*/

#ifndef NUMBERCONVERSION_H_
#define NUMBERCONVERSION_H_

#pragma once

#include <cstdint>
#include <string>
Expand Down Expand Up @@ -43,7 +41,3 @@ int64_t parseInt(std::string s, int radix = 10);
//void NumberConversion_test();

}



#endif /* NUMBERCONVERSION_H_ */
11 changes: 1 addition & 10 deletions include/nmeaparse/nmea.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,10 @@
// The implementation of a NMEA 0183 sentence generator.
// The implementation of a GPS data service.


#ifndef NMEA_H_
#define NMEA_H_


#pragma once

#include <nmeaparse/NMEAParser.h>
#include <nmeaparse/NMEACommand.h>
#include <nmeaparse/GPSService.h>

#include <nmeaparse/NumberConversion.h>




#endif //NMEA_H_