30 lines
587 B
C++
30 lines
587 B
C++
#include "TrackComponent.h"
|
|
|
|
|
|
namespace Soundwich
|
|
{
|
|
Soundwich::TrackComponent::TrackComponent(const Util::String& name, const Util::String& type)
|
|
: _name (name),
|
|
_type (type)
|
|
{
|
|
}
|
|
|
|
Soundwich::TrackComponent::~TrackComponent()
|
|
{
|
|
}
|
|
|
|
const Util::String& Soundwich::TrackComponent::GetName() const
|
|
{
|
|
return _name;
|
|
}
|
|
|
|
void Soundwich::TrackComponent::SerializeComponent(Util::XmlWriter& writer)
|
|
{
|
|
writer.OpenElement("Component");
|
|
|
|
writer.WriteAttribute< Util::String >("Name", _name);
|
|
writer.WriteAttribute< Util::String >("Type", _type);
|
|
|
|
writer.CloseElement();
|
|
}
|
|
}
|