Fesapi  2.0.0.0
This project provides C++ classes which allow an easy access in import and export to the Energistics standards.
ContentType.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 CONTENT_TYPE_H
20 #define CONTENT_TYPE_H
21 
22 #include <string>
23 
24 namespace epc
25 {
28  {
29  public:
32 
57 
65  ContentType(bool isAssociatedToAnExt, const std::string & contentType, const std::string & extOrPartName);
66 
68  ~ContentType() = default;
69 
75  const std::string & getContentTypeString() const;
76 
82  const std::string & getExtensionOrPartName() const;
83 
89  void setContentTypeString(const std::string & ctString) {contentTypeString = ctString;}
90 
96  void setExtensionOrPartName(const std::string & extOrPartName) {extensionOrPartName = extOrPartName;}
97 
103  std::string toString() const;
104 
105  private:
107  std::string contentTypeString;
109  std::string extensionOrPartName;
110  };
111 }
112 
113 #endif
Definition: ContentType.h:28
void setExtensionOrPartName(const std::string &extOrPartName)
Definition: ContentType.h:96
ContentType()
Definition: ContentType.h:56
ContentType(bool isAssociatedToAnExt, const std::string &contentType, const std::string &extOrPartName)
std::string toString() const
const std::string & getContentTypeString() const
void setContentTypeString(const std::string &ctString)
Definition: ContentType.h:89
bool isAssociatedToAnExtension
Definition: ContentType.h:31
const std::string & getExtensionOrPartName() const
~ContentType()=default
The epc namespace.
Definition: ContentType.h:25