An interface for all motion classes.
More...
#include <AbstractMotion.h>
|
| virtual bool | addEntry (const std::string &name, MotionEntryPtr entry) |
| |
|
virtual MotionEntryPtr | getEntry (const std::string &name) |
| | Retrieve custom motion data entries. Name is internally converted to lowercase.
|
| |
| virtual unsigned int | getNumFrames ()=0 |
| |
|
virtual bool | hasEntry (const std::string &name) const |
| | Check if entry with name (lowercase) is present.
|
| |
|
virtual bool | removeEntry (const std::string &name) |
| | Remove custom entry.
|
| |
|
bool | saveXML (const std::string &filename) |
| | Stores MMM content to file.
|
| |
| virtual std::string | toXML ()=0 |
| |
|
|
template<typename M , typename std::enable_if< std::is_base_of< AbstractMotion, M >::value >::type * = nullptr> |
| static bool | saveXML (const std::vector< std::shared_ptr< M >> &motions, const std::string &filename) |
| | Stores MMM content to file.
|
| |
|
|
static bool | saveXML (const std::string &filename, const std::string &content) |
| |
|
|
std::map< std::string, MotionEntryPtr > | motionEntries |
| | Custom Entries are stored in this map.
|
| |
An interface for all motion classes.
◆ addEntry()
| bool MMM::AbstractMotion::addEntry |
( |
const std::string & |
name, |
|
|
MotionEntryPtr |
entry |
|
) |
| |
|
virtual |
Adds a custom motion entry.
Silently overwrites existing entries with same name (lowercase).
- Parameters
-
| name | The name is used to identify the custom data. Internally it is converted to lowercase. |
| entry | The data to store. |
- Returns
- True on success.
◆ getNumFrames()
| virtual unsigned int MMM::AbstractMotion::getNumFrames |
( |
| ) |
|
|
pure virtual |
◆ toXML()
| virtual std::string MMM::AbstractMotion::toXML |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following files:
- /builds/sw/mmm/core/MMM/Motion/Legacy/AbstractMotion.h
- /builds/sw/mmm/core/MMM/Motion/Legacy/AbstractMotion.cpp