Fesapi 2.9.0.1
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
Loading...
Searching...
No Matches
FileRelationship.h
1/*-----------------------------------------------------------------------
2Licensed to the Apache Software Foundation (ASF) under one
3or more contributor license agreements. See the NOTICE file
4distributed with this work for additional information
5regarding copyright ownership. The ASF licenses this file
6to you under the Apache License, Version 2.0 (the
7"License"; you may not use this file except in compliance
8with the License. You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12Unless required by applicable law or agreed to in writing,
13software distributed under the License is distributed on an
14"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15KIND, either express or implied. See the License for the
16specific language governing permissions and limitations
17under the License.
18-----------------------------------------------------------------------*/
19#ifndef FILE_RELATIONSHIP_H
20#define FILE_RELATIONSHIP_H
21
22#include <vector>
23
24#include "Relationship.h"
25
26namespace epc
27{
30 {
31 private:
33 std::string pathName;
35 std::vector<Relationship> relationship;
36
37 public:
40
46 explicit FileRelationship(const Relationship & frRelationship);
47
53 explicit FileRelationship(const std::vector<Relationship> & frRelationship);
54
56 ~FileRelationship() = default;
57
63 bool isEmpty() const;
64
70 const std::string& getPathName() const { return pathName; }
71
77 const std::vector<Relationship>& getAllRelationship() const { return relationship; }
78
87
93 std::string toString() const;
94
100 void setPathName(const std::string & frPathName) { pathName = frPathName; }
101
107 void addRelationship(const Relationship & frRelationship);
108
114 void readFromString(const std::string & textInput);
115 };
116}
117
118#endif
Definition FileRelationship.h:30
bool isEmpty() const
void setPathName(const std::string &frPathName)
Definition FileRelationship.h:100
FileRelationship(const std::vector< Relationship > &frRelationship)
FileRelationship(const Relationship &frRelationship)
void readFromString(const std::string &textInput)
Relationship getIndexRelationship(size_t index) const
FileRelationship()
Definition FileRelationship.h:39
void addRelationship(const Relationship &frRelationship)
const std::string & getPathName() const
Definition FileRelationship.h:70
std::string toString() const
const std::vector< Relationship > & getAllRelationship() const
Definition FileRelationship.h:77
~FileRelationship()=default
Definition Relationship.h:28
The epc namespace.
Definition ContentType.h:25