ContactListJsonParser.h file
Namespaces
- namespace BipedalLocomotion
- namespace BipedalLocomotion::Contacts
Functions
- auto contactListMapFromJson(const std::string& filename) -> ContactListMap
- Parse a ContactListMap from a JSON file.
- auto contactListMapToJson(const ContactListMap& map, const std::string& filename) -> bool
- Store a ContactListMap to a JSON file.
Function documentation
ContactListMap contactListMapFromJson(const std::string& filename)
Parse a ContactListMap from a JSON file.
| Parameters | |
|---|---|
| filename | the name of the file that should be loaded. |
| Returns | return a ContactListMap containing all the contacts. |
bool contactListMapToJson(const ContactListMap& map, const std::string& filename)
Store a ContactListMap to a JSON file.
| Parameters | |
|---|---|
| map | a ContactListMap containing the list of the contacts. |
| filename | the name of the file that should be loaded. |
| Returns | return true in case of success, failure otherwise. |