Changeset 128 in flair-src for trunk/lib/FlairSensorActuator/src/Camera.cpp
- Timestamp:
- Jan 17, 2017, 4:57:10 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairSensorActuator/src/Camera.cpp
r125 r128 140 140 } 141 141 142 void Camera::SavePictureToFile(std::string filename) const { 143 string::size_type idx = filename.rfind('.'); 142 void Camera::SavePictureToFile(string filename) const { 143 if(filename=="") filename="./"+ObjectName()+"_"+std::to_string(GetTime())+".jpg"; 144 string::size_type idx = filename.rfind('.'); 144 145 145 if(idx != st d::string::npos) {146 if(idx != string::npos) { 146 147 Printf("saving %s\n", filename.c_str()); 147 st d::string extension = filename.substr(idx+1);148 string extension = filename.substr(idx+1); 148 149 149 150 output->GetMutex();
Note:
See TracChangeset
for help on using the changeset viewer.