1
/* $Header: d:/cvsroot/tads/tads3/vmres.h,v 1.2 1999/05/17 02:52:30 MJRoberts Exp $ */
4
* Copyright (c) 1999, 2002 Michael J. Roberts. All Rights Reserved.
6
* Please see the accompanying license file, LICENSE.TXT, for information
7
* on using and copying this software.
11
vmres.h - resource object implementation
13
A resource is a named binary byte stream stored within the image
14
file. To the VM, resources are opaque; the VM merely maintains the
15
resource name table, and provides access to the byte stream to the
20
04/03/99 MJRoberts - Creation
31
friend class CVmImageLoader;
34
CVmResource(long seek_pos, uint32 len, size_t name_len);
37
/* get the seek position */
38
long get_seek_pos() const { return seek_pos_; }
40
/* get the length of the byte stream */
41
uint32 get_len() const { return len_; }
44
const char *get_name() const { return name_; }
46
/* get/set next resource in list */
47
CVmResource *get_next() const { return nxt_; }
48
void set_next(CVmResource *nxt) { nxt_ = nxt; }
51
/* get my name buffer */
52
char *get_name_buf() const { return name_; }
54
/* seek position in image file of my binary data */
57
/* length in bytes of my binary data stream */
63
/* next resource in list */