next up previous contents
Next: 2.4.6 Resource Allocators Up: 2.4.5 Architecture awareness support Previous: 2.4.5 Architecture awareness support

2.4.5.1 Navigation C++ source files

Navigation support code is contained in klib/nav.h and klib/nav.C.

<nav.h*>=
<Read the literate code instead warning. >
#ifndef __OFF_NAV_H
#define __OFF_NAV_H 1

<Off resource navigator dependencies. >

<Off attribute type ids. >
<Off attributes. >
<Off attribute data type. >

#ifdef __KERNEL__
<Off resource navigator. >
<Off resource inspector. >
#endif // __KERNEL__
<Off resource navigator for users. >
<Off resource inspector for users. >

<Off resource navigator late dependencies. >

#endif // __OFF_NAV_H

<nav.C*>=
<Read the literate code instead warning. >

#include <klib/nav.h>           // Exported interface.

<off_Inspector::nameof implementation. >
<off_Inspector::kindof implementation. >
<off_Inspector::length implementation. >
<off_Inspector::get_bool_attr implementation. >
<off_Inspector::get_nat_attr implementation. >
<off_Inspector::get_str_attr implementation. >
<off_Inspector::get_id_attr implementation. >
<off_Inspector::lookup_by_name implementation. >
<Accessors by name of off_Inspector implementation. >

\subsubsection{Naming the source code}

Off++ knows what is the URL for the source code of every resource it contains. As we will see, each node has a base URL and each resource has to define its relative URL with respect to that base. These relative URLs are kept in klib/url.h.

<url.h*>=
<Read the literate code instead warning. >
#ifndef __OFF_URL_H
#define __OFF_URL_H 1
<Off source code urls. >
#endif // __OFF_URL_H

%% --------------------------------------------------------------


Francisco J. Ballesteros
1998-05-25