Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove a broken, unused template class #137

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions src/MXF.h
Original file line number Diff line number Diff line change
Expand Up @@ -263,30 +263,6 @@ namespace ASDCP
const PropertyType& const_get() const { return m_property; }
};

// wrapper object manages optional properties
template <class PropertyType>
class optional_container_property
{
PropertyType m_property;

public:
optional_container_property() {}
optional_container_property(const PropertyType& value) : m_property(value) {}
const optional_container_property<PropertyType>& operator=(const PropertyType& rhs) {
this->Copy(rhs.m_property);
return *this;
}

bool operator==(const PropertyType& rhs) const { return this->m_property == rhs; }
bool operator==(const optional_property<PropertyType>& rhs) const { return this->m_property == rhs.m_property; }
operator PropertyType&() { return this->m_property; }
void set(const PropertyType& rhs) { this->m_property = rhs; }
void reset(const PropertyType& rhs) { this->clear(); }
bool empty() const { return ! this->m_property.HasValue(); }
PropertyType& get() { return m_property; }
const PropertyType& const_get() const { return m_property; }
};

// base class of all metadata objects
//
class InterchangeObject : public ASDCP::KLVPacket
Expand Down