MICO Platform
 All Classes Namespaces Functions Variables Friends
PartAnno4cpp.hpp
1 #ifndef PARTANNO4CPP_HPP
2 #define PARTANNO4CPP_HPP 1
3 
4 #include "Part.hpp"
5 #include "AssetAnno4cpp.hpp"
6 #include "ResourceAnno4cpp.hpp"
7 
8 
9 namespace mico {
10  namespace persistence {
11  namespace model {
12  class PartAnno4cpp: public Part, public ResourceAnno4cpp
13  {
14 
15  private:
16  PersistenceService& m_persistenceService;
17  std::shared_ptr<Item> m_item;
18  jnipp::GlobalRef<jnipp::eu::mico::platform::anno4j::model::PartMMM> m_partMMM;
19 
20  public:
21  PartAnno4cpp(jnipp::Ref<jnipp::eu::mico::platform::anno4j::model::PartMMM> partMMM,
22  std::shared_ptr<Item> item, PersistenceService& persistenceService)
23  : ResourceAnno4cpp(partMMM, persistenceService),
24  m_persistenceService(persistenceService),
25  m_item(item),
26  m_partMMM(partMMM)
27  {}
28 
29  std::shared_ptr<Item> getItem() {
30  return m_item;
31  }
32 
33  jnipp::LocalRef<jnipp::com::github::anno4j::model::Body> getBody();
34 
35  void setBody(const jnipp::LocalRef<jnipp::com::github::anno4j::model::Body> &body);
36 
37  std::list< jnipp::LocalRef<jnipp::com::github::anno4j::model::Target> > getTargets();
38 
39  void setTargets(std::list< jnipp::LocalRef<jnipp::com::github::anno4j::model::Target> > targets);
40 
41  void addTarget(const jnipp::LocalRef<jnipp::com::github::anno4j::model::Target> &target);
42 
43  std::list< std::shared_ptr<Resource> > getInputs();
44 
45  void setInputs(std::list<std::shared_ptr<Resource> > inputs);
46 
47  void addInput(std::shared_ptr<Resource> input);
48 
49  std::string getSerializedAt();
50 
51  jnipp::LocalRef<jnipp::com::github::anno4j::model::Agent> getSerializedBy();
52 
53  };
54  }
55  }
56 }
57 #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
Definition: PartAnno4cpp.hpp:12
Main service for accessing the MICO persistence API.
Definition: PersistenceService.hpp:51
Definition: ResourceAnno4cpp.hpp:15
std::shared_ptr< Item > getItem()
Return the parent content item.
Definition: PartAnno4cpp.hpp:29