]>
git.datanom.net - lensdb.git/blob - lib/exiftool/ExifToolPipe.h
1 //------------------------------------------------------------------------------
2 // File: ExifToolPipe.h
4 // Description: Piped output from exiftool application
6 // License: Copyright 2013-2019, Phil Harvey (philharvey66 at gmail.com)
8 // This is software, in whole or part, is free for use in
9 // non-commercial applications, provided that this copyright notice
10 // is retained. A licensing fee may be required for use in a
11 // commercial application.
13 // Created: 2013-11-23 - Phil Harvey
14 //------------------------------------------------------------------------------
15 #ifndef __EXIFTOOLPIPE_H__
16 #define __EXIFTOOLPIPE_H__
23 void Init(int fd
, int pid
, int initialSize
);
24 int Read(); // read exiftool response
25 void Free(); // free buffer memory
26 void Flush(); // remove previous response from buffer
27 char * GetString() { return (mString
&& mString
[0]) ? mString
: (char *)0; }
28 int GetStringLen() { return mStringLen
; }
31 int mFile
; // read file descriptor
32 char * mBuff
; // buffer pointer
33 int mSize
; // buffer size
34 int mLen
; // length of data in buffer
35 int mPos
; // current read position in buffer
36 int mSearchPos
; // current search position in buffer
37 int mBlockSize
; // initial buffer size
38 char * mString
; // returned string from last Read()
39 int mStringLen
; // length of returned string
40 int mPid
; // process id for other side of the pipe
43 #endif // __EXIFTOOLPIPE_H__
This page took 0.912029 seconds and 6 git commands to generate.