MICO Platform
 All Classes Namespaces Functions Variables Friends
Part.hpp
1 #ifndef PART_HPP
2 #define PART_HPP 1
3 
4 #include "Resource.hpp"
5 
6 #include <list>
7 #include <memory>
8 #include <jnipp.h>
9 #include <anno4cpp.h>
10 
11 
12 namespace mico {
13  namespace persistence {
14  namespace model {
15 
16  class Item;
17 
18 
19  class Part
20  {
21  public:
26  virtual std::shared_ptr<Item> getItem() = 0;
27 
28  virtual jnipp::LocalRef<jnipp::com::github::anno4j::model::Body> getBody() = 0;
29 
30  virtual void setBody(const jnipp::LocalRef<jnipp::com::github::anno4j::model::Body> &body) = 0;
31 
32  virtual std::list< jnipp::LocalRef<jnipp::com::github::anno4j::model::Target> > getTargets() = 0;
33 
34  virtual void setTargets(std::list< jnipp::LocalRef<jnipp::com::github::anno4j::model::Target> > targets) = 0;
35 
36  virtual void addTarget(const jnipp::LocalRef<jnipp::com::github::anno4j::model::Target> &target) = 0;
37 
38  virtual std::list< std::shared_ptr<Resource> > getInputs() = 0;
39 
40  virtual void setInputs(std::list< std::shared_ptr<Resource> > inputs) = 0;
41 
42  virtual void addInput(std::shared_ptr<Resource> input) = 0;
43 
44  virtual std::string getSerializedAt() = 0;
45 
46  virtual jnipp::LocalRef<jnipp::com::github::anno4j::model::Agent> getSerializedBy() = 0;
47  };
48  }
49  }
50 }
51 #endif
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in c...
Definition: http_client.cpp:23
Definition: Part.hpp:19
virtual std::shared_ptr< Item > getItem()=0
Return the parent content item.