[vlc-commits] demux: dash: add Property template
Francois Cartegnie
git at videolan.org
Wed Dec 24 19:24:29 CET 2014
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Dec 22 21:27:25 2014 +0100| [cf3f714043df6f65469b731e9f9de3e24469cca3] | committer: Francois Cartegnie
demux: dash: add Property template
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cf3f714043df6f65469b731e9f9de3e24469cca3
---
modules/stream_filter/Makefile.am | 1 +
modules/stream_filter/dash/Properties.hpp | 44 +++++++++++++++++++++++++++++
2 files changed, 45 insertions(+)
diff --git a/modules/stream_filter/Makefile.am b/modules/stream_filter/Makefile.am
index 89090c0..533bac1 100644
--- a/modules/stream_filter/Makefile.am
+++ b/modules/stream_filter/Makefile.am
@@ -96,6 +96,7 @@ libdash_plugin_la_SOURCES = \
stream_filter/dash/DASHManager.h \
stream_filter/dash/Helper.cpp \
stream_filter/dash/Helper.h \
+ stream_filter/dash/Properties.hpp \
stream_filter/dash/StreamsType.hpp \
stream_filter/dash/Streams.cpp \
stream_filter/dash/Streams.hpp
diff --git a/modules/stream_filter/dash/Properties.hpp b/modules/stream_filter/dash/Properties.hpp
new file mode 100644
index 0000000..f05b574
--- /dev/null
+++ b/modules/stream_filter/dash/Properties.hpp
@@ -0,0 +1,44 @@
+/*
+ * Inheritables.hpp
+ *****************************************************************************
+ * Copyright (C) 2014 - VideoLAN Authors
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published
+ * by the Free Software Foundation; either version 2.1 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
+ *****************************************************************************/
+#ifndef PROPERTIES_HPP
+#define PROPERTIES_HPP
+
+namespace dash
+{
+ template <typename T> class Property
+ {
+ public:
+ Property() {}
+
+ T & Set(const T &i)
+ {
+ return value = i;
+ }
+
+ T const & Get() const
+ {
+ return value;
+ }
+
+ private:
+ T value;
+ };
+}
+#endif // PROPERTIES_HPP
More information about the vlc-commits
mailing list