Magick++ 7.1.1
Loading...
Searching...
No Matches
EncoderFormat Class Reference
Collaboration diagram for EncoderFormat:

Public Member Functions

const string get ()
 
void set (const wstring fileName)
 

Private Attributes

wstring _format =L".notset"
 

Detailed Description

Definition at line 21 of file encoder_format.h.

Member Function Documentation

◆ get()

const string EncoderFormat::get ( )
inline

Definition at line 24 of file encoder_format.h.

25 {
26 return(string(_format.begin(),_format.end()));
27 }

◆ set()

void EncoderFormat::set ( const wstring  fileName)
inline

Definition at line 29 of file encoder_format.h.

30 {
31 wstring
32 format;
33
34 size_t
35 index;
36
37 if (fileName.find(L"clusterfuzz-testcase-") == -1)
38 return;
39
40 format=fileName;
41 index=format.find(L"_", 0);
42 if (index == wstring::npos)
43 return;
44
45 format=format.substr(index+1);
46 index=format.find(L"_",0);
47 if (index != wstring::npos)
48 _format=format.substr(0, index);
49 }

Member Data Documentation

◆ _format

wstring EncoderFormat::_format =L".notset"
private

Definition at line 51 of file encoder_format.h.


The documentation for this class was generated from the following file: