#include "gobj/path.h"
#include "gobj/stream.h"
Compounds | |
| struct | gj_Pathelem_struct |
Typedefs | |
| typedef struct gj_Pathelem_struct | gj_Pathelem |
| Path element structure. | |
Functions | |
| Gj_Path* | Gj_path_new () |
| Create a new path structure. More... | |
| Gj_Path* | Gj_path_create (Gj_Ctx* ctx, Gj_Stream* stream) |
| Create a path structure from a stream. More... | |
| Gj_Path* | Gj_path_duplicate (Gj_Path* path) |
| Create a new path as a duplicate of an existing one. | |
| void | Gj_path_delete (Gj_Path* ptr) |
| Destroy a path structure created via Gj_path_new(). | |
| void | Gj_path_init (Gj_Path* path) |
| Initialize a path structure. | |
| void | Gj_path_finalize (Gj_Path* path) |
| Finalize a path structure. | |
| int | Gj_path_read (Gj_Ctx* ctx, Gj_Path* path, Gj_Stream* stream) |
| Read a path form a stream. More... | |
| int | Gj_path_write (Gj_Ctx* ctx, Gj_Path* path, Gj_Stream* stream) |
| Write a path to a stream. More... | |
| int | Gj_path_getCount (Gj_Path* path) |
| Get the element count of a path. | |
| void | gj_path_addElem (Gj_Path* path, gj_Pathelem* elem) |
| Add a path element to the end of the path list. More... | |
| void | Gj_path_addString (Gj_Path* path, char* str) |
| Add a string path element. More... | |
| void | Gj_path_addId (Gj_Path* path, Gj_Id* id) |
| Add an id path element. | |
| void | Gj_path_addNum (Gj_Path* path, int num) |
| Add a numerical path element. | |
| Gj_PathType | Gj_path_nextType (Gj_Path* path, void** ptr) |
| Return the type of the next element of the walkthrough. More... | |
| char* | Gj_path_nextAsString (Gj_Path* path, void** ptr) |
| Return the next element of a walkthrough as a string. More... | |
| Gj_Id* | Gj_path_nextAsId (Gj_Path* path, void** ptr) |
| Return the next element of a walkthrough as an id. More... | |
| int* | Gj_path_nextAsNum (Gj_Path* path, void** ptr) |
| Return the next element of a walkthrough as a pointer to a number. More... | |
| char* | Gj_path2str (Gj_Path* path) |
| Convert a path structure into a string allocated via Gj_alloc(). | |
|
|
Create a new path structure.
Calls to |
|
|
Create a path structure from a stream.
|
|
|
Read a path form a stream.
|
|
|
Write a path to a stream.
|
|
|
Add a path element to the end of the path list.
For internal use only. |
|
|
Add a string path element. The string is DUPLICATED. |
|
|
Return the type of the next element of the walkthrough.
If |
|
|
Return the next element of a walkthrough as a string.
If |
|
|
Return the next element of a walkthrough as an id.
If |
|
|
Return the next element of a walkthrough as a pointer to a number.
If |
1.2.1 written by Dimitri van Heesch,
© 1997-2000