087882c26e
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
30 lines
725 B
C++
30 lines
725 B
C++
/*
|
|
* Copyright 2007, Haiku, Inc. All Rights Reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _FLATTENABLE_H
|
|
#define _FLATTENABLE_H
|
|
|
|
|
|
#include <SupportDefs.h>
|
|
|
|
|
|
class BFlattenable {
|
|
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 ~BFlattenable();
|
|
|
|
private:
|
|
void _ReservedFlattenable1();
|
|
virtual void _ReservedFlattenable2();
|
|
virtual void _ReservedFlattenable3();
|
|
};
|
|
|
|
#endif // _FLATTENABLE_H
|