// By // // Douglas Thrift // // $Id$ #ifndef _By_hpp_ #define _By_hpp_ #include #ifdef MENES_PRAGMA_ONCE #pragma once #endif struct By { enum By_ { ARTIST, TITLE, ALBUM, GENRE, LAST } by; By(By_ by) : by(by) {} By(const cse::String& name); cse::String GetName() const; _finline By operator++() { by = By_(by + 1); return *this; } _finline operator By_() const { return by; } }; ios::PrintWriter& operator<<(ios::PrintWriter& out, const By& by); #endif//_By_hpp_