diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-07-20 02:42:23 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-07-20 02:42:23 +0100 |
| commit | d92919284b25526581f5a3f461f1e06106b91a09 (patch) | |
| tree | d7f44a387d4c0ad52d8110bdd26d67620b3a6631 /src/asset.cc | |
| parent | 472b7ac9d168685d0268b4941f9520e12d67dc23 (diff) | |
Try to work on old versions of boost filesystem.
Diffstat (limited to 'src/asset.cc')
| -rw-r--r-- | src/asset.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/asset.cc b/src/asset.cc index 0ad7b5b1..59d106b5 100644 --- a/src/asset.cc +++ b/src/asset.cc @@ -48,7 +48,11 @@ Asset::write_to_pkl (ostream& s) const { s << " <Asset>\n" << " <Id>urn:uuid:" << _uuid << "</Id>\n" +#if BOOST_FILESYSTEM_VERSION == 3 << " <AnnotationText>" << filesystem::path(_mxf_path).filename().string() << "</AnnotationText>\n" +#else + << " <AnnotationText>" << filesystem::path(_mxf_path).filename() << "</AnnotationText>\n" +#endif << " <Hash>" << _digest << "</Hash>\n" << " <Size>" << filesystem::file_size(_mxf_path) << "</Size>\n" << " <Type>application/mxf</Type>\n" @@ -62,7 +66,11 @@ Asset::write_to_assetmap (ostream& s) const << " <Id>urn:uuid:" << _uuid << "</Id>\n" << " <ChunkList>\n" << " <Chunk>\n" +#if BOOST_FILESYSTEM_VERSION == 3 << " <Path>" << filesystem::path(_mxf_path).filename().string() << "</Path>\n" +#else + << " <Path>" << filesystem::path(_mxf_path).filename() << "</Path>\n" +#endif << " <VolumeIndex>1</VolumeIndex>\n" << " <Offset>0</Offset>\n" << " <Length>" << filesystem::file_size(_mxf_path) << "</Length>\n" |
