CameraException.cpp
Go to the documentation of this file.
00001 /*
00002  * CameraException.cpp
00003  *
00004  *  Created on: Jul 28, 2010
00005  *      Author: petrito1@cmp.felk.cvut.cz
00006  */
00007 
00008 #include "CameraException.h"
00009 
00010 namespace nifti {
00011 namespace dc1394 {
00012 
00013 CameraException::CameraException(dc1394error_t err, std::string msg) :
00014   std::runtime_error(msg), error(err) {
00015 }
00016 
00017 CameraException::CameraException() :
00018   std::runtime_error("Camera exception."), error(DC1394_SUCCESS) {
00019 }
00020 
00021 CameraException::~CameraException() throw () {
00022 }
00023 
00024 dc1394error_t CameraException::getError() {
00025   return this->error;
00026 }
00027 
00028 std::string CameraException::getErrorString() {
00029   return std::string(dc1394_error_get_string(this->error));
00030 }
00031 
00032 }
00033 }
 All Classes Namespaces Files Functions Variables Typedefs Defines


omnicamera
Author(s): Tomas Petricek / petrito1@cmp.felk.cvut.cz
autogenerated on Tue Dec 10 2013 14:26:53