diff --git a/.gitignore b/.gitignore index 97c3530..9714e1b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ /submodules/cmake/ /.gitmodules +./build/ +build/ diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..23c2a8c --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,35 @@ +cmake_minimum_required(VERSION 3.14) +LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/submodules/cmake) +include(projectheader) +project_header(datatypes) + +find_package( Qt5Core REQUIRED ) +find_package( Qt5Sql REQUIRED ) + +include(artifacts) + +#include_directories( SYSTEM +# ${Qt5Core_INCLUDE_DIRS} +# ${Qt5Sql_INCLUDE_DIRS} +#) + +include(compiler) + +#include_directories( +#) + +set(SRC_LIST + ${CMAKE_CURRENT_SOURCE_DIR}/Variant.h + ${CMAKE_CURRENT_SOURCE_DIR}/Variant.cpp +) + +#link_directories( +# ${CMAKE_BINARY_DIR}/lib +#) + +include(library) +add_libraries( +) + +include(installation) +install_component() diff --git a/src/Variable.cpp b/src/Variable.cpp deleted file mode 100644 index e69de29..0000000 --- a/src/Variable.cpp +++ /dev/null diff --git a/src/Variable.h b/src/Variable.h deleted file mode 100644 index e69de29..0000000 --- a/src/Variable.h +++ /dev/null diff --git a/src/Variant.cpp b/src/Variant.cpp new file mode 100644 index 0000000..1e431f7 --- /dev/null +++ b/src/Variant.cpp @@ -0,0 +1,72 @@ +#include "Variant.h" + +using namespace osdev::components; + +Variant::Variant() +{ +} + +Variant::Variant(Type type) +{ +} + +Variant::Variant(bool value) +{ +} + +Variant::Variant(int value) +{ +} + +Variant::Variant(uint value) +{ +} + +Variant::Variant(double value) +{ +} + +Variant::Variant(float value) +{ +} + +Variant::Variant(char value) +{ +} + +Variant::Variant(std::string value) +{ +} + +Variant::Variant(uint8_t value) +{ +} + +Variant::Variant(uint16_t value) +{ +} + +Variant::Variant(uint32_t value) +{ +} + +Variant::Variant(uint64_t value) +{ +} + +Variant::Variant(int8_t value) +{ +} + +Variant::Variant(int16_t value) +{ +} + +Variant::Variant(int32_t value) +{ +} + +Variant::Variant(int64_t value) +{ +} + diff --git a/src/Variant.h b/src/Variant.h new file mode 100644 index 0000000..f7475d5 --- /dev/null +++ b/src/Variant.h @@ -0,0 +1,51 @@ +#pragma one + +#include +namespace osdev::components { +class Variant +{ +public: + enum Type { + Invalid, // Unknown + Bool, // bool + Int, // int (standard) + UInt, // Unsigned int + Double, // double + Float, // float + Char, // char + String, // std::string + UInt8, // uint8_t + UInt16, // uint16_t + UInt32, // uint32_t + UInt64, // uint64_t + Int8, // int8_t + Int16, // int16_t + Int32, // int32_t + Int64 // int64_t + }; + + /*! + * All Constructors available + */ + Variant(); + Variant(Type type); + Variant(bool value); + Variant(int value); + Variant(uint value); + Variant(double value); + Variant(float value); + Variant(char value); + Variant(std::string value); + Variant(uint8_t value); + Variant(uint16_t value); + Variant(uint32_t value); + Variant(uint64_t value); + Variant(int8_t value); + Variant(int16_t value); + Variant(int32_t value); + Variant(int64_t value); + + +}; + +} /* End namespace osdev::components */ \ No newline at end of file