My Project
FileCoreProperties.h
1 /*-----------------------------------------------------------------------
2 Copyright F2I-CONSULTING, (2014-2016)
3 
4 philippe.verney@f2i-consulting.com
5 
6 This software is a computer program whose purpose is to access to data formatted using Energistics standards.
7 
8 This software is governed by the CeCILL-B license under French law and
9 abiding by the rules of distribution of free software. You can use,
10 modify and/ or redistribute the software under the terms of the CeCILL-B
11 license as circulated by CEA, CNRS and INRIA at the following URL
12 "http://www.cecill.info".
13 
14 As a counterpart to the access to the source code and rights to copy,
15 modify and redistribute granted by the license, users are provided only
16 with a limited warranty and the software's author, the holder of the
17 economic rights, and the successive licensors have only limited
18 liability.
19 
20 In this respect, the user's attention is drawn to the risks associated
21 with loading, using, modifying and/or developing or reproducing the
22 software by the user in light of its specific status of free software,
23 that may mean that it is complicated to manipulate, and that also
24 therefore means that it is reserved for developers and experienced
25 professionals having in-depth computer knowledge. Users are therefore
26 encouraged to load and test the software's suitability as regards their
27 requirements in conditions enabling the security of their systems and/or
28 data to be ensured and, more generally, to use and operate it in the
29 same conditions as regards security.
30 
31 The fact that you are presently reading this means that you have had
32 knowledge of the CeCILL-B license and that you accept its terms.
33 -----------------------------------------------------------------------*/
34 #ifndef FILE_CORE_PROPERTIES_H
35 #define FILE_CORE_PROPERTIES_H
36 
37 #include "CoreProperty.h"
38 
39 namespace epc
40 {
42  {
43  private:
44  CoreProperty properties[CoreProperty::undefinedCoreProperty];
45 
46  public:
48  ~FileCoreProperties() {}
49 
50  CoreProperty getProperty(const CoreProperty::TypeProperty & index) const;
51  std::string toString() const;
52 
58 
59  void setCategory(const std::string & value);
60  void setContentStatus(const std::string & value);
61  void setCreated(const std::string & value);
62  void setCreator(const std::string & value);
63  void setDescription(const std::string & value);
64  void setIdentifier(const std::string & value);
65  void setKeywords(const std::string & value);
66  void addKeywords(const std::string & value);
67  void setLanguage(const std::string & value);
68  void setLastModifiedBy(const std::string & value);
69  void setLastPrinted(const std::string & value);
70  void setModified(const std::string & value);
71  void setRevision(const std::string & value);
72  void setSubject(const std::string & value);
73  void setTitle(const std::string & value);
74  void setVersion(const std::string & value);
75 
79  void readFromString(const std::string & textInput);
80  };
81 }
82 
83 #endif
void readFromString(const std::string &textInput)
Definition: FileCoreProperties.cpp:252
Definition: FileCoreProperties.h:41
Definition: CoreProperty.h:42
TypeProperty
Definition: CoreProperty.h:49
void initDefaultCoreProperties()
Definition: FileCoreProperties.cpp:62
Definition: ContentType.h:39