/
lasersquad
/
LogEngine2
Обзор
Документация
Войти
/
lasersquad
/
LogEngine2
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
include/Properties.h
41 строка
1000 B
lasersquad0
some renamings
03 июн 2025, 13:29
03 июн 2025, 13:29
a817f57
Код
Авторство
О чём код?
/* * Properties.h * * Copyright 2025, LogEngine2 Project. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #ifndef PROPERTIES_H #define PROPERTIES_H #include <string> #include "Common.h" #include "DynamicArrays.h" LOGENGINE_NS_BEGIN class Properties : public TStringHashNCase //THash<std::string, std::string, CompareStringNCase> { public: //Properties(): THash() {} ~Properties() override {} //virtual void load(std::istream& in); //virtual void save(std::ostream& out); virtual int GetInt (const std::string& property, int defaultValue = 0) const; virtual ulong GetUInt(const std::string& property, ulong defaultValue = 0) const; virtual bool GetBool(const std::string& property, bool defaultValue = false) const; virtual std::string GetString(const std::string& property, const std::string& defaultValue = "") const; }; LOGENGINE_NS_END #ifdef LOGENGINE_HEADER_ONLY #include "Properties-hdr.h" #endif #endif // PROPERTIES_H