Skip to content

Commit a8a5fa2

Browse files
committed
Moved bin2cpp::Dictionary definition to types.h.
1 parent d8e1a6e commit a8a5fa2

File tree

4 files changed

+45
-2
lines changed

4 files changed

+45
-2
lines changed

src/bin2cpp/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ add_executable(bin2cpp
2828
SegmentGenerator.h
2929
StringGenerator.cpp
3030
StringGenerator.h
31+
types.h
3132
wildcard.cpp
3233
wildcard.h
3334
Win32ResourceGenerator.cpp

src/bin2cpp/common.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@
3131
#include <set>
3232
#include <vector>
3333

34+
#include "types.h"
35+
3436
namespace bin2cpp
3537
{
36-
typedef std::set<std::string> Dictionary;
3738

3839
///<summary>
3940
///Returns the application version number.

src/bin2cpp/enums.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ namespace bin2cpp
4343

4444
}; //bin2cpp
4545

46-
#endif //IGENERATOR_H
46+
#endif //ENUMS_H

src/bin2cpp/types.h

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/**********************************************************************************
2+
* MIT License
3+
*
4+
* Copyright (c) 2018 Antoine Beauchamp
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
*********************************************************************************/
24+
25+
#ifndef TYPES_H
26+
#define TYPES_H
27+
28+
#include <string>
29+
#include <set>
30+
31+
namespace bin2cpp
32+
{
33+
34+
///<summary>
35+
///A set of names stored as a Distionnary
36+
///</summary>
37+
typedef std::set<std::string> Dictionary;
38+
39+
}; //bin2cpp
40+
41+
#endif //TYPES_H

0 commit comments

Comments
 (0)