diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-08-17 23:47:30 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-08-17 23:47:30 +0100 |
| commit | b6488655b833ecffa6b7934cd83cced49571868c (patch) | |
| tree | 02eda8461e9e7f459c83b47b057411161b3f00ab /src | |
| parent | 876477f16b2f29d89d6d34b227c71707fb71ab78 (diff) | |
GPL boilerplate and a few comments.
Diffstat (limited to 'src')
| -rw-r--r-- | src/asset_map.cc | 23 | ||||
| -rw-r--r-- | src/asset_map.h | 23 | ||||
| -rw-r--r-- | src/cpl.cc | 23 | ||||
| -rw-r--r-- | src/cpl.h | 31 | ||||
| -rw-r--r-- | src/pkl.cc | 23 | ||||
| -rw-r--r-- | src/pkl.h | 23 |
6 files changed, 146 insertions, 0 deletions
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 <cth@carlh.net> + + 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 <cth@carlh.net> + + 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 <stdint.h> #include <boost/shared_ptr.hpp> #include "xml.h" @@ -1,3 +1,26 @@ +/* + Copyright (C) 2012 Carl Hetherington <cth@carlh.net> + + 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 <iostream> #include "cpl.h" @@ -1,9 +1,33 @@ +/* + Copyright (C) 2012 Carl Hetherington <cth@carlh.net> + + 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 <stdint.h> #include <boost/shared_ptr.hpp> #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<MainSubtitle> main_subtitle; }; +/** CPL Reel node */ class Reel : public XMLNode { public: @@ -69,6 +97,7 @@ public: boost::shared_ptr<CPLAssetList> 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; @@ -1,3 +1,26 @@ +/* + Copyright (C) 2012 Carl Hetherington <cth@carlh.net> + + 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 <iostream> #include "pkl.h" @@ -1,3 +1,26 @@ +/* + Copyright (C) 2012 Carl Hetherington <cth@carlh.net> + + 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 <boost/shared_ptr.hpp> #include "xml.h" |
