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
ContentType.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 CONTENT_TYPE_H
20#define CONTENT_TYPE_H
21
22#include <string>
23
24namespace 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
const std::string & getContentTypeString() const
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 & getExtensionOrPartName() const
void setContentTypeString(const std::string &ctString)
Definition ContentType.h:89
bool isAssociatedToAnExtension
Definition ContentType.h:31
~ContentType()=default
The epc namespace.
Definition ContentType.h:25