01 solution

This commit is contained in:
2022-10-04 10:35:03 +02:00
parent 98c6e66b30
commit 96106f096c
3 changed files with 34 additions and 6 deletions

View File

@ -0,0 +1,22 @@
#include "fsfw/objectmanager.h"
#include <iostream>
#include <iomanip>
using namespace std;
class MySystemObject: public SystemObject {
public:
MySystemObject(): SystemObject(0x10101010, false) {}
ReturnValue_t initialize() override {
cout << "MySystemObject::initialize: Custom init" << endl;
}
};
int main() {
auto* mySysObj = new MySystemObject();
cout << "Object ID: " << setfill('0') << hex << "0x" << setw(8) <<
mySysObj->getObjectId() << endl;
mySysObj->initialize();
delete mySysObj;
return 0;
}