blob: adbb721f35181c710e74311e78eb58a0a83b25cf [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
Dan Sinclairaa403d32016-03-15 14:57:22 -04007#ifndef CORE_FPDFAPI_FPDF_PARSER_CPDF_BOOLEAN_H_
8#define CORE_FPDFAPI_FPDF_PARSER_CPDF_BOOLEAN_H_
Tom Sepez5fc239a2016-03-10 14:10:38 -08009
Dan Sinclairaa403d32016-03-15 14:57:22 -040010#include "core/fpdfapi/fpdf_parser/include/cpdf_object.h"
Dan Sinclaira8a28e02016-03-23 15:41:39 -040011#include "core/fxcrt/include/fx_string.h"
12#include "core/fxcrt/include/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;
21 CPDF_Object* Clone(FX_BOOL bDirect = FALSE) const override;
22 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
Dan Sinclairaa403d32016-03-15 14:57:22 -040035#endif // CORE_FPDFAPI_FPDF_PARSER_CPDF_BOOLEAN_H_