| 131 | } |
| 132 | |
| 133 | void VRMLObject::makeDirectories(const std::string& path, const std::string& subdir) |
| 134 | { |
| 135 | std::string::size_type pos = subdir.find('/'); |
| 136 | while (pos != std::string::npos) { |
| 137 | std::string sub = subdir.substr(0, pos); |
| 138 | std::string dir = path; |
| 139 | dir += '/'; |
| 140 | dir += sub; |
| 141 | Base::FileInfo fi(dir); |
| 142 | if (!fi.createDirectory()) { |
| 143 | break; |
| 144 | } |
| 145 | pos = subdir.find('/', pos + 1); |
| 146 | } |
| 147 | } |
| 148 | |
| 149 | void VRMLObject::Save(Base::Writer& writer) const |
| 150 | { |
nothing calls this directly
no test coverage detected