Codebase list ohcount / 6ef9399e-69b6-464b-98a8-52915e284046/upstream doc / html / sourcefile_8h_source.html
6ef9399e-69b6-464b-98a8-52915e284046/upstream

Tree @6ef9399e-69b6-464b-98a8-52915e284046/upstream (Download .tar.gz)

sourcefile_8h_source.html @6ef9399e-69b6-464b-98a8-52915e284046/upstreamraw · history · blame

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>ohcount: /Users/andy/dev/ohcount/src/sourcefile.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.9 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<h1>/Users/andy/dev/ohcount/src/sourcefile.h</h1><a href="sourcefile_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// sourcefile.h written by Mitchell Foral. mitchell&lt;att&gt;caladbolg.net.</span>
<a name="l00002"></a>00002 <span class="comment">// See COPYING for license information.</span>
<a name="l00003"></a>00003 
<a name="l00004"></a>00004 <span class="preprocessor">#ifndef OHCOUNT_SOURCEFILE_H</span>
<a name="l00005"></a>00005 <span class="preprocessor"></span><span class="preprocessor">#define OHCOUNT_SOURCEFILE_H</span>
<a name="l00006"></a>00006 <span class="preprocessor"></span>
<a name="l00007"></a>00007 <span class="preprocessor">#include "<a class="code" href="loc_8h.html">loc.h</a>"</span>
<a name="l00008"></a>00008 <span class="preprocessor">#include "<a class="code" href="parsed__language_8h.html">parsed_language.h</a>"</span>
<a name="l00009"></a>00009 
<a name="l00016"></a>00016 <a class="code" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> *<a class="code" href="sourcefile_8h.html#a2a2f198bc5d0cae789b7efc92717ea1">ohcount_sourcefile_new</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *filepath);
<a name="l00017"></a>00017 
<a name="l00025"></a>00025 <span class="keywordtype">void</span> <a class="code" href="sourcefile_8h.html#0f98a5da511c34ff772e648ec13915ff">ohcount_sourcefile_set_diskpath</a>(<a class="code" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> *sourcefile,
<a name="l00026"></a>00026                                      <span class="keyword">const</span> <span class="keywordtype">char</span> *diskpath);
<a name="l00027"></a>00027 
<a name="l00034"></a>00034 <span class="keywordtype">void</span> <a class="code" href="sourcefile_8h.html#46b6f512d9afd86e9f9d6c39bdbe9252">ohcount_sourcefile_set_contents</a>(<a class="code" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> *sourcefile,
<a name="l00035"></a>00035                                      <span class="keyword">const</span> <span class="keywordtype">char</span> *contents);
<a name="l00036"></a>00036 
<a name="l00043"></a>00043 <span class="keywordtype">char</span> *<a class="code" href="sourcefile_8h.html#d78d1d1726970dbcdb8b999f1ab7c175">ohcount_sourcefile_get_contents</a>(<a class="code" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> *sourcefile);
<a name="l00044"></a>00044 
<a name="l00050"></a>00050 <span class="keywordtype">int</span> <a class="code" href="sourcefile_8h.html#f0bda4d5eb8ebae78653881196d1b2ea">ohcount_sourcefile_get_contents_size</a>(<a class="code" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> *sourcefile);
<a name="l00051"></a>00051 
<a name="l00058"></a>00058 <span class="keywordtype">void</span> <a class="code" href="sourcefile_8h.html#f34b9fa3dc4968fe54d261404a6aa609">ohcount_sourcefile_set_language</a>(<a class="code" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> *sourcefile,
<a name="l00059"></a>00059                                      <span class="keyword">const</span> <span class="keywordtype">char</span> *language);
<a name="l00060"></a>00060 
<a name="l00067"></a>00067 <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="sourcefile_8h.html#4e26432b8859af9b569e7ceb76a0c4f2">ohcount_sourcefile_get_language</a>(<a class="code" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> *sourcefile);
<a name="l00068"></a>00068 
<a name="l00074"></a>00074 <span class="keywordtype">void</span> <a class="code" href="sourcefile_8h.html#2be63654c50b188e223a349b27cdcb92">ohcount_sourcefile_parse</a>(<a class="code" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> *sourcefile);
<a name="l00075"></a>00075 
<a name="l00081"></a>00081 <a class="code" href="structParsedLanguageListItem.html" title="Holds a set of ParsedLanguages in a linked list.">ParsedLanguageList</a> *<a class="code" href="sourcefile_8h.html#ac4df12ae1934a82e8a5fa0418da898b">ohcount_sourcefile_get_parsed_language_list</a>(<a class="code" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a>
<a name="l00082"></a>00082                                                                 *sourcefile);
<a name="l00083"></a>00083 
<a name="l00091"></a>00091 <span class="keywordtype">void</span> <a class="code" href="sourcefile_8h.html#b57d1d049bfd63e3afb384ca38503458">ohcount_sourcefile_parse_with_callback</a>(<a class="code" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> *sourcefile,
<a name="l00092"></a>00092                                             <span class="keywordtype">void</span> (*callback) (<span class="keyword">const</span> <span class="keywordtype">char</span> *,
<a name="l00093"></a>00093                                                               <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keywordtype">int</span>,
<a name="l00094"></a>00094                                                               <span class="keywordtype">int</span>, <span class="keywordtype">void</span> *),
<a name="l00095"></a>00095                                             <span class="keywordtype">void</span> *userdata);
<a name="l00096"></a>00096 
<a name="l00104"></a>00104 <span class="keywordtype">void</span> <a class="code" href="sourcefile_8h.html#844a8c3940e726e944e087fdb519d24a">ohcount_sourcefile_parse_entities_with_callback</a>(<a class="code" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> *sourcefile,
<a name="l00105"></a>00105                                                      <span class="keywordtype">void</span> (*callback)
<a name="l00106"></a>00106                                                        (<span class="keyword">const</span> <span class="keywordtype">char</span> *,
<a name="l00107"></a>00107                                                         <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keywordtype">int</span>,
<a name="l00108"></a>00108                                                         <span class="keywordtype">int</span>, <span class="keywordtype">void</span> *),
<a name="l00109"></a>00109                                                      <span class="keywordtype">void</span> *userdata);
<a name="l00110"></a>00110 
<a name="l00118"></a>00118 <a class="code" href="structLicenseListItem.html" title="Holds a list of Licenses in a linked list.">LicenseList</a> *<a class="code" href="sourcefile_8h.html#c8301992dd8f9eb8af00f04404c8ddac">ohcount_sourcefile_get_license_list</a>(<a class="code" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> *sourcefile);
<a name="l00119"></a>00119 
<a name="l00128"></a>00128 <a class="code" href="structLocListItem.html" title="Tracks total lines of code, comments, and blanks for multiple languages using a linked...">LocList</a> *<a class="code" href="sourcefile_8h.html#6f2cfdb608e1b2c02546dd7f82c7f0ae">ohcount_sourcefile_get_loc_list</a>(<a class="code" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> *sourcefile);
<a name="l00129"></a>00129 
<a name="l00139"></a>00139 <a class="code" href="structLocDeltaListItem.html" title="Tracks changes in lines of code, comments, and blank lines for multiple languages...">LocDeltaList</a> *<a class="code" href="sourcefile_8h.html#8095075cc741f56ec8e85856c8e33952">ohcount_sourcefile_diff</a>(<a class="code" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> *from, <a class="code" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> *to);
<a name="l00140"></a>00140 
<a name="l00153"></a>00153 <a class="code" href="structLocDelta.html" title="Tracks changes in lines of code, comments, and blank lines for a single language...">LocDelta</a> *<a class="code" href="sourcefile_8h.html#16576e970ec536ba779ce20426e4184b">ohcount_sourcefile_calc_loc_delta</a>(<a class="code" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> *from,
<a name="l00154"></a>00154                                             <span class="keyword">const</span> <span class="keywordtype">char</span> *language,
<a name="l00155"></a>00155                                             <a class="code" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> *to);
<a name="l00156"></a>00156 
<a name="l00164"></a>00164 <span class="keywordtype">void</span> <a class="code" href="sourcefile_8h.html#a2b205a57495f4362a89a415889e80dc">ohcount_sourcefile_set_filenames</a>(<a class="code" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> *sourcefile,
<a name="l00165"></a>00165                                       <span class="keywordtype">char</span> **filenames);
<a name="l00166"></a>00166 
<a name="l00176"></a>00176 <span class="keywordtype">char</span> **<a class="code" href="sourcefile_8h.html#f717654d914aaf5630438d84852690ea">ohcount_sourcefile_get_filenames</a>(<a class="code" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> *sourcefile);
<a name="l00177"></a>00177 
<a name="l00182"></a>00182 <span class="keywordtype">void</span> <a class="code" href="sourcefile_8h.html#ecebea5934ca15350c7aefc0283f28c3">ohcount_sourcefile_free</a>(<a class="code" href="structSourceFile.html" title="Represents a single source code file.">SourceFile</a> *sourcefile);
<a name="l00183"></a>00183 
<a name="l00190"></a>00190 <a class="code" href="structSourceFileListItem.html" title="Contains a set of SourceFiles.">SourceFileList</a> *<a class="code" href="sourcefile_8h.html#82c7b67a2f332af1da50bb86ee86d216">ohcount_sourcefile_list_new</a>();
<a name="l00191"></a>00191 
<a name="l00198"></a>00198 <span class="keywordtype">void</span> <a class="code" href="sourcefile_8h.html#9645f2e3e3cdf8a12b21c7658fe99d52">ohcount_sourcefile_list_add_file</a>(<a class="code" href="structSourceFileListItem.html" title="Contains a set of SourceFiles.">SourceFileList</a> *list,
<a name="l00199"></a>00199                                           <span class="keyword">const</span> <span class="keywordtype">char</span> *filepath);
<a name="l00200"></a>00200 
<a name="l00207"></a>00207 <span class="keywordtype">void</span> <a class="code" href="sourcefile_8h.html#0341ae7733a4f6d42af9723fe61ea7ca">ohcount_sourcefile_list_add_directory</a>(<a class="code" href="structSourceFileListItem.html" title="Contains a set of SourceFiles.">SourceFileList</a> *list,
<a name="l00208"></a>00208                                            <span class="keyword">const</span> <span class="keywordtype">char</span> *directory);
<a name="l00209"></a>00209 
<a name="l00215"></a>00215 <a class="code" href="structLocListItem.html" title="Tracks total lines of code, comments, and blanks for multiple languages using a linked...">LocList</a> *<a class="code" href="sourcefile_8h.html#aa1f233ca6c060ad519feae0b535d95a">ohcount_sourcefile_list_analyze_languages</a>(<a class="code" href="structSourceFileListItem.html" title="Contains a set of SourceFiles.">SourceFileList</a> *list);
<a name="l00216"></a>00216 
<a name="l00221"></a>00221 <span class="keywordtype">void</span> <a class="code" href="sourcefile_8h.html#6651000741c6ab4d4a17ed2ecb12aa7d">ohcount_sourcefile_list_free</a>(<a class="code" href="structSourceFileListItem.html" title="Contains a set of SourceFiles.">SourceFileList</a> *list);
<a name="l00222"></a>00222 
<a name="l00223"></a>00223 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Aug 28 15:20:08 2009 for ohcount by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
</body>
</html>