#pragma once #include #include struct Player { std::string name; float x, y, z; }; class PlayerAttributes { public: typedef std::list Players; PlayerAttributes(const std::string &worldDir); Players::const_iterator begin() const; Players::const_iterator end() const; private: void readFiles(const std::string &playersPath); void readSqlite(const std::string &db_name); Players m_players; };