So, well. I get error: 'sf::RenderWindow' has not been declared| in Logger.hpp.
Code of Logger.hpp:
#pragma once
#include <SFML/Window.hpp>
#include "Utilities.hpp"
class cLogger
{
private:
cUtilities utilities;
public:
cLogger(void);
~cLogger(void);
void write(string text, bool newline = true);
void write(int text, bool newline = true);
void write(double text, bool newline = true);
void write(float text, bool newline = true);
void start(bool deleting = false);
void error(sf::RenderWindow & window, string text); //error, sf::RenderWindow not declared.
//is compilator blind or what?
void end();
};
And it may be something to do with "Utilities.hpp", so here's its code:
#pragma once
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
using namespace std;
class cUtilities
{
public:
string intToString(int variable);
string floatToString(float variable);
string doubleToString(double variable);
int stringToInt(string variable);
float stringToFloat(string variable);
double stringToDouble(string variable);
bool writeToFile(string name, const string & source, unsigned int type = 3);
bool loadFromFile(string & target, string name, bool binary = true);
int howMany(char character, string & target) const;
cUtilities(void);
~cUtilities(void);
};
In other files including Window.hpp and working with RenderWindow works perfectly. I don't understand it, where is the error?
Thanks