gphoto2pp
A C++ Wrapper for libgphoto2
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
helper_gphoto2.hpp File Reference
#include <string>
#include <vector>
Include dependency graph for helper_gphoto2.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  gphoto2
namespace  gphoto2pp

Functions

std::pair< std::string,
std::string > 
gphoto2pp::autoDetect ()
 Finds the first available and recognized camera type connected to the computer.
CameraListWrapper gphoto2pp::autoDetectAll ()
 Finds all attached and recognized camera types connected to the computer.
int gphoto2pp::checkResponse (int result, std::string &&methodName)
 Helper used to validate the response of gphoto2 methods. when GP_ error codes are < 0, this method will create a gphoto2_exception.
int gphoto2pp::checkResponseSilent (int result, std::string &&methodName)
 Helper used to validate the response of gphoto2 methods, but does not throw an exception (logs the error instead)
std::string gphoto2pp::LibraryVersion (bool verbose=false)
 Returns the version of gphoto library currently linked in the system.

Detailed Description

Author
Copyright (c) 2013 maldworth https://github.com/maldworth
Note
This file is part of gphoto2pp
gphoto2pp is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
gphoto2pp 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 Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with gphoto2pp. If not, see http://www.gnu.org/licenses