#include <gobjconfig.h>
#include <gobj/types.h>
#include <gobj/id.h>
Go to the source code of this file.
Compounds | |
struct | Gj_Path_struct |
Typedefs | |
typedef struct Gj_Path_struct | Gj_Path |
Path structure typedef. | |
typedef enum Gj_PathType_enum | Gj_PathType |
Path element type enum. | |
Enumerations | |
enum | Gj_PathType_enum { GJ_PATHTYPE_NONE = 0, GJ_PATHTYPE_STRING, GJ_PATHTYPE_ID, GJ_PATHTYPE_NUM } |
Path element type enum. | |
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_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 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 |