./ble-serial-server --actor-id <actor-id> --actor-type <actor-type> --owner-id <owner-id> --owner-type <owner-type>
namespace RosHub {
enum DocType { User=0x1, Team =0x2, Org = 0x3, Device = 0x04, App = 0x5 }
Q_ENUM ( DocType)
struct Doc {
DocType type
QUuid/QString id
}
}
BtLESerialServer::BtLESerialServer(ConsoleReader* input, RosHubDoc* actor=0, RosHubDoc owner=0, QObject *parent = 0)
Utilize Qt's approach for command line parsing - https://doc.qt.io/qt-5/qcommandlineparser.html
Update
BtLESerialServerclass constructor to matchFYI - In Qt you can easily translate enum members to and from strings -> https://stackoverflow.com/questions/34281682/how-to-convert-enum-to-qstring?answertab=votes#tab-top
@NickZ