git-svn-id: https://profuse.googlecode.com/svn/branches/v2@190 aa027e90-d47c-11dd-86d7-074df07e0730
This commit is contained in:
parent
77d7021e90
commit
21906f7b9b
|
@ -1,17 +1,21 @@
|
||||||
|
|
||||||
|
#include <algorithm>
|
||||||
|
#include <cstring>
|
||||||
|
#include <cctype>
|
||||||
|
#include <memory>
|
||||||
|
|
||||||
#include <Pascal/File.h>
|
#include <Pascal/File.h>
|
||||||
|
|
||||||
#include <ProfUSE/auto.h>
|
#include <ProfUSE/auto.h>
|
||||||
#include <ProFUSE/Exception.h>
|
#include <ProFUSE/Exception.h>
|
||||||
|
|
||||||
#include <Endian/Endian.h>
|
#include <Endian/Endian.h>
|
||||||
|
#include <Endian/IOBuffer.h>
|
||||||
|
|
||||||
#include <Device/BlockDevice.h>
|
#include <Device/BlockDevice.h>
|
||||||
#include <Device/BlockCache.h>
|
#include <Device/BlockCache.h>
|
||||||
|
|
||||||
#include <algorithm>
|
|
||||||
#include <cstring>
|
|
||||||
#include <cctype>
|
|
||||||
#include <memory>
|
|
||||||
|
|
||||||
using namespace LittleEndian;
|
using namespace LittleEndian;
|
||||||
using namespace Pascal;
|
using namespace Pascal;
|
||||||
|
@ -197,7 +201,7 @@ int FileEntry::textRead(uint8_t *buffer, unsigned size, unsigned offset)
|
||||||
unsigned l;
|
unsigned l;
|
||||||
unsigned count = 0;
|
unsigned count = 0;
|
||||||
|
|
||||||
auto_array<uint8_t> tmp;
|
ProFUSE::auto_array<uint8_t> tmp;
|
||||||
unsigned tmpSize = 0;
|
unsigned tmpSize = 0;
|
||||||
|
|
||||||
if (!_pageSize) textInit();
|
if (!_pageSize) textInit();
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
CC = g++
|
||||||
|
CPPFLAGS += -g -Wall -I../
|
||||||
|
|
||||||
|
|
||||||
|
all : Date.o Entry.o FileEntry.o VolumeEntry.o
|
||||||
|
|
||||||
|
Date.o : Date.cpp Date.h
|
||||||
|
|
||||||
|
Entry.o : Entry.cpp File.h
|
||||||
|
|
||||||
|
FileEntry.o : FileEntry.cpp File.h Date.h
|
||||||
|
|
||||||
|
VolumeEntry.o : VolumeEntry.cpp File.h Date.h
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include <Pascal/File.h>
|
#include <Pascal/File.h>
|
||||||
|
|
||||||
#include <ProfUSE/auto.h>
|
#include <ProFUSE/auto.h>
|
||||||
#include <ProFUSE/Exception.h>
|
#include <ProFUSE/Exception.h>
|
||||||
|
|
||||||
#include <Endian/Endian.h>
|
#include <Endian/Endian.h>
|
||||||
|
@ -12,6 +12,9 @@
|
||||||
#pragma mark -
|
#pragma mark -
|
||||||
#pragma mark VolumeEntry
|
#pragma mark VolumeEntry
|
||||||
|
|
||||||
|
using namespace LittleEndian;
|
||||||
|
using namespace Pascal;
|
||||||
|
|
||||||
unsigned VolumeEntry::ValidName(const char *cp)
|
unsigned VolumeEntry::ValidName(const char *cp)
|
||||||
{
|
{
|
||||||
// 7 chars max. Legal values: ascii, printable,
|
// 7 chars max. Legal values: ascii, printable,
|
||||||
|
@ -86,7 +89,7 @@ VolumeEntry::VolumeEntry(const char *name, Device::BlockDevice *device)
|
||||||
|
|
||||||
VolumeEntry::VolumeEntry(Device::BlockDevice *device)
|
VolumeEntry::VolumeEntry(Device::BlockDevice *device)
|
||||||
{
|
{
|
||||||
auto_array<uint8_t> buffer(new uint8_t[512]);
|
ProFUSE::auto_array<uint8_t> buffer(new uint8_t[512]);
|
||||||
unsigned blockCount;
|
unsigned blockCount;
|
||||||
|
|
||||||
// read the header block, then load up all the header
|
// read the header block, then load up all the header
|
||||||
|
|
Loading…
Reference in New Issue