Use std::vector instead of array in MJCF schema.
PiperOrigin-RevId: 831787681 Change-Id: I8093b8b10260daecb830e49319eda798e2dd2da5
This commit is contained in:
committed by
Copybara-Service
parent
26c1622ac8
commit
8b9fa2674c
+1
-5
@@ -49,14 +49,10 @@ class [[nodiscard]] mjXError {
|
||||
};
|
||||
|
||||
|
||||
// max number of attribute fields in schema (plus 3)
|
||||
#define mjXATTRNUM 36
|
||||
|
||||
|
||||
// Custom XML file validation
|
||||
class mjXSchema {
|
||||
public:
|
||||
mjXSchema(const char* schema[][mjXATTRNUM], unsigned nrow);
|
||||
mjXSchema(std::vector<const char*> schema[], unsigned nrow);
|
||||
|
||||
std::string GetError(); // return error
|
||||
void Print(std::stringstream& str, int level) const; // print schema
|
||||
|
||||
Reference in New Issue
Block a user