From b6488655b833ecffa6b7934cd83cced49571868c Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 17 Aug 2012 23:47:30 +0100 Subject: GPL boilerplate and a few comments. --- src/asset_map.cc | 23 +++++++++++++++++++++++ src/asset_map.h | 23 +++++++++++++++++++++++ src/cpl.cc | 23 +++++++++++++++++++++++ src/cpl.h | 31 +++++++++++++++++++++++++++++++ src/pkl.cc | 23 +++++++++++++++++++++++ src/pkl.h | 23 +++++++++++++++++++++++ 6 files changed, 146 insertions(+) (limited to 'src') diff --git a/src/asset_map.cc b/src/asset_map.cc index 3e0a0545..3af2d6f8 100644 --- a/src/asset_map.cc +++ b/src/asset_map.cc @@ -1,3 +1,26 @@ +/* + Copyright (C) 2012 Carl Hetherington + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 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 General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +*/ + +/** @file src/asset_map.cc + * @brief Classes used to parse a AssetMap. + */ + #include "asset_map.h" using namespace std; diff --git a/src/asset_map.h b/src/asset_map.h index 3f51ca12..430cb5aa 100644 --- a/src/asset_map.h +++ b/src/asset_map.h @@ -1,3 +1,26 @@ +/* + Copyright (C) 2012 Carl Hetherington + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 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 General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +*/ + +/** @file src/asset_map.h + * @brief Classes used to parse a AssetMap. + */ + #include #include #include "xml.h" diff --git a/src/cpl.cc b/src/cpl.cc index 137d359f..f7bf43f5 100644 --- a/src/cpl.cc +++ b/src/cpl.cc @@ -1,3 +1,26 @@ +/* + Copyright (C) 2012 Carl Hetherington + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 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 General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +*/ + +/** @file src/cpl.cc + * @brief Classes used to parse a CPL. + */ + #include #include "cpl.h" diff --git a/src/cpl.h b/src/cpl.h index 5dd2c37b..ed42c3a9 100644 --- a/src/cpl.h +++ b/src/cpl.h @@ -1,9 +1,33 @@ +/* + Copyright (C) 2012 Carl Hetherington + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 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 General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +*/ + +/** @file src/cpl.h + * @brief Classes used to parse a CPL. + */ + #include #include #include "xml.h" namespace libdcp { +/** CPL MainPicture node */ class MainPicture : public XMLNode { public: @@ -20,6 +44,7 @@ public: Fraction screen_aspect_ratio; }; +/** CPL MainSound node */ class MainSound : public XMLNode { public: @@ -34,6 +59,7 @@ public: int64_t duration; }; +/** CPL MainSubtitle node */ class MainSubtitle : public XMLNode { public: @@ -48,6 +74,7 @@ public: int64_t duration; }; +/** CPL AssetList node */ class CPLAssetList : public XMLNode { public: @@ -59,6 +86,7 @@ public: boost::shared_ptr main_subtitle; }; +/** CPL Reel node */ class Reel : public XMLNode { public: @@ -69,6 +97,7 @@ public: boost::shared_ptr asset_list; }; +/** CPL ContentVersion node */ class ContentVersion : public XMLNode { public: @@ -79,9 +108,11 @@ public: std::string label_text; }; +/** Class to parse a CPL */ class CPL : public XMLFile { public: + /** Parse a CPL XML file into our member variables */ CPL (std::string file); std::string id; diff --git a/src/pkl.cc b/src/pkl.cc index 0ede1d57..51e75818 100644 --- a/src/pkl.cc +++ b/src/pkl.cc @@ -1,3 +1,26 @@ +/* + Copyright (C) 2012 Carl Hetherington + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 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 General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +*/ + +/** @file src/cpl.cc + * @brief Classes used to parse a PKL. + */ + #include #include "pkl.h" diff --git a/src/pkl.h b/src/pkl.h index 8c64f43b..ed1bcd61 100644 --- a/src/pkl.h +++ b/src/pkl.h @@ -1,3 +1,26 @@ +/* + Copyright (C) 2012 Carl Hetherington + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 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 General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +*/ + +/** @file src/pkl.h + * @brief Classes used to parse a PKL + */ + #include #include "xml.h" -- cgit v1.2.3