1*383050e5SDarkWyrm //------------------------------------------------------------------------------
2*383050e5SDarkWyrm // Copyright (c) 2001-2005, Haiku, Inc.
3*383050e5SDarkWyrm //
4*383050e5SDarkWyrm // Permission is hereby granted, free of charge, to any person obtaining a
5*383050e5SDarkWyrm // copy of this software and associated documentation files (the "Software"),
6*383050e5SDarkWyrm // to deal in the Software without restriction, including without limitation
7*383050e5SDarkWyrm // the rights to use, copy, modify, merge, publish, distribute, sublicense,
8*383050e5SDarkWyrm // and/or sell copies of the Software, and to permit persons to whom the
9*383050e5SDarkWyrm // Software is furnished to do so, subject to the following conditions:
10*383050e5SDarkWyrm //
11*383050e5SDarkWyrm // The above copyright notice and this permission notice shall be included in
12*383050e5SDarkWyrm // all copies or substantial portions of the Software.
13*383050e5SDarkWyrm //
14*383050e5SDarkWyrm // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15*383050e5SDarkWyrm // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16*383050e5SDarkWyrm // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17*383050e5SDarkWyrm // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18*383050e5SDarkWyrm // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19*383050e5SDarkWyrm // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20*383050e5SDarkWyrm // DEALINGS IN THE SOFTWARE.
21*383050e5SDarkWyrm //
22*383050e5SDarkWyrm // File Name: Flattenable.cpp
23*383050e5SDarkWyrm // Author: unknown
24*383050e5SDarkWyrm // Description: Provides functionality for subclasses to convert to
25*383050e5SDarkWyrm // a run of bytes
26*383050e5SDarkWyrm //------------------------------------------------------------------------------
2752a38012Sejakowatz #include <stdio.h>
2852a38012Sejakowatz
2952a38012Sejakowatz #include <Flattenable.h>
3052a38012Sejakowatz
3152a38012Sejakowatz // AllowsTypeCode
3252a38012Sejakowatz bool
AllowsTypeCode(type_code code) const3352a38012Sejakowatz BFlattenable::AllowsTypeCode(type_code code) const
3452a38012Sejakowatz {
3552a38012Sejakowatz return (TypeCode() == code);
3652a38012Sejakowatz }
3752a38012Sejakowatz
3852a38012Sejakowatz // destructor
~BFlattenable()3952a38012Sejakowatz BFlattenable::~BFlattenable()
4052a38012Sejakowatz {
4152a38012Sejakowatz }
4252a38012Sejakowatz
4352a38012Sejakowatz
_ReservedFlattenable1()4452a38012Sejakowatz void BFlattenable::_ReservedFlattenable1() {}
_ReservedFlattenable2()4552a38012Sejakowatz void BFlattenable::_ReservedFlattenable2() {}
_ReservedFlattenable3()4652a38012Sejakowatz void BFlattenable::_ReservedFlattenable3() {}
47