|
Cyrus Mod Loader
|
#include <storage.h>
Public Member Functions | |
| CYRUS void | addPropertyClass (PropertyClass *propClass) |
| CYRUS void | removePropertyClass (PropertyClass *propClass) |
| CYRUS PropertyClass * | findByClassName (const std::string &className) |
| Finds a PropertyClass by its class name. | |
| CYRUS std::vector< PropertyClass * > | findAllByClassName (const std::string &className) |
| Finds all PropertyClass objects with the given class name. | |
| CYRUS PropertyClass * | waitForClass (const std::string &className, int timeout=5000) |
| Waits for a PropertyClass with the given class name to be available. | |
| CYRUS void | debugWriteToFile (const std::string &filename) |
| Writes the details of all PropertyClass objects to a file for debugging. | |
| CYRUS std::unordered_map< std::string, int > | getAllClasses () |
| void Cyrus::PropClassStorage::addPropertyClass | ( | PropertyClass * | propClass | ) |
| void Cyrus::PropClassStorage::debugWriteToFile | ( | const std::string & | filename | ) |
Writes the details of all PropertyClass objects to a file for debugging.
This method is thread-safe.
| filename | The name of the file to write to. |
| std::vector< PropertyClass * > Cyrus::PropClassStorage::findAllByClassName | ( | const std::string & | className | ) |
Finds all PropertyClass objects with the given class name.
This method is thread-safe.
| className | The name of the class to find. |
| PropertyClass * Cyrus::PropClassStorage::findByClassName | ( | const std::string & | className | ) |
Finds a PropertyClass by its class name.
This method is thread-safe.
| className | The name of the class to find. |
| std::unordered_map< std::string, int > Cyrus::PropClassStorage::getAllClasses | ( | ) |
| void Cyrus::PropClassStorage::removePropertyClass | ( | PropertyClass * | propClass | ) |
| PropertyClass * Cyrus::PropClassStorage::waitForClass | ( | const std::string & | className, |
| int | timeout = 5000 ) |
Waits for a PropertyClass with the given class name to be available.
This method blocks until the PropertyClass is found or the timeout is reached.
| className | The name of the class to wait for. |
| timeout | The maximum time to wait in milliseconds (default is 5000). |