<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>The Gnome Chemistry Utils: gcp::AddOperation Class Reference</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.6.1 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="dirs.html"><span>Directories</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="namespacegcp.html">gcp</a>::<a class="el" href="classgcp_1_1AddOperation.html">AddOperation</a> </div> </div> <div class="contents"> <h1>gcp::AddOperation Class Reference</h1><!-- doxytag: class="gcp::AddOperation" --><!-- doxytag: inherits="gcp::Operation" --> <p><code>#include <<a class="el" href="operation_8h_source.html">gcp/operation.h</a>></code></p> <div class="dynheader"> Inheritance diagram for gcp::AddOperation:</div> <div class="dynsection"> <div class="center"> <img src="classgcp_1_1AddOperation.gif" usemap="#gcp::AddOperation_map" alt=""/> <map id="gcp::AddOperation_map" name="gcp::AddOperation_map"> <area href="classgcp_1_1Operation.html" alt="gcp::Operation" shape="rect" coords="0,0,118,24"/> </map> </div> </div> <p><a href="classgcp_1_1AddOperation-members.html">List of all members.</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1AddOperation.html#a9c0f063122a64b35183c7269c6373106">AddOperation</a> (<a class="el" href="classgcp_1_1Document.html">gcp::Document</a> *pDoc, unsigned long ID)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1AddOperation.html#ad61d355fff6d754064e55c74fe907d06">Undo</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgcp_1_1AddOperation.html#aaf12ab044554080715aecc3e5bc3082c">Redo</a> ()</td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p><a class="el" href="classgcp_1_1Operation.html">Operation</a> class representing objects additions. </p> <p>Definition at line <a class="el" href="operation_8h_source.html#l00156">156</a> of file <a class="el" href="operation_8h_source.html">operation.h</a>.</p> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a9c0f063122a64b35183c7269c6373106"></a><!-- doxytag: member="gcp::AddOperation::AddOperation" ref="a9c0f063122a64b35183c7269c6373106" args="(gcp::Document *pDoc, unsigned long ID)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">gcp::AddOperation::AddOperation </td> <td>(</td> <td class="paramtype"><a class="el" href="classgcp_1_1Document.html">gcp::Document</a> * </td> <td class="paramname"> <em>pDoc</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">unsigned long </td> <td class="paramname"> <em>ID</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>pDoc</em> </td><td>a document. </td></tr> <tr><td valign="top"></td><td valign="top"><em>ID</em> </td><td>a unique operation ID for the document and the session.</td></tr> </table> </dd> </dl> <p>Creates a new <a class="el" href="classgcp_1_1AddOperation.html">AddOperation</a>. Operations should always created by calls to <a class="el" href="classgcp_1_1Document.html#a9929825e838d4b3e16a033e9393b4fa6">Document::GetNewOperation()</a>. </p> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="aaf12ab044554080715aecc3e5bc3082c"></a><!-- doxytag: member="gcp::AddOperation::Redo" ref="aaf12ab044554080715aecc3e5bc3082c" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void gcp::AddOperation::Redo </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Redo the additions represented by this operation. </p> <p>Implements <a class="el" href="classgcp_1_1Operation.html#a56848b25e63e60453b3273a12eed901e">gcp::Operation</a>.</p> </div> </div> <a class="anchor" id="ad61d355fff6d754064e55c74fe907d06"></a><!-- doxytag: member="gcp::AddOperation::Undo" ref="ad61d355fff6d754064e55c74fe907d06" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void gcp::AddOperation::Undo </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Undo the additions represented by this operation. </p> <p>Implements <a class="el" href="classgcp_1_1Operation.html#a28f5207dfb9c9f0f586f98d687f12600">gcp::Operation</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="operation_8h_source.html">operation.h</a></li> </ul> </div> <hr size="1"/><address style="text-align: right;"><small>Generated on Sun Sep 6 18:33:54 2009 for The Gnome Chemistry Utils by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address> </body> </html>