Added boost and std namespaces to model/track.cpp
This commit is contained in:
parent
355da88630
commit
5eadcfb56a
1 changed files with 11 additions and 8 deletions
|
|
@ -23,30 +23,33 @@
|
||||||
#include "track.hpp"
|
#include "track.hpp"
|
||||||
#include <boost/foreach.hpp>
|
#include <boost/foreach.hpp>
|
||||||
|
|
||||||
|
using namespace boost;
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
namespace gui {
|
namespace gui {
|
||||||
namespace model {
|
namespace model {
|
||||||
|
|
||||||
const std::list< boost::shared_ptr<Track> > Track::NoChildren;
|
const list< shared_ptr<Track> > Track::NoChildren;
|
||||||
|
|
||||||
Track::Track()
|
Track::Track()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::list< boost::shared_ptr<Track> >
|
list< shared_ptr<Track> >
|
||||||
Track::get_child_tracks() const
|
Track::get_child_tracks() const
|
||||||
{
|
{
|
||||||
return Track::NoChildren;
|
return Track::NoChildren;
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::string
|
const string
|
||||||
Track::get_name() const
|
Track::get_name() const
|
||||||
{
|
{
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
Track::set_name(const std::string &name)
|
Track::set_name(const string &name)
|
||||||
{
|
{
|
||||||
this->name = name;
|
this->name = name;
|
||||||
}
|
}
|
||||||
|
|
@ -58,18 +61,18 @@ Track::can_host_children() const
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
Track::remove_child_track(const boost::shared_ptr<Track> /*track*/)
|
Track::remove_child_track(const shared_ptr<Track> /*track*/)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string
|
string
|
||||||
Track::print_branch()
|
Track::print_branch()
|
||||||
{
|
{
|
||||||
return print_branch_recursive(0);
|
return print_branch_recursive(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string
|
string
|
||||||
Track::print_branch_recursive(const unsigned int indentation)
|
Track::print_branch_recursive(const unsigned int indentation)
|
||||||
{
|
{
|
||||||
Glib::ustring str;
|
Glib::ustring str;
|
||||||
|
|
@ -79,7 +82,7 @@ Track::print_branch_recursive(const unsigned int indentation)
|
||||||
str += print_track();
|
str += print_track();
|
||||||
str += "\n";
|
str += "\n";
|
||||||
|
|
||||||
BOOST_FOREACH(boost::shared_ptr<Track> track, get_child_tracks())
|
BOOST_FOREACH(shared_ptr<Track> track, get_child_tracks())
|
||||||
{
|
{
|
||||||
REQUIRE(track);
|
REQUIRE(track);
|
||||||
str += track->print_branch_recursive(indentation + 1);
|
str += track->print_branch_recursive(indentation + 1);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue