Česky
Kamil Dudka

GED 2006 (C++)

File detail

Name:Downloadpluginsupport_8h-source.html [Download]
Location: ged2006 > doc > classes
Size:11.0 KB
Last modification:2022-09-09 13:06

Source code

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>GED 2006: pluginsupport.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.2 -->
<div class="tabs">
  <ul>
    <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
    <li><a href="classes.html"><span>Classes</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>File&nbsp;Members</span></a></li>
  </ul>
</div>
<h1>pluginsupport.h</h1><a href="pluginsupport_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * File: pluginsuppport.h - Maintain plugins</span>
<a name="l00003"></a>00003 <span class="comment"> * Project: GED - bitmap editor (ICP)</span>
<a name="l00004"></a>00004 <span class="comment"> * Author: Kamil Dudka, xdudka00</span>
<a name="l00005"></a>00005 <span class="comment"> * Team: xdudka00, xfilak01, xhefka00, xhradi08</span>
<a name="l00006"></a>00006 <span class="comment"> * Created: 2006-04-06</span>
<a name="l00007"></a>00007 <span class="comment"> */</span>
<a name="l00008"></a>00008 
<a name="l00009"></a>00009 <span class="preprocessor">#ifndef PLUGINSUPPORT_H</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span><span class="preprocessor">#define PLUGINSUPPORT_H</span>
<a name="l00011"></a>00011 <span class="preprocessor"></span>
<a name="l00012"></a>00012 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00013"></a>00013 <span class="preprocessor">#include &lt;map&gt;</span>
<a name="l00014"></a>00014 
<a name="l00015"></a>00015 <span class="preprocessor">#include "<a class="code" href="framebuffer_8h.html">framebuffer.h</a>"</span>
<a name="l00016"></a>00016 
<a name="l00020"></a><a class="code" href="classPluginList.html">00020</a> <span class="keyword">class </span><a class="code" href="classPluginList.html">PluginList</a> {
<a name="l00021"></a>00021 <span class="keyword">public</span>:
<a name="l00022"></a>00022         <a class="code" href="classPluginList.html#db4a4ebeffefcad656c5d3631169f060">~PluginList</a> ();
<a name="l00023"></a>00023 
<a name="l00028"></a>00028         <span class="keyword">static</span> <a class="code" href="classPluginList.html">PluginList</a> *<a class="code" href="classPluginList.html#de90b20425ab0a7c1e16f8a48661982d">ptr</a>();
<a name="l00029"></a>00029 
<a name="l00034"></a>00034         <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classPluginList.html#66232652f8718b08f5888d4128310ff9">destroy</a>();
<a name="l00035"></a>00035 
<a name="l00041"></a>00041         <span class="keywordtype">void</span> <a class="code" href="classPluginList.html#ceed99aa0736b3bff74e7c49b34279fe">pluginDirLookup</a> (<span class="keyword">const</span> <span class="keywordtype">char</span> *szDirectory);
<a name="l00042"></a>00042 
<a name="l00051"></a>00051         <span class="keywordtype">void</span> <a class="code" href="classPluginList.html#5a574cae86efd0b0068424b1a893664b">callByName</a> (<a class="code" href="classFrameBuffer.html">FrameBuffer</a> &amp;fb, std::string pluginName, std::string args);
<a name="l00052"></a>00052 
<a name="l00056"></a><a class="code" href="structPluginList_1_1ErrPluginDir.html">00056</a>         <span class="keyword">struct </span><a class="code" href="structPluginList_1_1ErrPluginDir.html">ErrPluginDir</a> { };
<a name="l00057"></a>00057 
<a name="l00061"></a><a class="code" href="structPluginList_1_1ErrPluginNotFound.html">00061</a>         <span class="keyword">struct </span><a class="code" href="structPluginList_1_1ErrPluginNotFound.html">ErrPluginNotFound</a> { };
<a name="l00062"></a>00062 
<a name="l00066"></a><a class="code" href="structPluginList_1_1ErrPluginEC.html">00066</a>         <span class="keyword">struct </span><a class="code" href="structPluginList_1_1ErrPluginEC.html">ErrPluginEC</a> {
<a name="l00067"></a><a class="code" href="structPluginList_1_1ErrPluginEC.html#173716b1db4942ea7e4b6a9f90348257">00067</a>                 <span class="keywordtype">int</span> <a class="code" href="structPluginList_1_1ErrPluginEC.html#173716b1db4942ea7e4b6a9f90348257" title="Plugin exit-code.">iErrCode</a>;                   
<a name="l00068"></a>00068 
<a name="l00073"></a><a class="code" href="structPluginList_1_1ErrPluginEC.html#a109c81709ba922daae3f21ca4187fa0">00073</a>                 <a class="code" href="structPluginList_1_1ErrPluginEC.html#a109c81709ba922daae3f21ca4187fa0">ErrPluginEC</a> (<span class="keywordtype">int</span> i) { <a class="code" href="structPluginList_1_1ErrPluginEC.html#173716b1db4942ea7e4b6a9f90348257" title="Plugin exit-code.">iErrCode</a> = i; }
<a name="l00074"></a>00074         };
<a name="l00075"></a>00075 
<a name="l00076"></a><a class="code" href="classPluginList.html#91626c4b9cd9382a52c245d3fd9bcfb0">00076</a>         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classDocMenu.html">DocMenu</a>;                   
<a name="l00077"></a>00077 
<a name="l00078"></a>00078 <span class="keyword">protected</span>:
<a name="l00082"></a><a class="code" href="classPluginList.html#fdd19563304e731322d8fe7c8ffe7ff4">00082</a>         <a class="code" href="classPluginList.html#fdd19563304e731322d8fe7c8ffe7ff4">PluginList</a> () { }
<a name="l00083"></a>00083 
<a name="l00084"></a>00084 <span class="keyword">private</span>:
<a name="l00085"></a>00085         <span class="keyword">static</span> <a class="code" href="classPluginList.html">PluginList</a> *_instance;
<a name="l00086"></a>00086         std::map&lt;std::string, std::string&gt; _pluginNameMap;
<a name="l00087"></a>00087 
<a name="l00093"></a>00093         <span class="keywordtype">void</span> addPluginFile (std::string &amp;fileName);
<a name="l00094"></a>00094 
<a name="l00101"></a>00101         <span class="keywordtype">void</span> invokePlugin (<a class="code" href="classFrameBuffer.html">FrameBuffer</a> &amp;fb, std::string &amp;fileName, std::string &amp;args);
<a name="l00102"></a>00102 };
<a name="l00103"></a>00103 
<a name="l00104"></a>00104 
<a name="l00108"></a><a class="code" href="classSharedObject.html">00108</a> <span class="keyword">class </span><a class="code" href="classSharedObject.html">SharedObject</a> {
<a name="l00109"></a>00109 <span class="keyword">public</span>:
<a name="l00113"></a><a class="code" href="classSharedObject.html#444069c56bced391ac78ca5ab42654e2">00113</a>         <a class="code" href="classFrameBuffer.html">FrameBuffer</a> *<a class="code" href="classSharedObject.html#444069c56bced391ac78ca5ab42654e2">pFB</a>() { <span class="keywordflow">return</span> &amp;_fb; }
<a name="l00114"></a>00114 
<a name="l00118"></a><a class="code" href="classSharedObject.html#c47f2547fe697f44f7997a8f238df66f">00118</a>         <span class="keywordtype">int</span> <a class="code" href="classSharedObject.html#c47f2547fe697f44f7997a8f238df66f">shmBitmap</a>() { <span class="keywordflow">return</span> _shmBitmap; }
<a name="l00119"></a>00119 
<a name="l00125"></a>00125         <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="classSharedObject.html#236aa9dd603e636f8eefc598f5ca457c">create</a> (<a class="code" href="classFrameBuffer.html">FrameBuffer</a> &amp;fb);
<a name="l00126"></a>00126 
<a name="l00131"></a>00131         <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classSharedObject.html#a31e5a0aeb969df595c4a7af1a4f33b3">destroy</a> (<span class="keywordtype">int</span> shmID);
<a name="l00132"></a>00132 
<a name="l00138"></a>00138         <span class="keyword">static</span> <a class="code" href="classSharedObject.html">SharedObject</a> *<a class="code" href="classSharedObject.html#64df856e91692b9d602e3f875dbed889">attach</a> (<span class="keywordtype">int</span> shmID);
<a name="l00139"></a>00139 
<a name="l00144"></a>00144         <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classSharedObject.html#0a414ab77ef0a03d5221479319813e5c">detach</a> (<a class="code" href="classSharedObject.html">SharedObject</a> *addr);
<a name="l00145"></a>00145 
<a name="l00150"></a>00150         <span class="keywordtype">void</span> <a class="code" href="classSharedObject.html#034479606c674cca631becc33f31ae1e">bitmapAlloc</a> (<a class="code" href="structBoxSize.html">BoxSize</a> &amp;size);
<a name="l00151"></a>00151 
<a name="l00155"></a>00155         <span class="keywordtype">void</span> <a class="code" href="classSharedObject.html#e63f2cd402837491378e76bcaf13197c">bitmapFree</a> ();
<a name="l00156"></a>00156 
<a name="l00161"></a>00161         <a class="code" href="structPixel.html">Pixel</a> *<a class="code" href="classSharedObject.html#0e9028adb4928c00b32350b27418eb31">bitmapAttach</a> ();
<a name="l00162"></a>00162 
<a name="l00167"></a>00167         <span class="keywordtype">void</span> <a class="code" href="classSharedObject.html#0a414ab77ef0a03d5221479319813e5c">detach</a> (<a class="code" href="structPixel.html">Pixel</a> *addr);
<a name="l00168"></a>00168 
<a name="l00169"></a>00169 <span class="keyword">private</span>:
<a name="l00170"></a>00170         <a class="code" href="classFrameBuffer.html">FrameBuffer</a> _fb;        
<a name="l00171"></a>00171         <span class="keywordtype">int</span> _shmBitmap;         
<a name="l00172"></a>00172 
<a name="l00176"></a>00176         <a class="code" href="classSharedObject.html">SharedObject</a>();
<a name="l00177"></a>00177 };
<a name="l00178"></a>00178 
<a name="l00182"></a><a class="code" href="classSharedFrameBuffer.html">00182</a> <span class="keyword">class </span><a class="code" href="classSharedFrameBuffer.html">SharedFrameBuffer</a>: <span class="keyword">public</span> <a class="code" href="classFrameBuffer.html">FrameBuffer</a> {
<a name="l00183"></a>00183 <span class="keyword">public</span>:
<a name="l00188"></a>00188         <a class="code" href="classSharedFrameBuffer.html#003fab11f1ba69a8fe4d8673f0500f67">SharedFrameBuffer</a> (<span class="keywordtype">int</span> shmID);
<a name="l00189"></a>00189 
<a name="l00194"></a>00194         <span class="keywordtype">void</span> <a class="code" href="classSharedFrameBuffer.html#ebb6671042084d6def11781a61641392">commit</a> (<span class="keywordtype">int</span> shmID);
<a name="l00195"></a>00195 };
<a name="l00196"></a>00196 
<a name="l00197"></a>00197 <span class="preprocessor">#endif // PLUGINSUPPORT_H</span>
</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Wed Aug 29 00:01:04 2007 for GED 2006 by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.2 </small></address>
</body>
</html>