Choreonoid  1.8
MessageLogItem.h
Go to the documentation of this file.
1 
6 #ifndef CNOID_BASE_MESSAGE_LOG_ITEM_H
7 #define CNOID_BASE_MESSAGE_LOG_ITEM_H
8 
9 #include "AbstractTextItem.h"
10 #include "exportdecl.h"
11 
12 namespace cnoid {
13 
14 class MessageLogItemImpl;
15 
16 class CNOID_EXPORT MessageLogItem : public AbstractTextItem
17 {
18 public:
19  static void initializeClass(ExtensionManager* ext);
20 
22  MessageLogItem(const MessageLogItem& org);
23  virtual ~MessageLogItem();
24  virtual const std::string& textFilename() const override;
25  enum FileMode { APPEND = 0, OVERWRITE, N_FILE_MODES };
26 
27 protected:
28  virtual void onConnectedToRoot() override;
29  virtual void onDisconnectedFromRoot() override;
30  virtual Item* doDuplicate() const override;
31  virtual void doPutProperties(PutPropertyFunction& putProperty) override;
32  virtual bool store(Archive& archive) override;
33  virtual bool restore(const Archive& archive) override;
34 
35 private:
36  MessageLogItemImpl* impl;
37 };
38 
40 
41 }
42 
43 #endif
44 
cnoid::AbstractTextItem
Definition: AbstractTextItem.h:14
cnoid::ExtensionManager
Definition: ExtensionManager.h:23
cnoid::PutPropertyFunction
Definition: PutPropertyFunction.h:51
cnoid::MessageLogItem::OVERWRITE
@ OVERWRITE
Definition: MessageLogItem.h:25
cnoid::Archive
Definition: Archive.h:22
AbstractTextItem.h
cnoid::ref_ptr
Definition: Referenced.h:103
cnoid::MessageLogItem
Definition: MessageLogItem.h:16
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::Item
Definition: Item.h:29
cnoid::MessageLogItemPtr
ref_ptr< MessageLogItem > MessageLogItemPtr
Definition: MessageLogItem.h:39
cnoid::MessageLogItem::FileMode
FileMode
Definition: MessageLogItem.h:25