diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-08-02 08:21:29 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-08-02 08:21:29 +0000 |
| commit | 61bfe2d70cae6be8c4086a210a5451135ccca9ea (patch) | |
| tree | 62bf7808b1b2bfe5f56fe1e329871fb0991d0687 /docs/tool/Modules/NaturalDocs/SourceDB/ItemDefinition.pm | |
| parent | a13b94f9e0bca8ea892311d9d9e0c0bc48616ea7 (diff) | |
| download | zcatch-61bfe2d70cae6be8c4086a210a5451135ccca9ea.tar.gz zcatch-61bfe2d70cae6be8c4086a210a5451135ccca9ea.zip | |
added doc tool
Diffstat (limited to 'docs/tool/Modules/NaturalDocs/SourceDB/ItemDefinition.pm')
| -rw-r--r-- | docs/tool/Modules/NaturalDocs/SourceDB/ItemDefinition.pm | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/docs/tool/Modules/NaturalDocs/SourceDB/ItemDefinition.pm b/docs/tool/Modules/NaturalDocs/SourceDB/ItemDefinition.pm new file mode 100644 index 00000000..ee053fef --- /dev/null +++ b/docs/tool/Modules/NaturalDocs/SourceDB/ItemDefinition.pm @@ -0,0 +1,45 @@ +############################################################################### +# +# Package: NaturalDocs::SourceDB::ItemDefinition +# +############################################################################### +# +# A base class for all item definitions for extensions that track more than existence. +# +############################################################################### + +# This file is part of Natural Docs, which is Copyright (C) 2003-2008 Greg Valure +# Natural Docs is licensed under the GPL + +use strict; +use integer; + + +package NaturalDocs::SourceDB::ItemDefinition; + + +# +# Function: Compare +# +# Returns whether the definitions are equal. This version returns true by default, you must override it in your subclasses +# to make the results relevant. This is important for <NaturalDocs::SourceDB->AnalyzeTrackedFileChanges()>. +# +# This will only be called between objects of the same <ExtensionID>. If you use multiple derived classes for the same +# <ExtensionID>, you will have to take that into account yourself. +# +# Parameters: +# +# other - Another <NaturalDocs::SourceDB::ItemDefinition>-derived object to compare this one to. It will always be from +# the same <ExtensionID>. +# +# Returns: +# +# Whether they are equal. +# +sub Compare #(other) + { + return 1; + }; + + +1; |