1 #ifndef _FOOBAR2000_PLAYABLE_LOCATION_H_
2 #define _FOOBAR2000_PLAYABLE_LOCATION_H_
13 virtual const char * get_path()
const =0;
14 virtual void set_path(
const char*)=0;
15 virtual t_uint32 get_subsong()
const =0;
16 virtual void set_subsong(
t_uint32)=0;
31 inline bool is_empty() {
return get_path()[0]==0 && get_subsong()==0;}
32 inline void reset() {set_path(
"");set_subsong(0);}
36 bool is_empty()
const {
return * get_path() == 0; }
83 void set_path(
const char*) {
throw pfc::exception_not_implemented();}
95 #endif //_FOOBAR2000_PLAYABLE_LOCATION_H_
playable_location & rplayable_location
virtual t_uint32 get_subsong() const =0
playable_location_impl(const playable_location_impl &src)
const playable_location_impl & operator=(const playable_location_impl &src)
const char * get_path() const
const char * get_path() const
const playable_location & operator=(const playable_location &src)
void set_subsong_index(t_uint32 v)
t_uint32 get_subsong() const
virtual const char * get_path() const =0
const playable_location_impl & operator=(const playable_location &src)
playable_location_impl(const playable_location &src)
void set_path(const char *p_path)
void set_subsong(t_uint32)
playable_location const & rcplayable_location
pfc::string_base & operator<<(pfc::string_base &p_fmt, const playable_location &p_location)
void set_subsong(t_uint32 p_subsong)
string_simple_t< char > string_simple
t_uint32 get_subsong() const
bool operator==(const replaygain_info &item1, const replaygain_info &item2)
t_uint32 get_subsong_index() const
void copy(const playable_location &p_other)
bool operator!=(const replaygain_info &item1, const replaygain_info &item2)
pfc::string_simple m_path
playable_location const * pcplayable_location
playable_location * pplayable_location
playable_location_impl(const char *p_path, t_uint32 p_subsong)
make_playable_location(const char *p_path, t_uint32 p_num)
static int compare(const playable_location &v1, const playable_location &v2)
void set_path(const char *)