Paradiseo-eo sources added
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@40 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
bc1f453978
commit
c3aec878e5
3609 changed files with 342772 additions and 0 deletions
63
trunk/paradiseo-eo/doc/html/eo_updater_8cpp-source.html
Normal file
63
trunk/paradiseo-eo/doc/html/eo_updater_8cpp-source.html
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
||||
<title>EO: eoUpdater.cpp Source File</title>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||||
</head><body>
|
||||
<!-- Generated by Doxygen 1.3.9.1 -->
|
||||
<div class="qindex"> <form class="search" action="search.php" method="get">
|
||||
<a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="pages.html">Related Pages</a> | <span class="search"><u>S</u>earch for <input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div>
|
||||
<div class="nav">
|
||||
<a class="el" href="dir_000000.html">src</a> / <a class="el" href="dir_000011.html">utils</a></div>
|
||||
<h1>eoUpdater.cpp</h1><div class="fragment"><pre class="fragment">00001 <span class="preprocessor">#ifdef _MSC_VER</span>
|
||||
00002 <span class="preprocessor"></span><span class="preprocessor">#pragma warning(disable:4786)</span>
|
||||
00003 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
|
||||
00004 <span class="preprocessor"></span>
|
||||
00005 <span class="preprocessor">#ifdef HAVE_CONFIG_H</span>
|
||||
00006 <span class="preprocessor"></span><span class="preprocessor">#include <config.h></span>
|
||||
00007 <span class="preprocessor">#endif</span>
|
||||
00008 <span class="preprocessor"></span>
|
||||
00009 <span class="preprocessor">#include <sstream></span>
|
||||
00010
|
||||
00011 <span class="preprocessor">#include <utils/eoState.h></span>
|
||||
00012 <span class="preprocessor">#include <utils/eoUpdater.h></span>
|
||||
00013
|
||||
00014 <span class="keyword">using</span> <span class="keyword">namespace </span>std;
|
||||
00015
|
||||
<a name="l00016"></a><a class="code" href="classeo_timed_state_saver.html#a1">00016</a> <span class="keywordtype">void</span> <a class="code" href="classeo_timed_state_saver.html#a1">eoTimedStateSaver::operator()</a>(<span class="keywordtype">void</span>)
|
||||
00017 {
|
||||
00018 time_t now = time(0);
|
||||
00019
|
||||
00020 <span class="keywordflow">if</span> (now >= last_time + interval)
|
||||
00021 {
|
||||
00022 last_time = now;
|
||||
00023 ostringstream os;
|
||||
00024 os << prefix << (now - first_time) << <span class="charliteral">'.'</span> << extension;
|
||||
00025 state.<a class="code" href="classeo_state.html#a7">save</a>(os.str());
|
||||
00026 }
|
||||
00027 }
|
||||
00028
|
||||
00029 <span class="keywordtype">void</span> eoCountedStateSaver::doItNow(<span class="keywordtype">void</span>)
|
||||
00030 {
|
||||
00031 ostringstream os;
|
||||
00032 os << prefix << counter << <span class="charliteral">'.'</span> << extension;
|
||||
00033 state.<a class="code" href="classeo_state.html#a7">save</a>(os.str());
|
||||
00034 }
|
||||
00035
|
||||
<a name="l00036"></a><a class="code" href="classeo_counted_state_saver.html#a3">00036</a> <span class="keywordtype">void</span> <a class="code" href="classeo_counted_state_saver.html#a3">eoCountedStateSaver::operator()</a>(<span class="keywordtype">void</span>)
|
||||
00037 {
|
||||
00038 <span class="keywordflow">if</span> (++counter % interval == 0)
|
||||
00039 doItNow();
|
||||
00040 }
|
||||
00041
|
||||
00042 <span class="keywordtype">void</span> eoCountedStateSaver::lastCall(<span class="keywordtype">void</span>)
|
||||
00043 {
|
||||
00044 <span class="keywordflow">if</span> (saveOnLastCall)
|
||||
00045 doItNow();
|
||||
00046 }
|
||||
00047
|
||||
00048
|
||||
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Thu Oct 19 05:06:39 2006 for EO by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue