Fesapi  0.13.0.0
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
FileRelationship.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 #ifndef FILE_RELATIONSHIP_H
20 #define FILE_RELATIONSHIP_H
21 
22 #include <vector>
23 
24 #include "Relationship.h"
25 
26 namespace epc
27 {
32  {
33  private:
34  std::string pathName;
35  std::vector<Relationship> relationship;
36 
37  public:
38  // CONSTRUCTORS
40  FileRelationship(const Relationship & frRelationship);
41  FileRelationship(const std::vector<Relationship> & frRelationship);
42  ~FileRelationship() {}
43 
44  // ACCESSORS
45  bool isEmpty() const;
46  std::string getPathName() const;
47  std::vector<Relationship> getAllRelationship() const;
48  Relationship getIndexRelationship(const int & index) const;
49  std::string toString() const;
50 
51  void setPathName(const std::string & frPathName);
52  void addRelationship(const Relationship & frRelationship);
53 
57  void readFromString(const std::string & textInput);
58  };
59 }
60 
61 #endif
62 
63 
64 
65 
66 
67 
68 
69 
70 
71 
72 
73 
74 
75 
76 
void readFromString(const std::string &textInput)
Definition: FileRelationship.cpp:97
Definition: FileRelationship.h:31
Definition: ContentType.h:26
Definition: Relationship.h:32