date_type parse_date(const string_type& value, const string_type& format) const { stringstream_type ss; ss << value; stream_itr_type sitr(ss); stream_itr_type stream_end; return parse_date(sitr, stream_end, format); }
vector<DataPoint> getDataPoints(path p, size_t label, string catname){ vector<DataPoint> dps; directory_iterator end_itr; for ( directory_iterator sitr(p); sitr != end_itr; ++sitr){ if(is_image(sitr->path().extension().string())){ string filename = (string) sitr->path().filename().c_str(); string fileurl = (string) sitr->path().string().c_str(); dps.push_back(DataPoint(label, filename, fileurl, catname)); } } return dps; }