aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--php/Doxyfile1514
-rw-r--r--php/phpgats.php231
2 files changed, 1740 insertions, 5 deletions
diff --git a/php/Doxyfile b/php/Doxyfile
new file mode 100644
index 0000000..dcd0c01
--- /dev/null
+++ b/php/Doxyfile
@@ -0,0 +1,1514 @@
1# Doxyfile 1.5.9
2
3# This file describes the settings to be used by the documentation system
4# doxygen (www.doxygen.org) for a project
5#
6# All text after a hash (#) is considered a comment and will be ignored
7# The format is:
8# TAG = value [value, ...]
9# For lists items can also be appended using:
10# TAG += value [value, ...]
11# Values that contain spaces should be placed between quotes (" ")
12
13#---------------------------------------------------------------------------
14# Project related configuration options
15#---------------------------------------------------------------------------
16
17# This tag specifies the encoding used for all characters in the config file
18# that follow. The default is UTF-8 which is also the encoding used for all
19# text before the first occurrence of this tag. Doxygen uses libiconv (or the
20# iconv built into libc) for the transcoding. See
21# http://www.gnu.org/software/libiconv for the list of possible encodings.
22
23DOXYFILE_ENCODING = UTF-8
24
25# The PROJECT_NAME tag is a single word (or a sequence of words surrounded
26# by quotes) that should identify the project.
27
28PROJECT_NAME =
29
30# The PROJECT_NUMBER tag can be used to enter a project or revision number.
31# This could be handy for archiving the generated documentation or
32# if some version control system is used.
33
34PROJECT_NUMBER =
35
36# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
37# base path where the generated documentation will be put.
38# If a relative path is entered, it will be relative to the location
39# where doxygen was started. If left blank the current directory will be used.
40
41OUTPUT_DIRECTORY =
42
43# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create
44# 4096 sub-directories (in 2 levels) under the output directory of each output
45# format and will distribute the generated files over these directories.
46# Enabling this option can be useful when feeding doxygen a huge amount of
47# source files, where putting all generated files in the same directory would
48# otherwise cause performance problems for the file system.
49
50CREATE_SUBDIRS = NO
51
52# The OUTPUT_LANGUAGE tag is used to specify the language in which all
53# documentation generated by doxygen is written. Doxygen will use this
54# information to generate all constant output in the proper language.
55# The default language is English, other supported languages are:
56# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional,
57# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German,
58# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English
59# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian,
60# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrilic, Slovak,
61# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese.
62
63OUTPUT_LANGUAGE = English
64
65# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will
66# include brief member descriptions after the members that are listed in
67# the file and class documentation (similar to JavaDoc).
68# Set to NO to disable this.
69
70BRIEF_MEMBER_DESC = YES
71
72# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend
73# the brief description of a member or function before the detailed description.
74# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the
75# brief descriptions will be completely suppressed.
76
77REPEAT_BRIEF = YES
78
79# This tag implements a quasi-intelligent brief description abbreviator
80# that is used to form the text in various listings. Each string
81# in this list, if found as the leading text of the brief description, will be
82# stripped from the text and the result after processing the whole list, is
83# used as the annotated text. Otherwise, the brief description is used as-is.
84# If left blank, the following values are used ("$name" is automatically
85# replaced with the name of the entity): "The $name class" "The $name widget"
86# "The $name file" "is" "provides" "specifies" "contains"
87# "represents" "a" "an" "the"
88
89ABBREVIATE_BRIEF =
90
91# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then
92# Doxygen will generate a detailed section even if there is only a brief
93# description.
94
95ALWAYS_DETAILED_SEC = NO
96
97# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all
98# inherited members of a class in the documentation of that class as if those
99# members were ordinary class members. Constructors, destructors and assignment
100# operators of the base classes will not be shown.
101
102INLINE_INHERITED_MEMB = NO
103
104# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full
105# path before files name in the file list and in the header files. If set
106# to NO the shortest path that makes the file name unique will be used.
107
108FULL_PATH_NAMES = YES
109
110# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag
111# can be used to strip a user-defined part of the path. Stripping is
112# only done if one of the specified strings matches the left-hand part of
113# the path. The tag can be used to show relative paths in the file list.
114# If left blank the directory from which doxygen is run is used as the
115# path to strip.
116
117STRIP_FROM_PATH =
118
119# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of
120# the path mentioned in the documentation of a class, which tells
121# the reader which header file to include in order to use a class.
122# If left blank only the name of the header file containing the class
123# definition is used. Otherwise one should specify the include paths that
124# are normally passed to the compiler using the -I flag.
125
126STRIP_FROM_INC_PATH =
127
128# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter
129# (but less readable) file names. This can be useful is your file systems
130# doesn't support long names like on DOS, Mac, or CD-ROM.
131
132SHORT_NAMES = NO
133
134# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen
135# will interpret the first line (until the first dot) of a JavaDoc-style
136# comment as the brief description. If set to NO, the JavaDoc
137# comments will behave just like regular Qt-style comments
138# (thus requiring an explicit @brief command for a brief description.)
139
140JAVADOC_AUTOBRIEF = NO
141
142# If the QT_AUTOBRIEF tag is set to YES then Doxygen will
143# interpret the first line (until the first dot) of a Qt-style
144# comment as the brief description. If set to NO, the comments
145# will behave just like regular Qt-style comments (thus requiring
146# an explicit \brief command for a brief description.)
147
148QT_AUTOBRIEF = NO
149
150# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen
151# treat a multi-line C++ special comment block (i.e. a block of //! or ///
152# comments) as a brief description. This used to be the default behaviour.
153# The new default is to treat a multi-line C++ comment block as a detailed
154# description. Set this tag to YES if you prefer the old behaviour instead.
155
156MULTILINE_CPP_IS_BRIEF = NO
157
158# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented
159# member inherits the documentation from any documented member that it
160# re-implements.
161
162INHERIT_DOCS = YES
163
164# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce
165# a new page for each member. If set to NO, the documentation of a member will
166# be part of the file/class/namespace that contains it.
167
168SEPARATE_MEMBER_PAGES = NO
169
170# The TAB_SIZE tag can be used to set the number of spaces in a tab.
171# Doxygen uses this value to replace tabs by spaces in code fragments.
172
173TAB_SIZE = 8
174
175# This tag can be used to specify a number of aliases that acts
176# as commands in the documentation. An alias has the form "name=value".
177# For example adding "sideeffect=\par Side Effects:\n" will allow you to
178# put the command \sideeffect (or @sideeffect) in the documentation, which
179# will result in a user-defined paragraph with heading "Side Effects:".
180# You can put \n's in the value part of an alias to insert newlines.
181
182ALIASES =
183
184# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C
185# sources only. Doxygen will then generate output that is more tailored for C.
186# For instance, some of the names that are used will be different. The list
187# of all members will be omitted, etc.
188
189OPTIMIZE_OUTPUT_FOR_C = NO
190
191# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java
192# sources only. Doxygen will then generate output that is more tailored for
193# Java. For instance, namespaces will be presented as packages, qualified
194# scopes will look different, etc.
195
196OPTIMIZE_OUTPUT_JAVA = NO
197
198# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran
199# sources only. Doxygen will then generate output that is more tailored for
200# Fortran.
201
202OPTIMIZE_FOR_FORTRAN = NO
203
204# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL
205# sources. Doxygen will then generate output that is tailored for
206# VHDL.
207
208OPTIMIZE_OUTPUT_VHDL = NO
209
210# Doxygen selects the parser to use depending on the extension of the files it parses.
211# With this tag you can assign which parser to use for a given extension.
212# Doxygen has a built-in mapping, but you can override or extend it using this tag.
213# The format is ext=language, where ext is a file extension, and language is one of
214# the parsers supported by doxygen: IDL, Java, Javascript, C#, C, C++, D, PHP,
215# Objective-C, Python, Fortran, VHDL, C, C++. For instance to make doxygen treat
216# .inc files as Fortran files (default is PHP), and .f files as C (default is Fortran),
217# use: inc=Fortran f=C. Note that for custom extensions you also need to set FILE_PATTERNS otherwise the files are not read by doxygen.
218
219EXTENSION_MAPPING =
220
221# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want
222# to include (a tag file for) the STL sources as input, then you should
223# set this tag to YES in order to let doxygen match functions declarations and
224# definitions whose arguments contain STL classes (e.g. func(std::string); v.s.
225# func(std::string) {}). This also make the inheritance and collaboration
226# diagrams that involve STL classes more complete and accurate.
227
228BUILTIN_STL_SUPPORT = NO
229
230# If you use Microsoft's C++/CLI language, you should set this option to YES to
231# enable parsing support.
232
233CPP_CLI_SUPPORT = NO
234
235# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only.
236# Doxygen will parse them like normal C++ but will assume all classes use public
237# instead of private inheritance when no explicit protection keyword is present.
238
239SIP_SUPPORT = NO
240
241# For Microsoft's IDL there are propget and propput attributes to indicate getter
242# and setter methods for a property. Setting this option to YES (the default)
243# will make doxygen to replace the get and set methods by a property in the
244# documentation. This will only work if the methods are indeed getting or
245# setting a simple type. If this is not the case, or you want to show the
246# methods anyway, you should set this option to NO.
247
248IDL_PROPERTY_SUPPORT = YES
249
250# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC
251# tag is set to YES, then doxygen will reuse the documentation of the first
252# member in the group (if any) for the other members of the group. By default
253# all members of a group must be documented explicitly.
254
255DISTRIBUTE_GROUP_DOC = NO
256
257# Set the SUBGROUPING tag to YES (the default) to allow class member groups of
258# the same type (for instance a group of public functions) to be put as a
259# subgroup of that type (e.g. under the Public Functions section). Set it to
260# NO to prevent subgrouping. Alternatively, this can be done per class using
261# the \nosubgrouping command.
262
263SUBGROUPING = YES
264
265# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum
266# is documented as struct, union, or enum with the name of the typedef. So
267# typedef struct TypeS {} TypeT, will appear in the documentation as a struct
268# with name TypeT. When disabled the typedef will appear as a member of a file,
269# namespace, or class. And the struct will be named TypeS. This can typically
270# be useful for C code in case the coding convention dictates that all compound
271# types are typedef'ed and only the typedef is referenced, never the tag name.
272
273TYPEDEF_HIDES_STRUCT = NO
274
275# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to
276# determine which symbols to keep in memory and which to flush to disk.
277# When the cache is full, less often used symbols will be written to disk.
278# For small to medium size projects (<1000 input files) the default value is
279# probably good enough. For larger projects a too small cache size can cause
280# doxygen to be busy swapping symbols to and from disk most of the time
281# causing a significant performance penality.
282# If the system has enough physical memory increasing the cache will improve the
283# performance by keeping more symbols in memory. Note that the value works on
284# a logarithmic scale so increasing the size by one will rougly double the
285# memory usage. The cache size is given by this formula:
286# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0,
287# corresponding to a cache size of 2^16 = 65536 symbols
288
289SYMBOL_CACHE_SIZE = 0
290
291#---------------------------------------------------------------------------
292# Build related configuration options
293#---------------------------------------------------------------------------
294
295# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in
296# documentation are documented, even if no documentation was available.
297# Private class members and static file members will be hidden unless
298# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES
299
300EXTRACT_ALL = YES
301
302# If the EXTRACT_PRIVATE tag is set to YES all private members of a class
303# will be included in the documentation.
304
305EXTRACT_PRIVATE = NO
306
307# If the EXTRACT_STATIC tag is set to YES all static members of a file
308# will be included in the documentation.
309
310EXTRACT_STATIC = NO
311
312# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs)
313# defined locally in source files will be included in the documentation.
314# If set to NO only classes defined in header files are included.
315
316EXTRACT_LOCAL_CLASSES = YES
317
318# This flag is only useful for Objective-C code. When set to YES local
319# methods, which are defined in the implementation section but not in
320# the interface are included in the documentation.
321# If set to NO (the default) only methods in the interface are included.
322
323EXTRACT_LOCAL_METHODS = NO
324
325# If this flag is set to YES, the members of anonymous namespaces will be
326# extracted and appear in the documentation as a namespace called
327# 'anonymous_namespace{file}', where file will be replaced with the base
328# name of the file that contains the anonymous namespace. By default
329# anonymous namespace are hidden.
330
331EXTRACT_ANON_NSPACES = NO
332
333# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all
334# undocumented members of documented classes, files or namespaces.
335# If set to NO (the default) these members will be included in the
336# various overviews, but no documentation section is generated.
337# This option has no effect if EXTRACT_ALL is enabled.
338
339HIDE_UNDOC_MEMBERS = NO
340
341# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all
342# undocumented classes that are normally visible in the class hierarchy.
343# If set to NO (the default) these classes will be included in the various
344# overviews. This option has no effect if EXTRACT_ALL is enabled.
345
346HIDE_UNDOC_CLASSES = NO
347
348# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all
349# friend (class|struct|union) declarations.
350# If set to NO (the default) these declarations will be included in the
351# documentation.
352
353HIDE_FRIEND_COMPOUNDS = NO
354
355# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any
356# documentation blocks found inside the body of a function.
357# If set to NO (the default) these blocks will be appended to the
358# function's detailed documentation block.
359
360HIDE_IN_BODY_DOCS = NO
361
362# The INTERNAL_DOCS tag determines if documentation
363# that is typed after a \internal command is included. If the tag is set
364# to NO (the default) then the documentation will be excluded.
365# Set it to YES to include the internal documentation.
366
367INTERNAL_DOCS = NO
368
369# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate
370# file names in lower-case letters. If set to YES upper-case letters are also
371# allowed. This is useful if you have classes or files whose names only differ
372# in case and if your file system supports case sensitive file names. Windows
373# and Mac users are advised to set this option to NO.
374
375CASE_SENSE_NAMES = YES
376
377# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen
378# will show members with their full class and namespace scopes in the
379# documentation. If set to YES the scope will be hidden.
380
381HIDE_SCOPE_NAMES = NO
382
383# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen
384# will put a list of the files that are included by a file in the documentation
385# of that file.
386
387SHOW_INCLUDE_FILES = YES
388
389# If the INLINE_INFO tag is set to YES (the default) then a tag [inline]
390# is inserted in the documentation for inline members.
391
392INLINE_INFO = YES
393
394# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen
395# will sort the (detailed) documentation of file and class members
396# alphabetically by member name. If set to NO the members will appear in
397# declaration order.
398
399SORT_MEMBER_DOCS = YES
400
401# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the
402# brief documentation of file, namespace and class members alphabetically
403# by member name. If set to NO (the default) the members will appear in
404# declaration order.
405
406SORT_BRIEF_DOCS = NO
407
408# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the
409# hierarchy of group names into alphabetical order. If set to NO (the default)
410# the group names will appear in their defined order.
411
412SORT_GROUP_NAMES = NO
413
414# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be
415# sorted by fully-qualified names, including namespaces. If set to
416# NO (the default), the class list will be sorted only by class name,
417# not including the namespace part.
418# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES.
419# Note: This option applies only to the class list, not to the
420# alphabetical list.
421
422SORT_BY_SCOPE_NAME = NO
423
424# The GENERATE_TODOLIST tag can be used to enable (YES) or
425# disable (NO) the todo list. This list is created by putting \todo
426# commands in the documentation.
427
428GENERATE_TODOLIST = YES
429
430# The GENERATE_TESTLIST tag can be used to enable (YES) or
431# disable (NO) the test list. This list is created by putting \test
432# commands in the documentation.
433
434GENERATE_TESTLIST = YES
435
436# The GENERATE_BUGLIST tag can be used to enable (YES) or
437# disable (NO) the bug list. This list is created by putting \bug
438# commands in the documentation.
439
440GENERATE_BUGLIST = YES
441
442# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or
443# disable (NO) the deprecated list. This list is created by putting
444# \deprecated commands in the documentation.
445
446GENERATE_DEPRECATEDLIST= YES
447
448# The ENABLED_SECTIONS tag can be used to enable conditional
449# documentation sections, marked by \if sectionname ... \endif.
450
451ENABLED_SECTIONS =
452
453# The MAX_INITIALIZER_LINES tag determines the maximum number of lines
454# the initial value of a variable or define consists of for it to appear in
455# the documentation. If the initializer consists of more lines than specified
456# here it will be hidden. Use a value of 0 to hide initializers completely.
457# The appearance of the initializer of individual variables and defines in the
458# documentation can be controlled using \showinitializer or \hideinitializer
459# command in the documentation regardless of this setting.
460
461MAX_INITIALIZER_LINES = 30
462
463# Set the SHOW_USED_FILES tag to NO to disable the list of files generated
464# at the bottom of the documentation of classes and structs. If set to YES the
465# list will mention the files that were used to generate the documentation.
466
467SHOW_USED_FILES = YES
468
469# If the sources in your project are distributed over multiple directories
470# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy
471# in the documentation. The default is NO.
472
473SHOW_DIRECTORIES = NO
474
475# Set the SHOW_FILES tag to NO to disable the generation of the Files page.
476# This will remove the Files entry from the Quick Index and from the
477# Folder Tree View (if specified). The default is YES.
478
479SHOW_FILES = YES
480
481# Set the SHOW_NAMESPACES tag to NO to disable the generation of the
482# Namespaces page.
483# This will remove the Namespaces entry from the Quick Index
484# and from the Folder Tree View (if specified). The default is YES.
485
486SHOW_NAMESPACES = YES
487
488# The FILE_VERSION_FILTER tag can be used to specify a program or script that
489# doxygen should invoke to get the current version for each file (typically from
490# the version control system). Doxygen will invoke the program by executing (via
491# popen()) the command <command> <input-file>, where <command> is the value of
492# the FILE_VERSION_FILTER tag, and <input-file> is the name of an input file
493# provided by doxygen. Whatever the program writes to standard output
494# is used as the file version. See the manual for examples.
495
496FILE_VERSION_FILTER =
497
498# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed by
499# doxygen. The layout file controls the global structure of the generated output files
500# in an output format independent way. The create the layout file that represents
501# doxygen's defaults, run doxygen with the -l option. You can optionally specify a
502# file name after the option, if omitted DoxygenLayout.xml will be used as the name
503# of the layout file.
504
505LAYOUT_FILE =
506
507#---------------------------------------------------------------------------
508# configuration options related to warning and progress messages
509#---------------------------------------------------------------------------
510
511# The QUIET tag can be used to turn on/off the messages that are generated
512# by doxygen. Possible values are YES and NO. If left blank NO is used.
513
514QUIET = NO
515
516# The WARNINGS tag can be used to turn on/off the warning messages that are
517# generated by doxygen. Possible values are YES and NO. If left blank
518# NO is used.
519
520WARNINGS = YES
521
522# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings
523# for undocumented members. If EXTRACT_ALL is set to YES then this flag will
524# automatically be disabled.
525
526WARN_IF_UNDOCUMENTED = YES
527
528# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for
529# potential errors in the documentation, such as not documenting some
530# parameters in a documented function, or documenting parameters that
531# don't exist or using markup commands wrongly.
532
533WARN_IF_DOC_ERROR = YES
534
535# This WARN_NO_PARAMDOC option can be abled to get warnings for
536# functions that are documented, but have no documentation for their parameters
537# or return value. If set to NO (the default) doxygen will only warn about
538# wrong or incomplete parameter documentation, but not about the absence of
539# documentation.
540
541WARN_NO_PARAMDOC = NO
542
543# The WARN_FORMAT tag determines the format of the warning messages that
544# doxygen can produce. The string should contain the $file, $line, and $text
545# tags, which will be replaced by the file and line number from which the
546# warning originated and the warning text. Optionally the format may contain
547# $version, which will be replaced by the version of the file (if it could
548# be obtained via FILE_VERSION_FILTER)
549
550WARN_FORMAT = "$file:$line: $text"
551
552# The WARN_LOGFILE tag can be used to specify a file to which warning
553# and error messages should be written. If left blank the output is written
554# to stderr.
555
556WARN_LOGFILE =
557
558#---------------------------------------------------------------------------
559# configuration options related to the input files
560#---------------------------------------------------------------------------
561
562# The INPUT tag can be used to specify the files and/or directories that contain
563# documented source files. You may enter file names like "myfile.cpp" or
564# directories like "/usr/src/myproject". Separate the files or directories
565# with spaces.
566
567INPUT = .
568
569# This tag can be used to specify the character encoding of the source files
570# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
571# also the default input encoding. Doxygen uses libiconv (or the iconv built
572# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for
573# the list of possible encodings.
574
575INPUT_ENCODING = UTF-8
576
577# If the value of the INPUT tag contains directories, you can use the
578# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
579# and *.h) to filter out the source-files in the directories. If left
580# blank the following patterns are tested:
581# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx
582# *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py *.f90
583
584FILE_PATTERNS = *.php
585
586# The RECURSIVE tag can be used to turn specify whether or not subdirectories
587# should be searched for input files as well. Possible values are YES and NO.
588# If left blank NO is used.
589
590RECURSIVE = NO
591
592# The EXCLUDE tag can be used to specify files and/or directories that should
593# excluded from the INPUT source files. This way you can easily exclude a
594# subdirectory from a directory tree whose root is specified with the INPUT tag.
595
596EXCLUDE =
597
598# The EXCLUDE_SYMLINKS tag can be used select whether or not files or
599# directories that are symbolic links (a Unix filesystem feature) are excluded
600# from the input.
601
602EXCLUDE_SYMLINKS = NO
603
604# If the value of the INPUT tag contains directories, you can use the
605# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude
606# certain files from those directories. Note that the wildcards are matched
607# against the file with absolute path, so to exclude all test directories
608# for example use the pattern */test/*
609
610EXCLUDE_PATTERNS =
611
612# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
613# (namespaces, classes, functions, etc.) that should be excluded from the
614# output. The symbol name can be a fully qualified name, a word, or if the
615# wildcard * is used, a substring. Examples: ANamespace, AClass,
616# AClass::ANamespace, ANamespace::*Test
617
618EXCLUDE_SYMBOLS =
619
620# The EXAMPLE_PATH tag can be used to specify one or more files or
621# directories that contain example code fragments that are included (see
622# the \include command).
623
624EXAMPLE_PATH =
625
626# If the value of the EXAMPLE_PATH tag contains directories, you can use the
627# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
628# and *.h) to filter out the source-files in the directories. If left
629# blank all files are included.
630
631EXAMPLE_PATTERNS =
632
633# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be
634# searched for input files to be used with the \include or \dontinclude
635# commands irrespective of the value of the RECURSIVE tag.
636# Possible values are YES and NO. If left blank NO is used.
637
638EXAMPLE_RECURSIVE = NO
639
640# The IMAGE_PATH tag can be used to specify one or more files or
641# directories that contain image that are included in the documentation (see
642# the \image command).
643
644IMAGE_PATH =
645
646# The INPUT_FILTER tag can be used to specify a program that doxygen should
647# invoke to filter for each input file. Doxygen will invoke the filter program
648# by executing (via popen()) the command <filter> <input-file>, where <filter>
649# is the value of the INPUT_FILTER tag, and <input-file> is the name of an
650# input file. Doxygen will then use the output that the filter program writes
651# to standard output.
652# If FILTER_PATTERNS is specified, this tag will be
653# ignored.
654
655INPUT_FILTER =
656
657# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern
658# basis.
659# Doxygen will compare the file name with each pattern and apply the
660# filter if there is a match.
661# The filters are a list of the form:
662# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further
663# info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER
664# is applied to all files.
665
666FILTER_PATTERNS =
667
668# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using
669# INPUT_FILTER) will be used to filter the input files when producing source
670# files to browse (i.e. when SOURCE_BROWSER is set to YES).
671
672FILTER_SOURCE_FILES = NO
673
674#---------------------------------------------------------------------------
675# configuration options related to source browsing
676#---------------------------------------------------------------------------
677
678# If the SOURCE_BROWSER tag is set to YES then a list of source files will
679# be generated. Documented entities will be cross-referenced with these sources.
680# Note: To get rid of all source code in the generated output, make sure also
681# VERBATIM_HEADERS is set to NO.
682
683SOURCE_BROWSER = NO
684
685# Setting the INLINE_SOURCES tag to YES will include the body
686# of functions and classes directly in the documentation.
687
688INLINE_SOURCES = NO
689
690# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct
691# doxygen to hide any special comment blocks from generated source code
692# fragments. Normal C and C++ comments will always remain visible.
693
694STRIP_CODE_COMMENTS = YES
695
696# If the REFERENCED_BY_RELATION tag is set to YES
697# then for each documented function all documented
698# functions referencing it will be listed.
699
700REFERENCED_BY_RELATION = NO
701
702# If the REFERENCES_RELATION tag is set to YES
703# then for each documented function all documented entities
704# called/used by that function will be listed.
705
706REFERENCES_RELATION = NO
707
708# If the REFERENCES_LINK_SOURCE tag is set to YES (the default)
709# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from
710# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will
711# link to the source code.
712# Otherwise they will link to the documentation.
713
714REFERENCES_LINK_SOURCE = YES
715
716# If the USE_HTAGS tag is set to YES then the references to source code
717# will point to the HTML generated by the htags(1) tool instead of doxygen
718# built-in source browser. The htags tool is part of GNU's global source
719# tagging system (see http://www.gnu.org/software/global/global.html). You
720# will need version 4.8.6 or higher.
721
722USE_HTAGS = NO
723
724# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen
725# will generate a verbatim copy of the header file for each class for
726# which an include is specified. Set to NO to disable this.
727
728VERBATIM_HEADERS = YES
729
730#---------------------------------------------------------------------------
731# configuration options related to the alphabetical class index
732#---------------------------------------------------------------------------
733
734# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index
735# of all compounds will be generated. Enable this if the project
736# contains a lot of classes, structs, unions or interfaces.
737
738ALPHABETICAL_INDEX = NO
739
740# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then
741# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns
742# in which this list will be split (can be a number in the range [1..20])
743
744COLS_IN_ALPHA_INDEX = 5
745
746# In case all classes in a project start with a common prefix, all
747# classes will be put under the same header in the alphabetical index.
748# The IGNORE_PREFIX tag can be used to specify one or more prefixes that
749# should be ignored while generating the index headers.
750
751IGNORE_PREFIX =
752
753#---------------------------------------------------------------------------
754# configuration options related to the HTML output
755#---------------------------------------------------------------------------
756
757# If the GENERATE_HTML tag is set to YES (the default) Doxygen will
758# generate HTML output.
759
760GENERATE_HTML = YES
761
762# The HTML_OUTPUT tag is used to specify where the HTML docs will be put.
763# If a relative path is entered the value of OUTPUT_DIRECTORY will be
764# put in front of it. If left blank `html' will be used as the default path.
765
766HTML_OUTPUT = html
767
768# The HTML_FILE_EXTENSION tag can be used to specify the file extension for
769# each generated HTML page (for example: .htm,.php,.asp). If it is left blank
770# doxygen will generate files with .html extension.
771
772HTML_FILE_EXTENSION = .html
773
774# The HTML_HEADER tag can be used to specify a personal HTML header for
775# each generated HTML page. If it is left blank doxygen will generate a
776# standard header.
777
778HTML_HEADER =
779
780# The HTML_FOOTER tag can be used to specify a personal HTML footer for
781# each generated HTML page. If it is left blank doxygen will generate a
782# standard footer.
783
784HTML_FOOTER =
785
786# The HTML_STYLESHEET tag can be used to specify a user-defined cascading
787# style sheet that is used by each HTML page. It can be used to
788# fine-tune the look of the HTML output. If the tag is left blank doxygen
789# will generate a default style sheet. Note that doxygen will try to copy
790# the style sheet file to the HTML output directory, so don't put your own
791# stylesheet in the HTML output directory as well, or it will be erased!
792
793HTML_STYLESHEET =
794
795# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes,
796# files or namespaces will be aligned in HTML using tables. If set to
797# NO a bullet list will be used.
798
799HTML_ALIGN_MEMBERS = YES
800
801# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML
802# documentation will contain sections that can be hidden and shown after the
803# page has loaded. For this to work a browser that supports
804# JavaScript and DHTML is required (for instance Mozilla 1.0+, Firefox
805# Netscape 6.0+, Internet explorer 5.0+, Konqueror, or Safari).
806
807HTML_DYNAMIC_SECTIONS = NO
808
809# If the GENERATE_DOCSET tag is set to YES, additional index files
810# will be generated that can be used as input for Apple's Xcode 3
811# integrated development environment, introduced with OSX 10.5 (Leopard).
812# To create a documentation set, doxygen will generate a Makefile in the
813# HTML output directory. Running make will produce the docset in that
814# directory and running "make install" will install the docset in
815# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find
816# it at startup.
817# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html for more information.
818
819GENERATE_DOCSET = NO
820
821# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the
822# feed. A documentation feed provides an umbrella under which multiple
823# documentation sets from a single provider (such as a company or product suite)
824# can be grouped.
825
826DOCSET_FEEDNAME = "Doxygen generated docs"
827
828# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that
829# should uniquely identify the documentation set bundle. This should be a
830# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen
831# will append .docset to the name.
832
833DOCSET_BUNDLE_ID = org.doxygen.Project
834
835# If the GENERATE_HTMLHELP tag is set to YES, additional index files
836# will be generated that can be used as input for tools like the
837# Microsoft HTML help workshop to generate a compiled HTML help file (.chm)
838# of the generated HTML documentation.
839
840GENERATE_HTMLHELP = NO
841
842# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can
843# be used to specify the file name of the resulting .chm file. You
844# can add a path in front of the file if the result should not be
845# written to the html output directory.
846
847CHM_FILE =
848
849# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can
850# be used to specify the location (absolute path including file name) of
851# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run
852# the HTML help compiler on the generated index.hhp.
853
854HHC_LOCATION =
855
856# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag
857# controls if a separate .chi index file is generated (YES) or that
858# it should be included in the master .chm file (NO).
859
860GENERATE_CHI = NO
861
862# If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING
863# is used to encode HtmlHelp index (hhk), content (hhc) and project file
864# content.
865
866CHM_INDEX_ENCODING =
867
868# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag
869# controls whether a binary table of contents is generated (YES) or a
870# normal table of contents (NO) in the .chm file.
871
872BINARY_TOC = NO
873
874# The TOC_EXPAND flag can be set to YES to add extra items for group members
875# to the contents of the HTML help documentation and to the tree view.
876
877TOC_EXPAND = NO
878
879# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and QHP_VIRTUAL_FOLDER
880# are set, an additional index file will be generated that can be used as input for
881# Qt's qhelpgenerator to generate a Qt Compressed Help (.qch) of the generated
882# HTML documentation.
883
884GENERATE_QHP = NO
885
886# If the QHG_LOCATION tag is specified, the QCH_FILE tag can
887# be used to specify the file name of the resulting .qch file.
888# The path specified is relative to the HTML output folder.
889
890QCH_FILE =
891
892# The QHP_NAMESPACE tag specifies the namespace to use when generating
893# Qt Help Project output. For more information please see
894# http://doc.trolltech.com/qthelpproject.html#namespace
895
896QHP_NAMESPACE =
897
898# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating
899# Qt Help Project output. For more information please see
900# http://doc.trolltech.com/qthelpproject.html#virtual-folders
901
902QHP_VIRTUAL_FOLDER = doc
903
904# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to add.
905# For more information please see
906# http://doc.trolltech.com/qthelpproject.html#custom-filters
907
908QHP_CUST_FILTER_NAME =
909
910# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the custom filter to add.For more information please see
911# <a href="http://doc.trolltech.com/qthelpproject.html#custom-filters">Qt Help Project / Custom Filters</a>.
912
913QHP_CUST_FILTER_ATTRS =
914
915# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this project's
916# filter section matches.
917# <a href="http://doc.trolltech.com/qthelpproject.html#filter-attributes">Qt Help Project / Filter Attributes</a>.
918
919QHP_SECT_FILTER_ATTRS =
920
921# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can
922# be used to specify the location of Qt's qhelpgenerator.
923# If non-empty doxygen will try to run qhelpgenerator on the generated
924# .qhp file.
925
926QHG_LOCATION =
927
928# The DISABLE_INDEX tag can be used to turn on/off the condensed index at
929# top of each HTML page. The value NO (the default) enables the index and
930# the value YES disables it.
931
932DISABLE_INDEX = NO
933
934# This tag can be used to set the number of enum values (range [1..20])
935# that doxygen will group on one line in the generated HTML documentation.
936
937ENUM_VALUES_PER_LINE = 4
938
939# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index
940# structure should be generated to display hierarchical information.
941# If the tag value is set to FRAME, a side panel will be generated
942# containing a tree-like index structure (just like the one that
943# is generated for HTML Help). For this to work a browser that supports
944# JavaScript, DHTML, CSS and frames is required (for instance Mozilla 1.0+,
945# Netscape 6.0+, Internet explorer 5.0+, or Konqueror). Windows users are
946# probably better off using the HTML help feature. Other possible values
947# for this tag are: HIERARCHIES, which will generate the Groups, Directories,
948# and Class Hierarchy pages using a tree view instead of an ordered list;
949# ALL, which combines the behavior of FRAME and HIERARCHIES; and NONE, which
950# disables this behavior completely. For backwards compatibility with previous
951# releases of Doxygen, the values YES and NO are equivalent to FRAME and NONE
952# respectively.
953
954GENERATE_TREEVIEW = NONE
955
956# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be
957# used to set the initial width (in pixels) of the frame in which the tree
958# is shown.
959
960TREEVIEW_WIDTH = 250
961
962# Use this tag to change the font size of Latex formulas included
963# as images in the HTML documentation. The default is 10. Note that
964# when you change the font size after a successful doxygen run you need
965# to manually remove any form_*.png images from the HTML output directory
966# to force them to be regenerated.
967
968FORMULA_FONTSIZE = 10
969
970#---------------------------------------------------------------------------
971# configuration options related to the LaTeX output
972#---------------------------------------------------------------------------
973
974# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will
975# generate Latex output.
976
977GENERATE_LATEX = YES
978
979# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put.
980# If a relative path is entered the value of OUTPUT_DIRECTORY will be
981# put in front of it. If left blank `latex' will be used as the default path.
982
983LATEX_OUTPUT = latex
984
985# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be
986# invoked. If left blank `latex' will be used as the default command name.
987
988LATEX_CMD_NAME = latex
989
990# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to
991# generate index for LaTeX. If left blank `makeindex' will be used as the
992# default command name.
993
994MAKEINDEX_CMD_NAME = makeindex
995
996# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact
997# LaTeX documents. This may be useful for small projects and may help to
998# save some trees in general.
999
1000COMPACT_LATEX = NO
1001
1002# The PAPER_TYPE tag can be used to set the paper type that is used
1003# by the printer. Possible values are: a4, a4wide, letter, legal and
1004# executive. If left blank a4wide will be used.
1005
1006PAPER_TYPE = a4wide
1007
1008# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX
1009# packages that should be included in the LaTeX output.
1010
1011EXTRA_PACKAGES =
1012
1013# The LATEX_HEADER tag can be used to specify a personal LaTeX header for
1014# the generated latex document. The header should contain everything until
1015# the first chapter. If it is left blank doxygen will generate a
1016# standard header. Notice: only use this tag if you know what you are doing!
1017
1018LATEX_HEADER =
1019
1020# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated
1021# is prepared for conversion to pdf (using ps2pdf). The pdf file will
1022# contain links (just like the HTML output) instead of page references
1023# This makes the output suitable for online browsing using a pdf viewer.
1024
1025PDF_HYPERLINKS = YES
1026
1027# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of
1028# plain latex in the generated Makefile. Set this option to YES to get a
1029# higher quality PDF documentation.
1030
1031USE_PDFLATEX = YES
1032
1033# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode.
1034# command to the generated LaTeX files. This will instruct LaTeX to keep
1035# running if errors occur, instead of asking the user for help.
1036# This option is also used when generating formulas in HTML.
1037
1038LATEX_BATCHMODE = NO
1039
1040# If LATEX_HIDE_INDICES is set to YES then doxygen will not
1041# include the index chapters (such as File Index, Compound Index, etc.)
1042# in the output.
1043
1044LATEX_HIDE_INDICES = NO
1045
1046# If LATEX_SOURCE_CODE is set to YES then doxygen will include source code with syntax highlighting in the LaTeX output. Note that which sources are shown also depends on other settings such as SOURCE_BROWSER.
1047
1048LATEX_SOURCE_CODE = YES
1049
1050#---------------------------------------------------------------------------
1051# configuration options related to the RTF output
1052#---------------------------------------------------------------------------
1053
1054# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output
1055# The RTF output is optimized for Word 97 and may not look very pretty with
1056# other RTF readers or editors.
1057
1058GENERATE_RTF = NO
1059
1060# The RTF_OUTPUT tag is used to specify where the RTF docs will be put.
1061# If a relative path is entered the value of OUTPUT_DIRECTORY will be
1062# put in front of it. If left blank `rtf' will be used as the default path.
1063
1064RTF_OUTPUT = rtf
1065
1066# If the COMPACT_RTF tag is set to YES Doxygen generates more compact
1067# RTF documents. This may be useful for small projects and may help to
1068# save some trees in general.
1069
1070COMPACT_RTF = NO
1071
1072# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated
1073# will contain hyperlink fields. The RTF file will
1074# contain links (just like the HTML output) instead of page references.
1075# This makes the output suitable for online browsing using WORD or other
1076# programs which support those fields.
1077# Note: wordpad (write) and others do not support links.
1078
1079RTF_HYPERLINKS = NO
1080
1081# Load stylesheet definitions from file. Syntax is similar to doxygen's
1082# config file, i.e. a series of assignments. You only have to provide
1083# replacements, missing definitions are set to their default value.
1084
1085RTF_STYLESHEET_FILE =
1086
1087# Set optional variables used in the generation of an rtf document.
1088# Syntax is similar to doxygen's config file.
1089
1090RTF_EXTENSIONS_FILE =
1091
1092#---------------------------------------------------------------------------
1093# configuration options related to the man page output
1094#---------------------------------------------------------------------------
1095
1096# If the GENERATE_MAN tag is set to YES (the default) Doxygen will
1097# generate man pages
1098
1099GENERATE_MAN = NO
1100
1101# The MAN_OUTPUT tag is used to specify where the man pages will be put.
1102# If a relative path is entered the value of OUTPUT_DIRECTORY will be
1103# put in front of it. If left blank `man' will be used as the default path.
1104
1105MAN_OUTPUT = man
1106
1107# The MAN_EXTENSION tag determines the extension that is added to
1108# the generated man pages (default is the subroutine's section .3)
1109
1110MAN_EXTENSION = .3
1111
1112# If the MAN_LINKS tag is set to YES and Doxygen generates man output,
1113# then it will generate one additional man file for each entity
1114# documented in the real man page(s). These additional files
1115# only source the real man page, but without them the man command
1116# would be unable to find the correct page. The default is NO.
1117
1118MAN_LINKS = NO
1119
1120#---------------------------------------------------------------------------
1121# configuration options related to the XML output
1122#---------------------------------------------------------------------------
1123
1124# If the GENERATE_XML tag is set to YES Doxygen will
1125# generate an XML file that captures the structure of
1126# the code including all documentation.
1127
1128GENERATE_XML = NO
1129
1130# The XML_OUTPUT tag is used to specify where the XML pages will be put.
1131# If a relative path is entered the value of OUTPUT_DIRECTORY will be
1132# put in front of it. If left blank `xml' will be used as the default path.
1133
1134XML_OUTPUT = xml
1135
1136# The XML_SCHEMA tag can be used to specify an XML schema,
1137# which can be used by a validating XML parser to check the
1138# syntax of the XML files.
1139
1140XML_SCHEMA =
1141
1142# The XML_DTD tag can be used to specify an XML DTD,
1143# which can be used by a validating XML parser to check the
1144# syntax of the XML files.
1145
1146XML_DTD =
1147
1148# If the XML_PROGRAMLISTING tag is set to YES Doxygen will
1149# dump the program listings (including syntax highlighting
1150# and cross-referencing information) to the XML output. Note that
1151# enabling this will significantly increase the size of the XML output.
1152
1153XML_PROGRAMLISTING = YES
1154
1155#---------------------------------------------------------------------------
1156# configuration options for the AutoGen Definitions output
1157#---------------------------------------------------------------------------
1158
1159# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will
1160# generate an AutoGen Definitions (see autogen.sf.net) file
1161# that captures the structure of the code including all
1162# documentation. Note that this feature is still experimental
1163# and incomplete at the moment.
1164
1165GENERATE_AUTOGEN_DEF = NO
1166
1167#---------------------------------------------------------------------------
1168# configuration options related to the Perl module output
1169#---------------------------------------------------------------------------
1170
1171# If the GENERATE_PERLMOD tag is set to YES Doxygen will
1172# generate a Perl module file that captures the structure of
1173# the code including all documentation. Note that this
1174# feature is still experimental and incomplete at the
1175# moment.
1176
1177GENERATE_PERLMOD = NO
1178
1179# If the PERLMOD_LATEX tag is set to YES Doxygen will generate
1180# the necessary Makefile rules, Perl scripts and LaTeX code to be able
1181# to generate PDF and DVI output from the Perl module output.
1182
1183PERLMOD_LATEX = NO
1184
1185# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be
1186# nicely formatted so it can be parsed by a human reader.
1187# This is useful
1188# if you want to understand what is going on.
1189# On the other hand, if this
1190# tag is set to NO the size of the Perl module output will be much smaller
1191# and Perl will parse it just the same.
1192
1193PERLMOD_PRETTY = YES
1194
1195# The names of the make variables in the generated doxyrules.make file
1196# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX.
1197# This is useful so different doxyrules.make files included by the same
1198# Makefile don't overwrite each other's variables.
1199
1200PERLMOD_MAKEVAR_PREFIX =
1201
1202#---------------------------------------------------------------------------
1203# Configuration options related to the preprocessor
1204#---------------------------------------------------------------------------
1205
1206# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will
1207# evaluate all C-preprocessor directives found in the sources and include
1208# files.
1209
1210ENABLE_PREPROCESSING = YES
1211
1212# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro
1213# names in the source code. If set to NO (the default) only conditional
1214# compilation will be performed. Macro expansion can be done in a controlled
1215# way by setting EXPAND_ONLY_PREDEF to YES.
1216
1217MACRO_EXPANSION = NO
1218
1219# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES
1220# then the macro expansion is limited to the macros specified with the
1221# PREDEFINED and EXPAND_AS_DEFINED tags.
1222
1223EXPAND_ONLY_PREDEF = NO
1224
1225# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files
1226# in the INCLUDE_PATH (see below) will be search if a #include is found.
1227
1228SEARCH_INCLUDES = YES
1229
1230# The INCLUDE_PATH tag can be used to specify one or more directories that
1231# contain include files that are not input files but should be processed by
1232# the preprocessor.
1233
1234INCLUDE_PATH =
1235
1236# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard
1237# patterns (like *.h and *.hpp) to filter out the header-files in the
1238# directories. If left blank, the patterns specified with FILE_PATTERNS will
1239# be used.
1240
1241INCLUDE_FILE_PATTERNS =
1242
1243# The PREDEFINED tag can be used to specify one or more macro names that
1244# are defined before the preprocessor is started (similar to the -D option of
1245# gcc). The argument of the tag is a list of macros of the form: name
1246# or name=definition (no spaces). If the definition and the = are
1247# omitted =1 is assumed. To prevent a macro definition from being
1248# undefined via #undef or recursively expanded use the := operator
1249# instead of the = operator.
1250
1251PREDEFINED =
1252
1253# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then
1254# this tag can be used to specify a list of macro names that should be expanded.
1255# The macro definition that is found in the sources will be used.
1256# Use the PREDEFINED tag if you want to use a different macro definition.
1257
1258EXPAND_AS_DEFINED =
1259
1260# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then
1261# doxygen's preprocessor will remove all function-like macros that are alone
1262# on a line, have an all uppercase name, and do not end with a semicolon. Such
1263# function macros are typically used for boiler-plate code, and will confuse
1264# the parser if not removed.
1265
1266SKIP_FUNCTION_MACROS = YES
1267
1268#---------------------------------------------------------------------------
1269# Configuration::additions related to external references
1270#---------------------------------------------------------------------------
1271
1272# The TAGFILES option can be used to specify one or more tagfiles.
1273# Optionally an initial location of the external documentation
1274# can be added for each tagfile. The format of a tag file without
1275# this location is as follows:
1276#
1277# TAGFILES = file1 file2 ...
1278# Adding location for the tag files is done as follows:
1279#
1280# TAGFILES = file1=loc1 "file2 = loc2" ...
1281# where "loc1" and "loc2" can be relative or absolute paths or
1282# URLs. If a location is present for each tag, the installdox tool
1283# does not have to be run to correct the links.
1284# Note that each tag file must have a unique name
1285# (where the name does NOT include the path)
1286# If a tag file is not located in the directory in which doxygen
1287# is run, you must also specify the path to the tagfile here.
1288
1289TAGFILES =
1290
1291# When a file name is specified after GENERATE_TAGFILE, doxygen will create
1292# a tag file that is based on the input files it reads.
1293
1294GENERATE_TAGFILE =
1295
1296# If the ALLEXTERNALS tag is set to YES all external classes will be listed
1297# in the class index. If set to NO only the inherited external classes
1298# will be listed.
1299
1300ALLEXTERNALS = NO
1301
1302# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed
1303# in the modules index. If set to NO, only the current project's groups will
1304# be listed.
1305
1306EXTERNAL_GROUPS = YES
1307
1308# The PERL_PATH should be the absolute path and name of the perl script
1309# interpreter (i.e. the result of `which perl').
1310
1311PERL_PATH = /usr/bin/perl
1312
1313#---------------------------------------------------------------------------
1314# Configuration options related to the dot tool
1315#---------------------------------------------------------------------------
1316
1317# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will
1318# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base
1319# or super classes. Setting the tag to NO turns the diagrams off. Note that
1320# this option is superseded by the HAVE_DOT option below. This is only a
1321# fallback. It is recommended to install and use dot, since it yields more
1322# powerful graphs.
1323
1324CLASS_DIAGRAMS = YES
1325
1326# You can define message sequence charts within doxygen comments using the \msc
1327# command. Doxygen will then run the mscgen tool (see
1328# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the
1329# documentation. The MSCGEN_PATH tag allows you to specify the directory where
1330# the mscgen tool resides. If left empty the tool is assumed to be found in the
1331# default search path.
1332
1333MSCGEN_PATH =
1334
1335# If set to YES, the inheritance and collaboration graphs will hide
1336# inheritance and usage relations if the target is undocumented
1337# or is not a class.
1338
1339HIDE_UNDOC_RELATIONS = YES
1340
1341# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is
1342# available from the path. This tool is part of Graphviz, a graph visualization
1343# toolkit from AT&T and Lucent Bell Labs. The other options in this section
1344# have no effect if this option is set to NO (the default)
1345
1346HAVE_DOT = NO
1347
1348# By default doxygen will write a font called FreeSans.ttf to the output
1349# directory and reference it in all dot files that doxygen generates. This
1350# font does not include all possible unicode characters however, so when you need
1351# these (or just want a differently looking font) you can specify the font name
1352# using DOT_FONTNAME. You need need to make sure dot is able to find the font,
1353# which can be done by putting it in a standard location or by setting the
1354# DOTFONTPATH environment variable or by setting DOT_FONTPATH to the directory
1355# containing the font.
1356
1357DOT_FONTNAME = FreeSans
1358
1359# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs.
1360# The default size is 10pt.
1361
1362DOT_FONTSIZE = 10
1363
1364# By default doxygen will tell dot to use the output directory to look for the
1365# FreeSans.ttf font (which doxygen will put there itself). If you specify a
1366# different font using DOT_FONTNAME you can set the path where dot
1367# can find it using this tag.
1368
1369DOT_FONTPATH =
1370
1371# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen
1372# will generate a graph for each documented class showing the direct and
1373# indirect inheritance relations. Setting this tag to YES will force the
1374# the CLASS_DIAGRAMS tag to NO.
1375
1376CLASS_GRAPH = YES
1377
1378# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen
1379# will generate a graph for each documented class showing the direct and
1380# indirect implementation dependencies (inheritance, containment, and
1381# class references variables) of the class with other documented classes.
1382
1383COLLABORATION_GRAPH = YES
1384
1385# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen
1386# will generate a graph for groups, showing the direct groups dependencies
1387
1388GROUP_GRAPHS = YES
1389
1390# If the UML_LOOK tag is set to YES doxygen will generate inheritance and
1391# collaboration diagrams in a style similar to the OMG's Unified Modeling
1392# Language.
1393
1394UML_LOOK = NO
1395
1396# If set to YES, the inheritance and collaboration graphs will show the
1397# relations between templates and their instances.
1398
1399TEMPLATE_RELATIONS = NO
1400
1401# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT
1402# tags are set to YES then doxygen will generate a graph for each documented
1403# file showing the direct and indirect include dependencies of the file with
1404# other documented files.
1405
1406INCLUDE_GRAPH = YES
1407
1408# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and
1409# HAVE_DOT tags are set to YES then doxygen will generate a graph for each
1410# documented header file showing the documented files that directly or
1411# indirectly include this file.
1412
1413INCLUDED_BY_GRAPH = YES
1414
1415# If the CALL_GRAPH and HAVE_DOT options are set to YES then
1416# doxygen will generate a call dependency graph for every global function
1417# or class method. Note that enabling this option will significantly increase
1418# the time of a run. So in most cases it will be better to enable call graphs
1419# for selected functions only using the \callgraph command.
1420
1421CALL_GRAPH = NO
1422
1423# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then
1424# doxygen will generate a caller dependency graph for every global function
1425# or class method. Note that enabling this option will significantly increase
1426# the time of a run. So in most cases it will be better to enable caller
1427# graphs for selected functions only using the \callergraph command.
1428
1429CALLER_GRAPH = NO
1430
1431# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen
1432# will graphical hierarchy of all classes instead of a textual one.
1433
1434GRAPHICAL_HIERARCHY = YES
1435
1436# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES
1437# then doxygen will show the dependencies a directory has on other directories
1438# in a graphical way. The dependency relations are determined by the #include
1439# relations between the files in the directories.
1440
1441DIRECTORY_GRAPH = YES
1442
1443# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images
1444# generated by dot. Possible values are png, jpg, or gif
1445# If left blank png will be used.
1446
1447DOT_IMAGE_FORMAT = png
1448
1449# The tag DOT_PATH can be used to specify the path where the dot tool can be
1450# found. If left blank, it is assumed the dot tool can be found in the path.
1451
1452DOT_PATH =
1453
1454# The DOTFILE_DIRS tag can be used to specify one or more directories that
1455# contain dot files that are included in the documentation (see the
1456# \dotfile command).
1457
1458DOTFILE_DIRS =
1459
1460# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of
1461# nodes that will be shown in the graph. If the number of nodes in a graph
1462# becomes larger than this value, doxygen will truncate the graph, which is
1463# visualized by representing a node as a red box. Note that doxygen if the
1464# number of direct children of the root node in a graph is already larger than
1465# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note
1466# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH.
1467
1468DOT_GRAPH_MAX_NODES = 50
1469
1470# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the
1471# graphs generated by dot. A depth value of 3 means that only nodes reachable
1472# from the root by following a path via at most 3 edges will be shown. Nodes
1473# that lay further from the root node will be omitted. Note that setting this
1474# option to 1 or 2 may greatly reduce the computation time needed for large
1475# code bases. Also note that the size of a graph can be further restricted by
1476# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction.
1477
1478MAX_DOT_GRAPH_DEPTH = 0
1479
1480# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent
1481# background. This is disabled by default, because dot on Windows does not
1482# seem to support this out of the box. Warning: Depending on the platform used,
1483# enabling this option may lead to badly anti-aliased labels on the edges of
1484# a graph (i.e. they become hard to read).
1485
1486DOT_TRANSPARENT = NO
1487
1488# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output
1489# files in one run (i.e. multiple -o and -T options on the command line). This
1490# makes dot run faster, but since only newer versions of dot (>1.8.10)
1491# support this, this feature is disabled by default.
1492
1493DOT_MULTI_TARGETS = NO
1494
1495# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will
1496# generate a legend page explaining the meaning of the various boxes and
1497# arrows in the dot generated graphs.
1498
1499GENERATE_LEGEND = YES
1500
1501# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will
1502# remove the intermediate dot files that are used to generate
1503# the various graphs.
1504
1505DOT_CLEANUP = YES
1506
1507#---------------------------------------------------------------------------
1508# Options related to the search engine
1509#---------------------------------------------------------------------------
1510
1511# The SEARCHENGINE tag specifies whether or not a search engine should be
1512# used. If set to NO the values of all tags below this one will be ignored.
1513
1514SEARCHENGINE = NO
diff --git a/php/phpgats.php b/php/phpgats.php
index 188dbc0..68ab82b 100644
--- a/php/phpgats.php
+++ b/php/phpgats.php
@@ -1,29 +1,67 @@
1<?php 1<?php
2 2
3/* 3/** @mainpage phpgats.php PHP Gats Library
4 * @function phpgats_parseGats( $str_data (string) ); 4 * @section Notes
5 * @returns gats element 5 *
6 * This library requires that php be built with the The GNU Multiple Precision Arithmetic Library (GMP)
7 *
8 * @section Usage
9 *
10 * function phpgats_parseGats( $str_data (string) );
11 * returns phpgats_Element
6 * 12 *
7 * @function phpgats_writeGats( $elem (phpgats_Element subclass) ); 13 * function phpgats_writeGats( $elem (phpgats_Element) );
8 * @returns binary encoded gats string 14 * returns binary encoded gats string
15 *
16 * @section Types
17 *
18 * phpgats_Element - Base Class for all phpgats types\n
19 * phpgats_Boolean\n
20 * phpgats_Dictionary\n
21 * phpgats_Float\n
22 * phpgats_Integer\n
23 * phpgats_List\n
24 * phpgats_String\n
9 */ 25 */
10 26
27/**
28 * The base class for all phpgats types
29 */
11class phpgats_Element 30class phpgats_Element
12{ 31{
32 /**
33 * Get the binary representation of the gats type
34 * @returns (string) binary gats data
35 */
13 function encode() 36 function encode()
14 { 37 {
15 return ""; 38 return "";
16 } 39 }
40
41 /**
42 * Get a string representation of this type
43 * @returns (string)
44 */
17 function getStr() 45 function getStr()
18 { 46 {
19 return ""; 47 return "";
20 } 48 }
49
50 /**
51 * Get the gats type of the current element
52 * @returns (string) one of: ("boolean"|"dictionary"|"float"|"integer"|"list"|"string")
53 */
21 function getGatsType() 54 function getGatsType()
22 { 55 {
23 return ""; 56 return "";
24 } 57 }
25} 58}
26 59
60/**
61 * Write a gats packed integer
62 * @param $iIn (either a string representing a number, a gmp_int, or an int) The integer to be converted
63 * @returns (string) packed int binary data
64 */
27function phpgats_writeInt( $iIn ) 65function phpgats_writeInt( $iIn )
28{ 66{
29 $ret = ""; 67 $ret = "";
@@ -58,6 +96,12 @@ function phpgats_writeInt( $iIn )
58 return $ret; 96 return $ret;
59} 97}
60 98
99/**
100 * Read a gats packed integer into a gmp_int
101 * @param $sIn (string) the input stream
102 * @param &$pos (integer) the current position in the input stream (will be modified)
103 * @returns (gmp_int) the integer
104 */
61function phpgats_readInt( $sIn, &$pos ) 105function phpgats_readInt( $sIn, &$pos )
62{ 106{
63 $neg = false; 107 $neg = false;
@@ -79,20 +123,35 @@ function phpgats_readInt( $sIn, &$pos )
79 return $iOut; 123 return $iOut;
80} 124}
81 125
126/**
127 * Boolean Gats type (true or false)
128 */
82class phpgats_Boolean extends phpgats_Element 129class phpgats_Boolean extends phpgats_Element
83{ 130{
84 public $elem = false; 131 public $elem = false;
85 132
133 /**
134 * Creates a phpgats_Boolean out of a php type
135 * @param $_elem (mixed) the php type to convert to a gats boolean
136 */
86 function __construct( $_elem ) 137 function __construct( $_elem )
87 { 138 {
88 $this->elem = ($_elem==true)?true:false; 139 $this->elem = ($_elem==true)?true:false;
89 } 140 }
90 141
142 /**
143 * Sets this phpgats_Boolean type based on php type $_elem
144 * @param $_elem (mixed) the php type to convert to a gats boolean
145 */
91 function set( $_elem ) 146 function set( $_elem )
92 { 147 {
93 $this->elem = ($_elem==true)?true:false; 148 $this->elem = ($_elem==true)?true:false;
94 } 149 }
95 150
151 /**
152 * Get the php type of this element
153 * @returns (bool)
154 */
96 function get() 155 function get()
97 { 156 {
98 return $this->elem; 157 return $this->elem;
@@ -108,26 +167,45 @@ class phpgats_Boolean extends phpgats_Element
108 return ($this->elem==true)?"true":"false"; 167 return ($this->elem==true)?"true":"false";
109 } 168 }
110 169
170 /**
171 * Get the gats type of the current element
172 * @returns "boolean"
173 */
111 function getGatsType() 174 function getGatsType()
112 { 175 {
113 return "boolean"; 176 return "boolean";
114 } 177 }
115} 178}
116 179
180/**
181 * String Gats type
182 */
117class phpgats_String extends phpgats_Element 183class phpgats_String extends phpgats_Element
118{ 184{
119 public $elem = ""; 185 public $elem = "";
120 186
187 /**
188 * Creates a phpgats_String out of a php type
189 * @param $_elem (mixed) the php type to convert to a gats string
190 */
121 function __construct( $_elem ) 191 function __construct( $_elem )
122 { 192 {
123 $this->elem = $_elem . ""; 193 $this->elem = $_elem . "";
124 } 194 }
125 195
196 /**
197 * Sets this phpgats_String type based on php type $_elem
198 * @param $_elem (mixed) the php type to convert to a gats string
199 */
126 function set( $_elem ) 200 function set( $_elem )
127 { 201 {
128 $this->elem = $_elem . ""; 202 $this->elem = $_elem . "";
129 } 203 }
130 204
205 /**
206 * Get the php type of this element
207 * @returns (string)
208 */
131 function get() 209 function get()
132 { 210 {
133 return $this->elem; 211 return $this->elem;
@@ -143,16 +221,27 @@ class phpgats_String extends phpgats_Element
143 return $this->get(); 221 return $this->get();
144 } 222 }
145 223
224 /**
225 * Get the gats type of the current element
226 * @returns "string"
227 */
146 function getGatsType() 228 function getGatsType()
147 { 229 {
148 return "string"; 230 return "string";
149 } 231 }
150} 232}
151 233
234/**
235 * Integer Gats type (gmp_int)
236 */
152class phpgats_Integer extends phpgats_Element 237class phpgats_Integer extends phpgats_Element
153{ 238{
154 public $elem = 0; 239 public $elem = 0;
155 240
241 /**
242 * Creates a phpgats_Integer out of a php type
243 * @param $_elem (mixed) the php type to convert to a gats integer
244 */
156 function __construct( $_elem ) 245 function __construct( $_elem )
157 { 246 {
158 if( $_elem === '' ) 247 if( $_elem === '' )
@@ -170,16 +259,28 @@ class phpgats_Integer extends phpgats_Element
170 getType($_elem) . "'."); 259 getType($_elem) . "'.");
171 } 260 }
172 261
262 /**
263 * Sets this phpgats_Integer type based on php type $_elem
264 * @param $_elem (mixed) the php type to convert to a gats integer
265 */
173 function set( $_elem ) 266 function set( $_elem )
174 { 267 {
175 $this->elem = gmp_init($_elem); 268 $this->elem = gmp_init($_elem);
176 } 269 }
177 270
271 /**
272 * Get the php type of this element
273 * @returns (int)
274 */
178 function get() 275 function get()
179 { 276 {
180 return gmp_intval($this->elem); 277 return gmp_intval($this->elem);
181 } 278 }
182 279
280 /**
281 * Get the php type of this element
282 * @returns (gmp_int)
283 */
183 function get64() 284 function get64()
184 { 285 {
185 return $this->elem; 286 return $this->elem;
@@ -195,26 +296,45 @@ class phpgats_Integer extends phpgats_Element
195 return gmp_strval($this->elem); 296 return gmp_strval($this->elem);
196 } 297 }
197 298
299 /**
300 * Get the gats type of the current element
301 * @returns "integer"
302 */
198 function getGatsType() 303 function getGatsType()
199 { 304 {
200 return "integer"; 305 return "integer";
201 } 306 }
202} 307}
203 308
309/**
310 * Float Gats type
311 */
204class phpgats_Float extends phpgats_Element 312class phpgats_Float extends phpgats_Element
205{ 313{
206 public $elem = 0; 314 public $elem = 0;
207 315
316 /**
317 * Creates a phpgats_Float out of a php type
318 * @param $_elem (mixed) the php type to convert to a gats float
319 */
208 function __construct( $_elem ) 320 function __construct( $_elem )
209 { 321 {
210 $this->elem = $_elem+0.0; 322 $this->elem = $_elem+0.0;
211 } 323 }
212 324
325 /**
326 * Sets this phpgats_Float type based on php type $_elem
327 * @param $_elem (mixed) the php type to convert to a gats float
328 */
213 function set( $_elem ) 329 function set( $_elem )
214 { 330 {
215 $this->elem = $_elem+0.0; 331 $this->elem = $_elem+0.0;
216 } 332 }
217 333
334 /**
335 * Get the php type of this element
336 * @returns (float)
337 */
218 function get() 338 function get()
219 { 339 {
220 return $this->elem; 340 return $this->elem;
@@ -268,16 +388,27 @@ class phpgats_Float extends phpgats_Element
268 return $this->elem+""; 388 return $this->elem+"";
269 } 389 }
270 390
391 /**
392 * Get the gats type of the current element
393 * @returns "float"
394 */
271 function getGatsType() 395 function getGatsType()
272 { 396 {
273 return "float"; 397 return "float";
274 } 398 }
275} 399}
276 400
401/**
402 * List Gats type
403 */
277class phpgats_List extends phpgats_Element 404class phpgats_List extends phpgats_Element
278{ 405{
279 public $elems = array(); 406 public $elems = array();
280 407
408 /**
409 * Append an element to this phpgats_List
410 * @param $_elem (phpgats_Element) the element to append
411 */
281 function append( $_elem ) 412 function append( $_elem )
282 { 413 {
283 if( !is_subclass_of( $_elem, "phpgats_Element" ) ) 414 if( !is_subclass_of( $_elem, "phpgats_Element" ) )
@@ -286,11 +417,19 @@ class phpgats_List extends phpgats_Element
286 array_push( $this->elems, $_elem ); 417 array_push( $this->elems, $_elem );
287 } 418 }
288 419
420 /**
421 * Returns the php array that is the core of this element
422 * @returns (array)
423 */
289 function get() 424 function get()
290 { 425 {
291 return $this->elems; 426 return $this->elems;
292 } 427 }
293 428
429 /**
430 * Returns the current size of this list
431 * @returns (int) the number of elements
432 */
294 function size() 433 function size()
295 { 434 {
296 return count($this->elems); 435 return count($this->elems);
@@ -307,16 +446,28 @@ class phpgats_List extends phpgats_Element
307 return $s_out; 446 return $s_out;
308 } 447 }
309 448
449 /**
450 * Get the gats type of the current element
451 * @returns "list"
452 */
310 function getGatsType() 453 function getGatsType()
311 { 454 {
312 return "list"; 455 return "list";
313 } 456 }
314} 457}
315 458
459/**
460 * Dictionary Gats type
461 */
316class phpgats_Dictionary extends phpgats_Element 462class phpgats_Dictionary extends phpgats_Element
317{ 463{
318 public $elems = array(); 464 public $elems = array();
319 465
466 /**
467 * Append an element to the phpgats_Dictionary
468 * @param $_name (string) the key under which to place this element
469 * @param $_val (phpgats_Element) the phpgats_Element to place in the dictionary
470 */
320 function append( $_name, $_val ) 471 function append( $_name, $_val )
321 { 472 {
322 if( !is_subclass_of( $_val, "phpgats_Element" ) || 473 if( !is_subclass_of( $_val, "phpgats_Element" ) ||
@@ -326,11 +477,19 @@ class phpgats_Dictionary extends phpgats_Element
326 $this->elems[$_name] = $_val; 477 $this->elems[$_name] = $_val;
327 } 478 }
328 479
480 /**
481 * Returns the php associative array that is the core of this element
482 * @returns (array)
483 */
329 function get() 484 function get()
330 { 485 {
331 return $this->elems; 486 return $this->elems;
332 } 487 }
333 488
489 /**
490 * Returns the current size of the dictionary
491 * @returns (int)
492 */
334 function size() 493 function size()
335 { 494 {
336 return count($this->elems); 495 return count($this->elems);
@@ -349,18 +508,34 @@ class phpgats_Dictionary extends phpgats_Element
349 return $s_out; 508 return $s_out;
350 } 509 }
351 510
511 /**
512 * Get the gats type of the current element
513 * @returns "dictionary"
514 */
352 function getGatsType() 515 function getGatsType()
353 { 516 {
354 return "dictionary"; 517 return "dictionary";
355 } 518 }
356} 519}
357 520
521/**
522 * Make sure we can read a character off the input stream
523 * @param $str_data (string) the input stream
524 * @param $offset (integer) the current position in the input stream
525 */
358function phpgats_pC( $str_data, $offset ) 526function phpgats_pC( $str_data, $offset )
359{ 527{
360 if($offset>strlen($str_data)) 528 if($offset>strlen($str_data))
361 throw new Exception("Not enough data"); 529 throw new Exception("Not enough data");
362} 530}
363 531
532/**
533 * Parse a string element out of the input stream
534 * @param $str_data (string) the input stream
535 * @param &$offset (integer) the current position in the input stream (will be updated)
536 * @param $dbg (integer) the current depth (for pretty printing)
537 * @returns (phpgats_String) the element read
538 */
364function phpgats_pS( $str_data, &$offset, $dbg ) 539function phpgats_pS( $str_data, &$offset, $dbg )
365{ 540{
366 $str_tmp = ""; 541 $str_tmp = "";
@@ -382,11 +557,25 @@ function phpgats_pS( $str_data, &$offset, $dbg )
382 return new phpgats_String($str_tmp); 557 return new phpgats_String($str_tmp);
383} 558}
384 559
560/**
561 * Parse an integer element out of the input stream
562 * @param $str_data (string) the input stream
563 * @param &$offset (integer) the current position in the input stream (will be updated)
564 * @param $dbg (integer) the current depth (for pretty printing)
565 * @returns (phpgats_Integer) the element read
566 */
385function phpgats_pI( $str_data, &$offset, $dbg ) 567function phpgats_pI( $str_data, &$offset, $dbg )
386{ 568{
387 return new phpgats_Integer(phpgats_readInt($str_data, $offset)); 569 return new phpgats_Integer(phpgats_readInt($str_data, $offset));
388} 570}
389 571
572/**
573 * Parse a float element out of the input stream
574 * @param $str_data (string) the input stream
575 * @param &$offset (integer) the current position in the input stream (will be updated)
576 * @param $dbg (integer) the current depth (for pretty printing)
577 * @returns (phpgats_Float) the element read
578 */
390function phpgats_pF( $str_data, &$offset, $dbg ) 579function phpgats_pF( $str_data, &$offset, $dbg )
391{ 580{
392 $str_tmp = ""; 581 $str_tmp = "";
@@ -416,6 +605,13 @@ function phpgats_pF( $str_data, &$offset, $dbg )
416 return new phpgats_Float( $e ); 605 return new phpgats_Float( $e );
417} 606}
418 607
608/**
609 * Parse a list element out of the input stream
610 * @param $str_data (string) the input stream
611 * @param &$offset (integer) the current position in the input stream (will be updated)
612 * @param $dbg (integer) the current depth (for pretty printing)
613 * @returns (phpgats_List) the element read
614 */
419function phpgats_pL( $str_data, &$offset, $dbg ) 615function phpgats_pL( $str_data, &$offset, $dbg )
420{ 616{
421 phpgats_pC( $str_data, $offset ); 617 phpgats_pC( $str_data, $offset );
@@ -432,6 +628,13 @@ function phpgats_pL( $str_data, &$offset, $dbg )
432 return $l_out; 628 return $l_out;
433} 629}
434 630
631/**
632 * Parse a dictionary element out of the input stream
633 * @param $str_data (string) the input stream
634 * @param &$offset (integer) the current position in the input stream (will be updated)
635 * @param $dbg (integer) the current depth (for pretty printing)
636 * @returns (phpgats_Dictionary) the element read
637 */
435function phpgats_pD( $str_data, &$offset, $dbg ) 638function phpgats_pD( $str_data, &$offset, $dbg )
436{ 639{
437 phpgats_pC( $str_data, $offset ); 640 phpgats_pC( $str_data, $offset );
@@ -449,6 +652,13 @@ function phpgats_pD( $str_data, &$offset, $dbg )
449 return $d_out; 652 return $d_out;
450} 653}
451 654
655/**
656 * The internal master recursive parse function
657 * @param $str_data (string) the input stream
658 * @param &$offset (integer) the current position in the input stream (will be updated)
659 * @param $dbg (integer) the current depth (for pretty printing)
660 * @returns (phpgats_Element) the element read
661 */
452function phpgats_pM( $str_data, &$offset, $dbg=0 ) 662function phpgats_pM( $str_data, &$offset, $dbg=0 )
453{ 663{
454 phpgats_pC( $str_data, $offset ); 664 phpgats_pC( $str_data, $offset );
@@ -507,6 +717,11 @@ function phpgats_pM( $str_data, &$offset, $dbg=0 )
507 } 717 }
508} 718}
509 719
720/**
721 * Call this function to parse a gats binary string into a phpgats_Element object
722 * @param $str_data (string) the binary gats data to be parsed
723 * @returns (phpgats_Element)
724 */
510function phpgats_parseGats( $str_data ) 725function phpgats_parseGats( $str_data )
511{ 726{
512 //print "parsing\n"; 727 //print "parsing\n";
@@ -534,12 +749,18 @@ function phpgats_parseGats( $str_data )
534 return phpgats_pM( $str_data, $offset ); 749 return phpgats_pM( $str_data, $offset );
535} 750}
536 751
752/**
753 * Call this function to generate a binary gats stream from the given phpgats_Element object
754 * @param $elem (phpgats_Element) the gats element object from which to generate a binary blob
755 * @returns (string) binary gats data
756 */
537function phpgats_writeGats( $elem ) 757function phpgats_writeGats( $elem )
538{ 758{
539 $str_out = $elem->encode(); 759 $str_out = $elem->encode();
540 $str_out = "\x01" . pack( "N", strlen($str_out)+5 ) . $str_out; 760 $str_out = "\x01" . pack( "N", strlen($str_out)+5 ) . $str_out;
541 return $str_out; 761 return $str_out;
542} 762}
763
543/* 764/*
544$l = new phpgats_List(); 765$l = new phpgats_List();
545$l->append( new phpgats_Float( 123000000000.0 ) ); 766$l->append( new phpgats_Float( 123000000000.0 ) );