* Author : Maxim Mamontov <faust@stargazer.dp.ua>
*/
-#ifndef __STG_SGCONFIG_CONN_H__
-#define __STG_SGCONFIG_CONN_H__
-
-#include <boost/scoped_ptr.hpp>
+#pragma once
#include <string>
+#include <memory>
-class USER;
-class USERS;
-class PLUGIN_LOGGER;
class RADIUS;
namespace STG
{
+struct Users;
+class PluginLogger;
+
struct Config;
class Conn
{
public:
- Conn(USERS& users, PLUGIN_LOGGER& logger, RADIUS& plugin, const Config& config, int fd, const std::string& remote);
+ Conn(Users& users, PluginLogger& logger, RADIUS& plugin, const Config& config, int fd, const std::string& remote);
~Conn();
int sock() const;
private:
class Impl;
- boost::scoped_ptr<Impl> m_impl;
+ std::unique_ptr<Impl> m_impl;
};
}
-
-#endif