| 140 | } |
| 141 | |
| 142 | bool jsonFile() { |
| 143 | std::string extn = ".json"; |
| 144 | if ( fileName.size() <= extn.size() || |
| 145 | fileName.substr(fileName.size()- extn.size()) != extn ) |
| 146 | return false; |
| 147 | |
| 148 | return true; |
| 149 | } |
| 150 | |
| 151 | int result() { |
| 152 | std::cout<<"Generated GIF file : "<<gifName<<std::endl; |