33 lines
No EOL
1.1 KiB
C++
33 lines
No EOL
1.1 KiB
C++
#include "TrackConnection.h"
|
|
|
|
namespace Soundwich
|
|
{
|
|
Soundwich::TrackConnection::TrackConnection(const char* dataType, const Util::String& compOut, const Util::String& compIn, int portOut, int portIn, const char* value)
|
|
: _dataType(dataType),
|
|
_componentOut(compOut),
|
|
_portOut(portOut),
|
|
_componentIn(compIn),
|
|
_portIn(portIn),
|
|
_value(value)
|
|
{
|
|
}
|
|
|
|
Soundwich::TrackConnection::~TrackConnection()
|
|
{
|
|
}
|
|
|
|
void Soundwich::TrackConnection::SerializeConnection(Util::XmlWriter& writer, int connectionId)
|
|
{
|
|
writer.OpenElement("Connection");
|
|
|
|
writer.WriteAttribute("ConnectionId", connectionId);
|
|
writer.WriteAttribute< Util::String >("DataType", _dataType);
|
|
writer.WriteAttribute< Util::String >("ComponentOut", _componentOut);
|
|
writer.WriteAttribute("PinOut", _portOut);
|
|
writer.WriteAttribute< Util::String >("ComponentIn", _componentIn);
|
|
writer.WriteAttribute("PinIn", _portIn);
|
|
writer.WriteAttribute< Util::String >("Value", _value);
|
|
|
|
writer.CloseElement();
|
|
}
|
|
} |