* Rewrote headers as necessary; only Errors.h and Debug.h still originate from a Be header now;
feel free to change that ;-) * Cleaned up existing headers. * Coding style guide update to BBufferIO (renamed m_* members to f*). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19972 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,36 +1,29 @@
|
||||
// Modified BeOS header. Just here to be able to compile and test BPath.
|
||||
// To be replaced by the OpenBeOS version to be provided by the IK Team.
|
||||
/*
|
||||
* Copyright 2007, Haiku, Inc. All Rights Reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef _FLATTENABLE_H
|
||||
#define _FLATTENABLE_H
|
||||
|
||||
#ifndef __sk_flattenable_h__
|
||||
#define __sk_flattenable_h__
|
||||
|
||||
#include <SupportDefs.h>
|
||||
|
||||
/*-------------------------------------------------------------*/
|
||||
/*----- BFlattenable class ------------------------------------*/
|
||||
|
||||
class BFlattenable {
|
||||
public:
|
||||
public:
|
||||
virtual bool IsFixedSize() const = 0;
|
||||
virtual type_code TypeCode() const = 0;
|
||||
virtual ssize_t FlattenedSize() const = 0;
|
||||
virtual status_t Flatten(void* buffer, ssize_t size) const = 0;
|
||||
virtual bool AllowsTypeCode(type_code code) const;
|
||||
virtual status_t Unflatten(type_code code, const void* buffer, ssize_t size) = 0;
|
||||
|
||||
virtual bool IsFixedSize() const = 0;
|
||||
virtual type_code TypeCode() const = 0;
|
||||
virtual ssize_t FlattenedSize() const = 0;
|
||||
virtual status_t Flatten(void *buffer, ssize_t size) const = 0;
|
||||
virtual bool AllowsTypeCode(type_code code) const;
|
||||
virtual status_t Unflatten(type_code c, const void *buf, ssize_t size) = 0;
|
||||
virtual ~BFlattenable();
|
||||
|
||||
virtual ~BFlattenable(); // was a reserved virtual in R4.0
|
||||
|
||||
/*----- Private or reserved ---------------*/
|
||||
|
||||
private:
|
||||
void _ReservedFlattenable1();
|
||||
virtual void _ReservedFlattenable2();
|
||||
virtual void _ReservedFlattenable3();
|
||||
private:
|
||||
void _ReservedFlattenable1();
|
||||
virtual void _ReservedFlattenable2();
|
||||
virtual void _ReservedFlattenable3();
|
||||
};
|
||||
|
||||
/*-------------------------------------------------------------*/
|
||||
/*-------------------------------------------------------------*/
|
||||
|
||||
#endif // __sk_flattenable_h__
|
||||
|
||||
#endif // _FLATTENABLE_H
|
||||
|
||||
Reference in New Issue
Block a user