Skip to content

Commit e24f1b7

Browse files
committed
Splitted functions from common.h to envfunc.h, filesystemfunc.h and stringfunc.h
1 parent 3d4d1fd commit e24f1b7

19 files changed

+775
-655
lines changed

msvc/common.vcxproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,19 @@
8080
<ClCompile Include="..\src\argumentparser.cpp" />
8181
<ClCompile Include="..\src\common.cpp" />
8282
<ClCompile Include="..\src\cppencoder.cpp" />
83+
<ClCompile Include="..\src\envfunc.cpp" />
84+
<ClCompile Include="..\src\filesystemfunc.cpp" />
8385
<ClCompile Include="..\src\logger.cpp" />
86+
<ClCompile Include="..\src\stringfunc.cpp" />
8487
</ItemGroup>
8588
<ItemGroup>
8689
<ClInclude Include="..\src\argumentparser.h" />
8790
<ClInclude Include="..\src\common.h" />
8891
<ClInclude Include="..\src\cppencoder.h" />
92+
<ClInclude Include="..\src\envfunc.h" />
93+
<ClInclude Include="..\src\filesystemfunc.h" />
8994
<ClInclude Include="..\src\logger.h" />
95+
<ClInclude Include="..\src\stringfunc.h" />
9096
</ItemGroup>
9197
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
9298
<ImportGroup Label="ExtensionTargets">

msvc/common.vcxproj.filters

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@
2727
<ClInclude Include="..\src\logger.h">
2828
<Filter>Header Files</Filter>
2929
</ClInclude>
30+
<ClInclude Include="..\src\stringfunc.h">
31+
<Filter>Header Files</Filter>
32+
</ClInclude>
33+
<ClInclude Include="..\src\filesystemfunc.h">
34+
<Filter>Header Files</Filter>
35+
</ClInclude>
36+
<ClInclude Include="..\src\envfunc.h">
37+
<Filter>Header Files</Filter>
38+
</ClInclude>
3039
</ItemGroup>
3140
<ItemGroup>
3241
<ClCompile Include="..\src\argumentparser.cpp">
@@ -41,5 +50,14 @@
4150
<ClCompile Include="..\src\logger.cpp">
4251
<Filter>Source Files</Filter>
4352
</ClCompile>
53+
<ClCompile Include="..\src\stringfunc.cpp">
54+
<Filter>Source Files</Filter>
55+
</ClCompile>
56+
<ClCompile Include="..\src\filesystemfunc.cpp">
57+
<Filter>Source Files</Filter>
58+
</ClCompile>
59+
<ClCompile Include="..\src\envfunc.cpp">
60+
<Filter>Source Files</Filter>
61+
</ClCompile>
4462
</ItemGroup>
4563
</Project>

src/ArrayGenerator.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66

77
#include "common.h"
88
#include "cppencoder.h"
9+
#include "stringfunc.h"
10+
#include "filesystemfunc.h"
11+
12+
using namespace stringfunc;
13+
using namespace filesystem;
914

1015
namespace bin2cpp
1116
{

src/BaseGenerator.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
#include <stdlib.h>
66

77
#include "common.h"
8+
#include "stringfunc.h"
9+
#include "filesystemfunc.h"
10+
11+
using namespace stringfunc;
12+
using namespace filesystem;
813

914
namespace bin2cpp
1015
{

src/IGenerator.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ namespace bin2cpp
7575
///<returns>Returns the name of the base class of the generated code. Returns an empty string if not defined.</returns>
7676
virtual const char * getBaseClass() const = 0;
7777

78+
///<summary>
79+
///Defines the different type of cpp encoding.
80+
///See setCppEncoder() and getCppEncoder() functions.
81+
///</summary>
7882
enum CppEncoderEnum
7983
{
8084
CPP_ENCODER_OCT,

src/SegmentGenerator.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66

77
#include "common.h"
88
#include "cppencoder.h"
9+
#include "stringfunc.h"
10+
#include "filesystemfunc.h"
11+
12+
using namespace stringfunc;
13+
using namespace filesystem;
914

1015
namespace bin2cpp
1116
{

src/StringGenerator.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66

77
#include "common.h"
88
#include "cppencoder.h"
9+
#include "stringfunc.h"
10+
#include "filesystemfunc.h"
11+
12+
using namespace stringfunc;
13+
using namespace filesystem;
914

1015
namespace bin2cpp
1116
{

0 commit comments

Comments
 (0)