27 #ifndef IMAGE_INT_HPP_ 28 #define IMAGE_INT_HPP_ 37 #if (defined(__GNUG__) || defined(__GNUC__)) || defined(__clang__) 38 #define ATTRIBUTE_FORMAT_PRINTF __attribute__((format(printf, 1, 0))) 40 #define ATTRIBUTE_FORMAT_PRINTF 75 for (
size_t i = 0; i < binToStr.buf_.size(); ++i) {
76 int c =
static_cast<int>(binToStr.buf_.at(i));
77 const bool bTrailingNull = c == 0 && i == binToStr.buf_.size() - 1;
79 if (c < ' ' || c >= 127) {
82 stream.put(static_cast<char>(c));
95 friend std::ostream& operator<<<T>(std::ostream& stream,
const binaryToStringHelper<T>& binToStr);
124 template <
typename T>
142 #endif // #ifndef IMAGE_INT_HPP_ std::string stringFormat(const char *format,...)
format a string in the pattern of sprintf .
Definition: image_int.cpp:32
uint8_t byte
1 byte unsigned integer type.
Definition: types.hpp:105
Type definitions for Exiv2 and related functionality.
binaryToStringHelper< T > binaryToString(const Slice< T > sl)
format binary data for display in Image::printStructure()
Definition: image_int.hpp:125
IPTC string type.
Definition: types.hpp:147
Provides classes and functions to encode and decode Exif and Iptc data. The libexiv2 API consists of ...
Definition: asfvideo.hpp:36
Helper struct for binary data output via binaryToString.
Definition: image_int.hpp:64
std::string indent(int32_t d)
indent output for kpsRecursive in printStructure() .
Definition: image_int.cpp:106
std::string binaryToHex(const byte *data, size_t size)
format binary for display of raw data .
Definition: image_int.cpp:60