Kiwi Engine
VM for interpreter
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Data Structures | Functions
KEPath.h File Reference

Define KEPath class. More...

#include <Coconut/Coconut.h>
#include "KEObject.h"
#include "KEForwarders.h"

Go to the source code of this file.

Data Structures

struct  KEPath
 

Functions

struct KEPathKEAllocatePath (struct KELineInfo *linfo, struct CNResource *resource)
 Alloxate KEPath object. More...
 
CNBoolean KEAddIdentifiersToPathWithString (struct KEPath *dst, struct CNString *pathstr)
 Add multiple identities by the string which contains identifiers and commas. More...
 
struct KEPathKEAllocateTailPathInPath (struct KEPath *src)
 Allocate path by source path without 1st item. More...
 
struct CNString * KEPathToString (const struct KEPath *path, struct CNResource *resource)
 Encode path to string. More...
 
void KEDumpPath (struct CNText *outbuf, const struct KEPath *src)
 Dump context of the path. More...
 
void KEPrintPath (FILE *outfp, const struct KEPath *src)
 Print context of the path. More...
 

Detailed Description

Define KEPath class.

Copyright
Copyright (C) 2013 Steel Wheels Project

Function Documentation

CNBoolean KEAddIdentifiersToPathWithString ( struct KEPath dst,
struct CNString *  pathstr 
)

Add multiple identities by the string which contains identifiers and commas.

Return values
CNTrueSuccessed
CNFalseFailed because the source string is not correct
Parameters
dstDestination path
pathstrString which contains identifiers and commas
struct KEPath* KEAllocatePath ( struct KELineInfo linfo,
struct CNResource *  resource 
)

Alloxate KEPath object.

Returns
Allocated object
Parameters
linfoLine information of the path
resourceResource to allocate the object
struct KEPath* KEAllocateTailPathInPath ( struct KEPath src)

Allocate path by source path without 1st item.

Returns
Allocated path
Parameters
srcSource path
Warning
The source path MUST HAVE 2 or more identifiers
void KEDumpPath ( struct CNText *  outbuf,
const struct KEPath src 
)

Dump context of the path.

Parameters
outbufOutput buffer
srcSource path
struct CNString* KEPathToString ( const struct KEPath path,
struct CNResource *  resource 
)

Encode path to string.

Returns
Encoded string
Parameters
pathSource path
resourceResource to allocate the string
void KEPrintPath ( FILE *  outfp,
const struct KEPath src 
)

Print context of the path.

Parameters
outfpOutput file stream
srcSource path