• Main Page
  • Classes
  • Files
  • File List

Swiften/Elements/Whiteboard/WhiteboardOperation.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/smart_ptr/shared_ptr.hpp>
00010 #include <string>
00011 
00012 namespace Swift {
00013   class WhiteboardOperation {
00014   public:
00015     typedef boost::shared_ptr<WhiteboardOperation> ref;
00016   public:
00017     virtual ~WhiteboardOperation(){};
00018 
00019     std::string getID() const {
00020       return id_;
00021     }
00022 
00023     void setID(const std::string& id) {
00024       id_ = id;
00025     }
00026 
00027     std::string getParentID() const {
00028       return parentID_;
00029     }
00030 
00031     void setParentID(const std::string& parentID) {
00032       parentID_ = parentID;
00033     }
00034 
00035     int getPos() const {
00036       return pos_;
00037     }
00038 
00039     void setPos(int pos) {
00040       pos_ = pos;
00041     }
00042 
00043   private:
00044     std::string id_;
00045     std::string parentID_;
00046     int pos_;
00047   };
00048 }

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