mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 08:53:34 +08:00
Move more messages to auto-generation, work on C++ code style
This commit is contained in:
committed by
Lorenz Meier
parent
e7a522edbc
commit
e1d2c0c5ad
@@ -94,6 +94,11 @@ protected:
|
||||
// attributes
|
||||
const struct orb_metadata *_meta;
|
||||
orb_advert_t _handle;
|
||||
private:
|
||||
// forbid copy
|
||||
PublicationBase(const PublicationBase&) : _meta(), _handle() {};
|
||||
// forbid assignment
|
||||
PublicationBase& operator = (const PublicationBase &);
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -120,10 +125,7 @@ public:
|
||||
* that this should be appended to.
|
||||
*/
|
||||
PublicationNode(const struct orb_metadata *meta,
|
||||
List<PublicationNode *> * list=nullptr) :
|
||||
PublicationBase(meta) {
|
||||
if (list != nullptr) list->add(this);
|
||||
}
|
||||
List<PublicationNode *> * list=nullptr);
|
||||
|
||||
/**
|
||||
* This function is the callback for list traversal
|
||||
@@ -136,7 +138,7 @@ public:
|
||||
* Publication wrapper class
|
||||
*/
|
||||
template<class T>
|
||||
class Publication :
|
||||
class __EXPORT Publication :
|
||||
public T, // this must be first!
|
||||
public PublicationNode
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user