swg/src/SwgContext.hxx
luca0N! d97ef91db8
Minor code refactoring
Moved certain functions to proper locations and added new source files
for minor refactoring.
2022-05-02 20:58:58 -03:00

58 lines
1.6 KiB
C++

/*
* Copyright (C) 2022 luca0N!
*
* This file is part of Static Website Generator (swg).
*
* Static Website Generator (swg) is free software: you can redistribute it
* and/or modify it under the terms of the version 3 of the GNU Lesser General
* Public License as published by the Free Software Foundation.
*
* Static Website Generator (swg) is distributed in the hope that it will be
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
* General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Static Website Generator (swg). If not, see
* <https://www.gnu.org/licenses/>.
*
* Contact luca0N! by e-mail: <luca0n [at] luca0n [dot] com>.
*/
#pragma once
#include <string>
#include <list>
#include "Common.hxx"
struct SwgContext {
std::string websiteName,
websitePublisher,
websiteCopyrightHolder,
websiteCopyrightYears,
websiteContentLicense;
// TODO: Use smart pointers
std::list<Blog*> blogs;
};
/*class SwgContext {
public:
SwgContext();
SwgContext(std::string websiteName, std::string websitePublisher, std::string copyrightHolder, std::string copyrightYears, std::string contentLicense);
private:
std::string websiteName, websitePublisher;
std::string copyrightHolder, copyrightYears, contentLicense;
};
class BlogEntry {
public:
BlogEntry(std::string name, std::string path);
std::string getBlogName();
std::string getBlogPath();
private:
std::string path, name;
};*/