Add support for printing to stdout in mj_saveLastXML.
PiperOrigin-RevId: 546849864 Change-Id: I799ea3fcd723cf036f82ef5c1ef8152c314072dc
This commit is contained in:
committed by
Copybara-Service
parent
5cfbb6ac8b
commit
24c1ec9aec
@@ -15,6 +15,7 @@
|
||||
#ifndef MUJOCO_SRC_XML_XML_NATIVE_WRITER_H_
|
||||
#define MUJOCO_SRC_XML_XML_NATIVE_WRITER_H_
|
||||
|
||||
#include <cstdlib>
|
||||
#include <string>
|
||||
|
||||
#include "xml/xml_base.h"
|
||||
@@ -24,7 +25,9 @@ class mjXWriter : public mjXBase {
|
||||
public:
|
||||
mjXWriter(); // constructor
|
||||
virtual ~mjXWriter() = default; // destructor
|
||||
void Write(FILE* fp); // write XML document
|
||||
|
||||
// write XML document to string
|
||||
std::string Write(char *error, std::size_t error_sz);
|
||||
|
||||
private:
|
||||
// insert end child with given name, return child
|
||||
|
||||
Reference in New Issue
Block a user