Skip to content
Snippets Groups Projects
Commit ad883677 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Add GraphicalInterface::writeNodeFile

parent 9294a11a
No related branches found
No related tags found
No related merge requests found
......@@ -225,6 +225,8 @@ typedef double Color [4];
/// Stop the running capture of a window.
boolean stopCapture (in unsigned long windowId) raises (Error);
boolean writeNodeFile (in unsigned long windowId, in string filename) raises (Error);
};
};
};
......@@ -844,6 +844,23 @@ namespace graphics {
throw Error (exc.what ());
}
}
bool GraphicalInterface::writeNodeFile (const WindowID windowId, const char* filename)
throw (Error)
{
try {
if (windowId >= 0 || windowId < windowManagers_.size ()) {
return windowManagers_[windowId]->writeNodeFile (std::string (filename));
}
else {
std::cout << "Window ID " << windowId
<< " doesn't exist." << std::endl;
return false;
}
} catch (const std::exception& exc) {
throw Error (exc.what ());
}
}
} //end namespace impl
} //end namespace corbaServer
} //end namespace graphics
......@@ -136,6 +136,7 @@ public:
virtual bool startCapture (const WindowID windowId, const char* filename,
const char* extension) throw (Error);
virtual bool stopCapture (const WindowID windowId) throw (Error);
virtual bool writeNodeFile (const WindowID windowId, const char* filename) throw (Error);
}; // end of class
} /* namespace impl */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment