blob: 89ed17d7437b087b370bc93e439e0e4d8aa42d4e [file] [log] [blame]
Tom Sepez5fc239a2016-03-10 14:10:38 -08001// Copyright 2016 PDFium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
dsinclair488b7ad2016-10-04 11:55:50 -07007#ifndef CORE_FPDFAPI_PARSER_CPDF_BOOLEAN_H_
8#define CORE_FPDFAPI_PARSER_CPDF_BOOLEAN_H_
Tom Sepez5fc239a2016-03-10 14:10:38 -08009
dsinclair488b7ad2016-10-04 11:55:50 -070010#include "core/fpdfapi/parser/cpdf_object.h"
dsinclaira52ab742016-09-29 13:59:29 -070011#include "core/fxcrt/fx_string.h"
12#include "core/fxcrt/fx_system.h"
Tom Sepez5fc239a2016-03-10 14:10:38 -080013
14class CPDF_Boolean : public CPDF_Object {
15 public:
16 CPDF_Boolean();
thestigded36342016-05-23 17:54:02 -070017 explicit CPDF_Boolean(bool value);
Tom Sepez5fc239a2016-03-10 14:10:38 -080018
19 // CPDF_Object.
20 Type GetType() const override;
weilia470b5e2016-08-23 22:08:37 -070021 CPDF_Object* Clone() const override;
Tom Sepez5fc239a2016-03-10 14:10:38 -080022 CFX_ByteString GetString() const override;
23 int GetInteger() const override;
24 void SetString(const CFX_ByteString& str) override;
25 bool IsBoolean() const override;
26 CPDF_Boolean* AsBoolean() override;
27 const CPDF_Boolean* AsBoolean() const override;
28
29 protected:
30 ~CPDF_Boolean() override;
31
thestigded36342016-05-23 17:54:02 -070032 bool m_bValue;
Tom Sepez5fc239a2016-03-10 14:10:38 -080033};
34
dsinclair488b7ad2016-10-04 11:55:50 -070035#endif // CORE_FPDFAPI_PARSER_CPDF_BOOLEAN_H_