chore: remove .clangd config, update CMakeLists, Dockerfile, and code

This commit is contained in:
Arthur K. 2025-01-19 14:20:26 +03:00
parent 87a758ecd8
commit d735a356b3
Signed by: wzray
GPG key ID: B97F30FDC4636357
15 changed files with 76 additions and 58 deletions

View file

@ -1,9 +1,7 @@
#pragma once
#include <string>
#include <windows.h>
class COMWrapper {
protected:
void Raise(const HRESULT hr, const char *ctx) const;

View file

@ -5,13 +5,17 @@
#include "COMWrapper.hpp"
class PromtCtlDirection : COMWrapper {
friend class PromtCtlDocument;
public:
const void *m_instance = nullptr;
static constexpr char m_classname[] = "PromtCtlDirection";
protected:
explicit PromtCtlDirection(const void *instance) : m_instance(instance){};
public:
PromtCtlDirection() = delete;
explicit PromtCtlDirection(const void *instance) : m_instance(instance){};
~PromtCtlDirection();
std::wstring Translate(const std::wstring_view src) const;
const char *classname() const override;

View file

@ -3,7 +3,6 @@
#include <windows.h>
#include "COMWrapper.hpp"
#include "PromtCtlDirection.hpp"
#include "PromtFTManager.hpp"
// GUIDs
const GUID CLSID_PromtCtlDocument = {0xbdf7dc81, 0xdaae, 0x11d5, {0xb3, 0x92, 0x0, 0xe0, 0x29, 0x42, 0x4b, 0x73}};
@ -11,7 +10,6 @@ const GUID CLSID_PromtSvrDirectionsIP = {0x212aae21, 0xdaa2, 0x11d5, {0xb3, 0x92
const GUID IID_IPromtCtlDocument = {0xfd163702, 0x2c47, 0x11d6, {0xb3, 0x92, 0x0, 0xe0, 0x29, 0x42, 0x4b, 0x73}};
const GUID IID_IPromtSvrDirections = {0x67c8f1c1, 0x2c4b, 0x11d6, {0xb3, 0x92, 0x0, 0xe0, 0x29, 0x42, 0x4b, 0x73}};
const GUID IID_IPromtSvrDirectionsIP = {0x67c8f1cf, 0x2c4b, 0x11d6, {0xb3, 0x92, 0x0, 0x0e0, 0x29, 0x42, 0x4b, 0x73}};
//const GUID IID_IUnknown = {0x0, 0x0, 0x0, {0xc0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x46}};
class PromtCtlDocument : COMWrapper {
public:

View file

@ -10,8 +10,8 @@ const GUID IID_Inknown2 = {0x0, 0x0, 0x0, {0xc0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0
class PromtFTManager : COMWrapper {
private:
void *mInstance = nullptr;
static constexpr char mClassname[] = "PromtFTManager";
void *m_instance = nullptr;
static constexpr char k_classname[] = "PromtFTManager";
public:
enum class FileType { kHTML = 130, kRTF = 32 };
@ -20,5 +20,5 @@ class PromtFTManager : COMWrapper {
PromtFTManager();
~PromtFTManager();
PromtFileTranslator Translator(PromtFTManager::FileType ft, PromtCtlDirection &dir) const;
const char* classname() const override { return mClassname; };
const char* classname() const override { return k_classname; };
};

View file

@ -4,17 +4,21 @@
#include "COMWrapper.hpp"
class PromtFileTranslator : COMWrapper {
friend class PromtFTManager;
private:
const void *mInstance = nullptr;
const void *mDirection = nullptr;
static constexpr char mClassName[] = "PromtFileTranslator";
const void *m_instance = nullptr;
const void *m_direction = nullptr;
static constexpr char k_classname[] = "PromtFileTranslator";
protected:
explicit PromtFileTranslator(const void *instance, const void *direction) : m_instance(instance), m_direction(direction) {};
public:
PromtFileTranslator() = delete;
explicit PromtFileTranslator(const void *instance, const void *direction) : mInstance(instance), mDirection(direction){};
~PromtFileTranslator();
void Translate(const std::string_view src, const std::string_view dest) const;
const char* classname() const override {
return mClassName;
const char *classname() const override {
return k_classname;
};
};