Push V0.3.2a
parent
38e6abe4e3
commit
12a5985916
|
@ -1,5 +1,5 @@
|
||||||
cmake_minimum_required(VERSION 3.24)
|
cmake_minimum_required(VERSION 3.24)
|
||||||
project(BLT VERSION 0.3.1)
|
project(BLT VERSION 0.3.2)
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
|
|
||||||
|
|
|
@ -181,7 +181,7 @@ CMAKE_PROJECT_HOMEPAGE_URL:STATIC=
|
||||||
CMAKE_PROJECT_NAME:STATIC=BLT_TESTS
|
CMAKE_PROJECT_NAME:STATIC=BLT_TESTS
|
||||||
|
|
||||||
//Value Computed by CMake
|
//Value Computed by CMake
|
||||||
CMAKE_PROJECT_VERSION:STATIC=0.3.1
|
CMAKE_PROJECT_VERSION:STATIC=0.3.2
|
||||||
|
|
||||||
//Value Computed by CMake
|
//Value Computed by CMake
|
||||||
CMAKE_PROJECT_VERSION_MAJOR:STATIC=0
|
CMAKE_PROJECT_VERSION_MAJOR:STATIC=0
|
||||||
|
@ -190,7 +190,7 @@ CMAKE_PROJECT_VERSION_MAJOR:STATIC=0
|
||||||
CMAKE_PROJECT_VERSION_MINOR:STATIC=3
|
CMAKE_PROJECT_VERSION_MINOR:STATIC=3
|
||||||
|
|
||||||
//Value Computed by CMake
|
//Value Computed by CMake
|
||||||
CMAKE_PROJECT_VERSION_PATCH:STATIC=1
|
CMAKE_PROJECT_VERSION_PATCH:STATIC=2
|
||||||
|
|
||||||
//Value Computed by CMake
|
//Value Computed by CMake
|
||||||
CMAKE_PROJECT_VERSION_TWEAK:STATIC=
|
CMAKE_PROJECT_VERSION_TWEAK:STATIC=
|
||||||
|
|
|
@ -3,7 +3,7 @@ Standard Files /home/brett/Documents/code/c++/BLT/src/blt/std/filesystem.cpp;/ho
|
||||||
Profiler Files /home/brett/Documents/code/c++/BLT/src/blt/profiling/profiler.cpp
|
Profiler Files /home/brett/Documents/code/c++/BLT/src/blt/profiling/profiler.cpp
|
||||||
Source: /home/brett/Documents/code/c++/BLT
|
Source: /home/brett/Documents/code/c++/BLT
|
||||||
Current Source: /home/brett/Documents/code/c++/BLT
|
Current Source: /home/brett/Documents/code/c++/BLT
|
||||||
BLT 0.3.1 Successfully included!
|
BLT 0.3.2 Successfully included!
|
||||||
BLT tests included!
|
BLT tests included!
|
||||||
-- Configuring done
|
-- Configuring done
|
||||||
-- Generating done
|
-- Generating done
|
||||||
|
|
|
@ -15,6 +15,28 @@ namespace blt::nbt {
|
||||||
|
|
||||||
std::string readUTF8String(std::fstream& stream);
|
std::string readUTF8String(std::fstream& stream);
|
||||||
|
|
||||||
|
enum nbt_type {
|
||||||
|
tag_end = 0,
|
||||||
|
tag_byte = 1,
|
||||||
|
tag_short = 2,
|
||||||
|
tag_int = 3,
|
||||||
|
tag_long = 4,
|
||||||
|
tag_float = 5,
|
||||||
|
tag_double = 6,
|
||||||
|
tag_byte_array = 7,
|
||||||
|
tag_string = 8,
|
||||||
|
tag_list = 9,
|
||||||
|
tag_compound = 10,
|
||||||
|
tag_int_array = 11,
|
||||||
|
tag_long_array = 12
|
||||||
|
};
|
||||||
|
|
||||||
|
class nbt_tag {
|
||||||
|
public:
|
||||||
|
virtual void readTag() = 0;
|
||||||
|
virtual void writeTag() = 0;
|
||||||
|
};
|
||||||
|
|
||||||
class NBTDecoder {
|
class NBTDecoder {
|
||||||
private:
|
private:
|
||||||
blt::fs::block_reader* m_reader;
|
blt::fs::block_reader* m_reader;
|
||||||
|
|
|
@ -52,6 +52,7 @@ namespace blt::fs {
|
||||||
*/
|
*/
|
||||||
class block_reader {
|
class block_reader {
|
||||||
protected:
|
protected:
|
||||||
|
// 32768 block size seems the fastest on my system
|
||||||
unsigned long m_bufferSize;
|
unsigned long m_bufferSize;
|
||||||
public:
|
public:
|
||||||
explicit block_reader(unsigned long bufferSize): m_bufferSize(bufferSize) {}
|
explicit block_reader(unsigned long bufferSize): m_bufferSize(bufferSize) {}
|
||||||
|
|
|
@ -220,12 +220,5 @@ namespace blt::string {
|
||||||
std::vector<std::string> createTable(bool top = false, bool bottom = false);
|
std::vector<std::string> createTable(bool top = false, bool bottom = false);
|
||||||
};
|
};
|
||||||
|
|
||||||
class LineGraphFormatter {
|
|
||||||
private:
|
|
||||||
|
|
||||||
public:
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
}
|
||||||
#endif //BLT_TESTS_FORMAT_H
|
#endif //BLT_TESTS_FORMAT_H
|
||||||
|
|
|
@ -19,7 +19,7 @@ namespace blt::logging {
|
||||||
bool m_useColor = true;
|
bool m_useColor = true;
|
||||||
bool m_logToConsole = true;
|
bool m_logToConsole = true;
|
||||||
bool m_logToFile = true;
|
bool m_logToFile = true;
|
||||||
const char* m_directory = "./log/";
|
const char* m_directory = "./";
|
||||||
LOG_LEVEL minLevel = TRACE;
|
LOG_LEVEL minLevel = TRACE;
|
||||||
|
|
||||||
explicit constexpr LOG_PROPERTIES(bool useColor, bool logToConsole, bool logToFile, const char* directory):
|
explicit constexpr LOG_PROPERTIES(bool useColor, bool logToConsole, bool logToFile, const char* directory):
|
||||||
|
|
|
@ -121,3 +121,4 @@ void blt::string::TableFormatter::updateMaxColumnLengths() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
#include <ios>
|
#include <ios>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
|
#include <filesystem>
|
||||||
|
|
||||||
// https://en.cppreference.com/w/cpp/utility/variadic
|
// https://en.cppreference.com/w/cpp/utility/variadic
|
||||||
// https://medium.com/swlh/variadic-functions-3419c287a0d2
|
// https://medium.com/swlh/variadic-functions-3419c287a0d2
|
||||||
|
@ -84,12 +85,13 @@ namespace blt::logging {
|
||||||
};
|
};
|
||||||
|
|
||||||
// by default everything is enabled
|
// by default everything is enabled
|
||||||
LOG_PROPERTIES BLT_LOGGING_PROPERTIES{true, true, true, "./log/"};
|
LOG_PROPERTIES BLT_LOGGING_PROPERTIES {};
|
||||||
LogFileWriter writer{"./"};
|
LogFileWriter writer{"./"};
|
||||||
|
|
||||||
void init(LOG_PROPERTIES properties) {
|
void init(LOG_PROPERTIES properties) {
|
||||||
if (BLT_LOGGING_PROPERTIES.m_directory != properties.m_directory)
|
if (BLT_LOGGING_PROPERTIES.m_directory != properties.m_directory)
|
||||||
writer = LogFileWriter{properties.m_directory};
|
writer = LogFileWriter{properties.m_directory};
|
||||||
|
std::filesystem::create_directory(properties.m_directory);
|
||||||
BLT_LOGGING_PROPERTIES = properties;
|
BLT_LOGGING_PROPERTIES = properties;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue