00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #include "proc/asset/unknown.hpp"
00025 #include <boost/format.hpp>
00026
00027
00028 using boost::format;
00029
00030 namespace asset
00031 {
00032
00033
00034
00040 Unknown::Unknown (const Asset::Ident& idi, string name, Time length)
00041 : Media (idi, name, length)
00042 {
00043 TODO ("implement some sensible behaviour for the »unknown media« placeholder...");
00044 }
00045
00046
00050 Media::PMedia
00051 Unknown::getOrg() throw(lumiera::error::Invalid)
00052 {
00053 UNIMPLEMENTED ("how to get at the original media from a »Unknown« placeholder");
00054 if (1==0)
00055 throw lumiera::error::Invalid (str(format("Unable to locate original media "
00056 "for ID=%s, filename=\"%s\".")
00057 % string(this->ident)
00058 % string(this->getFilename()))
00059 ,LUMIERA_ERROR_ORIG_NOT_FOUND
00060 );
00061 }
00062
00063 LUMIERA_ERROR_DEFINE (ORIG_NOT_FOUND, "Media refered by placeholder not found");
00064
00065
00066
00067 }