Fesapi  0.13.0.0
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
FilePart.h
1 /*-----------------------------------------------------------------------
2 Licensed to the Apache Software Foundation (ASF) under one
3 or more contributor license agreements. See the NOTICE file
4 distributed with this work for additional information
5 regarding copyright ownership. The ASF licenses this file
6 to you under the Apache License, Version 2.0 (the
7 "License"; you may not use this file except in compliance
8 with the License. You may obtain a copy of the License at
9 
10  http://www.apache.org/licenses/LICENSE-2.0
11 
12 Unless required by applicable law or agreed to in writing,
13 software distributed under the License is distributed on an
14 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 KIND, either express or implied. See the License for the
16 specific language governing permissions and limitations
17 under the License.
18 -----------------------------------------------------------------------*/
19 
20 
21 
22 #ifndef FILE_PART_H
23 #define FILE_PART_H
24 
25 #include "FileRelationship.h"
26 
27 namespace epc
28 {
29 
30  class FilePart
31  {
32  private:
33 
34  std::string finalPathName;
35  FileRelationship fileRelationship;
36 
37  public:
38 
39  FilePart();
40 
46  FilePart(const std::string & outputPartPath);
47  ~FilePart() {}
48 
49  // ACCESSORS
50  const std::string & getFinalPathName() const;
51  const FileRelationship & getFileRelationship() const;
52  Relationship getIndexRelationship(const int & index) const;
53 
54  void setFinalPathName(const std::string & finalPath);
55 
59  void addRelationship(const Relationship & relationship);
60 
64  void createRelationship(const std::string & rsTarget, const std::string & rsType,const std::string & rsId, const bool & internalTarget = true);
65  };
66 }
67 
68 #endif
69 
70 
71 
72 
73 
74 
75 
76 
77 
78 
79 
80 
81 
82 
83 
Definition: FileRelationship.h:31
Definition: FilePart.h:30
FilePart()
The associated rel file to the part.
Definition: FilePart.cpp:30
Definition: ContentType.h:26
void createRelationship(const std::string &rsTarget, const std::string &rsType, const std::string &rsId, const bool &internalTarget=true)
Definition: FilePart.cpp:86
Definition: Relationship.h:32
void addRelationship(const Relationship &relationship)
Definition: FilePart.cpp:92