AnCH Framework  0.1
Another C++ Hack Framework
hour12Formatter.hpp
1 /*
2  ANCH Framework: ANother C++ Hack is a C++ framework based on C++11 standard
3  Copyright (C) 2012 Vincent Lachenal
4 
5  This file is part of ANCH Framework.
6 
7  ANCH Framework is free software: you can redistribute it and/or modify
8  it under the terms of the GNU Lesser General Public License as published by
9  the Free Software Foundation, either version 3 of the License, or
10  (at your option) any later version.
11 
12  ANCH Framework is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU Lesser General Public License for more details.
16 
17  You should have received a copy of the GNU Lesser General Public License
18  along with ANCH Framework. If not, see <http://www.gnu.org/licenses/>.
19 */
20 #ifndef _ANCH_DATE_FORMATTER_HOUR12_FORMATTER_H_
21 #define _ANCH_DATE_FORMATTER_HOUR12_FORMATTER_H_
22 
23 #include "date/formatter/iDatePartFormatter.hpp"
24 
25 namespace anch {
26  namespace date {
27  namespace formatter {
28 
35  public:
37  static const std::string PATTERN;
38 
39  public:
44 
48  virtual ~Hour12Formatter();
49 
56  void format(const anch::date::Date& date, std::ostream& output) const noexcept;
57 
63  size_t getSize() const noexcept;
64 
71  bool setValue(anch::date::Date& date, const std::string& value) const noexcept;
72 
78  const std::string& getPattern() const noexcept;
79 
86 
87  };
88 
89  }
90  }
91 }
92 
93 #endif // _ANCH_DATE_FORMATTER_HOUR12_FORMATTER_H_
Hour12Formatter()
Definition: hour12Formatter.cpp:42
Definition: hour12Formatter.hpp:34
STL namespace.
void format(const anch::date::Date &date, std::ostream &output) const noexcept
Definition: hour12Formatter.cpp:60
size_t getSize() const noexcept
Definition: hour12Formatter.cpp:74
AnCH framework base namespace.
Definition: base64.hpp:28
virtual ~Hour12Formatter()
Definition: hour12Formatter.cpp:49
Definition: iDatePartFormatter.hpp:38
const std::string & getPattern() const noexcept
Definition: hour12Formatter.cpp:107
static const std::string PATTERN
Definition: hour12Formatter.hpp:37
Definition: date.hpp:47
static IDatePartFormatter * getInstance()
Definition: hour12Formatter.cpp:117
bool setValue(anch::date::Date &date, const std::string &value) const noexcept
Definition: hour12Formatter.cpp:85