Remove include folder

This commit is contained in:
Wvader 2022-11-05 18:43:43 +00:00
parent 401226f094
commit a1e98443c7
5 changed files with 7 additions and 20 deletions

View File

@ -9,10 +9,9 @@ set(GCC_COVERAGE_COMPILE_FLAGS "-fdeclspec")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GCC_COVERAGE_COMPILE_FLAGS}")
add_library(clAugeas SHARED
include/augSettings.cpp
include/augSettings.h
main.cpp main.h include/pair.cpp)
augSettings.cpp
augSettings.h
main.cpp main.h)
target_link_libraries(clAugeas augeas)

View File

@ -131,10 +131,9 @@ CLAPI const char* get_tree(
return "";
}
std::map <std::string, std::string> stdBindList;
std::map <std::string ,std::string>::iterator pos;
std::stringstream rstream;
std::stringstream ss;
char line[256];
@ -160,22 +159,11 @@ CLAPI const char* get_tree(
value.erase(value.begin());
value.erase(value.end() - 1);
rstream << ";K;" << key << ";VAL;" << value << ";ENDL;";
stdBindList.insert(std::pair<std::string,std::string>(key,value)); // 2
ss << ";K;" << key << ";VAL;" << value << ";ENDL;";
}
fclose(out);
for (pos = stdBindList.begin();pos!=stdBindList.end();pos++)
{
std::cout << "Key: " << pos->first << ";" << " Value: " << pos->second << std::endl;
}
return strdup(rstream.str().c_str());
return strdup(ss.str().c_str());
}
CLAPI void free_str(char* str) {

2
main.h
View File

@ -3,7 +3,7 @@
#include "augeas.h"
#include "map"
#include <sys/stat.h>
#include "include/augSettings.h"
#include "augSettings.h"
#if defined(_WIN32)
#define CLAPI __declspec(dllexport)