• Main Page
  • Classes
  • Files
  • File List

Swiften/Elements/Whiteboard/WhiteboardElement.h

00001 /*
00002  * Copyright (c) 2012 Mateusz Piękos
00003  * Licensed under the simplified BSD license.
00004  * See Documentation/Licenses/BSD-simplified.txt for more information.
00005  */
00006 
00007 #pragma once
00008 
00009 #include <boost/shared_ptr.hpp>
00010 #include <Swiften/Elements/Whiteboard/WhiteboardElementVisitor.h>
00011 
00012 namespace Swift {
00013   class WhiteboardElement {
00014   public:
00015     typedef boost::shared_ptr<WhiteboardElement> ref;
00016 
00017   public:
00018     virtual ~WhiteboardElement() {}
00019     virtual void accept(WhiteboardElementVisitor& visitor) = 0;
00020 
00021     const std::string& getID() const {
00022       return id_;
00023     }
00024 
00025     void setID(const std::string& id) {
00026       id_ = id;
00027     }
00028 
00029   private:
00030     std::string id_;
00031   };
00032 }

Generated on Fri Oct 12 2012 21:00:19 for Swiften by  doxygen 1.7.1