Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

kernel/strings.h File Reference

Kernel - Referenced strings. More...

Go to the source code of this file.

Data Structures

struct  string_entry
 Structure for referenced string. More...


Defines

#define DEBUG_ARGS   , const char* file, int line, const char* fce
#define DEBUG_REF_STRING_ARGS
#define NAMES_STRINGS
 Those strings are used as constants.


Typedefs

typedef string_entrystring
 Structure for referenced string.


Functions

string string_ref (string str DEBUG_REF_STRING_ARGS)
 String handling functins.

string string_unref (string str DEBUG_REF_STRING_ARGS)
string string_lookup (const char *str DEBUG_REF_STRING_ARGS)
 Lookup for given string and create it if not exists.

string string_lookup_ref (const char *str DEBUG_REF_STRING_ARGS)
 Lookup for given string and create it if not exists.

string string_find (const char *str)
 Lookup for given string and return NULL if not exists.

void string_init (void)
 Initializating and cleanup functions.

void string_finish (void)
void string_cleanup (void)
 Cleanup the dead list.


Variables

string NAMES_STRINGS
string string_prop_type []
string string_go_type []
 Array of names of graphic objects indexed by type.

string string_obj_type []
 Array of names of graphic objects indexed by type.

string string_quantity_type []
 Array of names of graphic objects indexed by type.

string string_conic_type []
 Array of names of graphic objects indexed by type.

string string_stroke_cap_type []
 Array of names of graphic objects indexed by type.

string string_stroke_join_type []
 Array of names of graphic objects indexed by type.

string string_stroke_style_type []
 Array of names of graphic objects indexed by type.

string string_alignment_x_type []
 Array of names of graphic objects indexed by type.

string string_alignment_y_type []
 Array of names of graphic objects indexed by type.

string string_arrow_front_type []
 Array of names of graphic objects indexed by type.

string string_arrow_back_type []
 Array of names of graphic objects indexed by type.

string string_arrow_align_type []
 Array of names of graphic objects indexed by type.


Detailed Description

Kernel - Referenced strings.

Copyright (c) 2004-2005 The VRR Team <vrr@ucw.cz> This program is distributed under GNU General Public License, see COPYING.


Define Documentation

#define NAMES_STRINGS
 

Value:

string_name, string_noname, \
        string_filename, string_file_unsaved, \
        string_coordinate_x, string_coordinate_y, \
        string_invisible, string_fill_color, string_stroke_color, \
        string_stroke_width, string_stroke_join, string_stroke_cap, string_stroke_style, \
        string_text, string_font, string_font_size, \
        string_rpos_x, string_rpos_y, string_apos_x, string_apos_y, \
        string_alignment_x, string_alignment_y, \
        string_tex_header, string_tex_footer, string_tex_header_default, string_tex_footer_default, \
        string_transform, \
        string_coords, string_id, string_conic, string_start, string_dif, string_poly, \
        string_max_history_volume, string_max_history_count, \
        string_max_cache_memory, string_max_cache_count, string_min_cache_count
Those strings are used as constants.


Function Documentation

void string_cleanup void   ) 
 

Cleanup the dead list.

Function is called in the end of transaction.

string string_lookup const char *str  DEBUG_REF_STRING_ARGS  ) 
 

Lookup for given string and create it if not exists.

No new reference is increased.

string string_lookup_ref const char *str  DEBUG_REF_STRING_ARGS  ) 
 

Lookup for given string and create it if not exists.

Increase one new reference.

string string_ref string str  DEBUG_REF_STRING_ARGS  ) 
 

String handling functins.

Macro DEBUG_REF_STRING_ARGS is used for debugging. You can ignore it.


Generated on Tue Dec 9 16:30:09 2008 for Vrr by doxygen 1.3.5