<!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>C++ API frePPLe: frepple::CommandDeleteOperationPlan Class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> <link href="../styles.css" rel="stylesheet" type="text/css"> </head> <body> <div id="container"> <div id="menubar"> <div id="logo" align="center"> <br/><img src='../frepple.bmp' alt="frepple" /><br/> <a href='http://www.frepple.com/'> <strong>a Free<br/>Production Planning<br/>Library</strong> </a> </div> <div id="menu"> <br/> <h3><a href='../Main/HomePage.html'>Main</a></h3> <h3><a href='../UI/Main.html'>User Manual</a></h3> <h3><a href='../Tutorial/Main.html'>Tutorial</a></h3> <h3><a href='../Frepple/Main.html'>Reference Manual</a></h3> <h3><a href='../Main/FAQ.html'>FAQ</a></h3> <h3><a href='index.html'>C++ API</a></h3> <br/> </div> </div> <div id="content"> <br/> <!-- 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="pages.html"><span>Related Pages</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="a00256.html">frepple</a>::<a class="el" href="a00027.html">CommandDeleteOperationPlan</a> </div> </div> <div class="contents"> <h1>frepple::CommandDeleteOperationPlan Class Reference</h1><!-- doxytag: class="frepple::CommandDeleteOperationPlan" --><!-- doxytag: inherits="frepple::utils::Command" --> <p>This command is used to delete an operationplan. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="a00218_source.html">model.h</a>></code></p> <div class="dynheader"> Inheritance diagram for frepple::CommandDeleteOperationPlan:</div> <div class="dynsection"> <div class="center"><img src="a00386.png" border="0" usemap="#frepple_1_1_command_delete_operation_plan_inherit__map" alt="Inheritance graph"/></div> <map name="frepple_1_1_command_delete_operation_plan_inherit__map" id="frepple_1_1_command_delete_operation_plan_inherit__map"> <area shape="rect" id="node2" href="a00025.html" title="Abstract base class for all commands." alt="" coords="49,6,207,34"/> </map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <p><a href="a00387.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="a00027.html#aaf75c77ef78b3734679cbd955bdff40e">CommandDeleteOperationPlan</a> (<a class="el" href="a00125.html">OperationPlan</a> *o)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00027.html#a9b07a36fc4ddeb28d7e58462a12314bf">execute</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00027.html#acc2a278edbc705ac767a3d8a72681fe4">undo</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="a00027.html#a7a00a048a859c2608c71509e0f6e61f5">undoable</a> () const </td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00027.html#abf0db666049bdb7e458baee134665030">~CommandDeleteOperationPlan</a> ()</td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>This command is used to delete an operationplan. </p> <p>The operationplan will be deleted when the command is created. </p> <p>Definition at line <a class="el" href="a00218_source.html#l05471">5471</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="aaf75c77ef78b3734679cbd955bdff40e"></a><!-- doxytag: member="frepple::CommandDeleteOperationPlan::CommandDeleteOperationPlan" ref="aaf75c77ef78b3734679cbd955bdff40e" args="(OperationPlan *o)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">frepple::CommandDeleteOperationPlan::CommandDeleteOperationPlan </td> <td>(</td> <td class="paramtype"><a class="el" href="a00125.html">OperationPlan</a> * </td> <td class="paramname"> <em>o</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Constructor.<br/> Unlike most other commands the constructor already executes the deletion. </p> <p>Definition at line <a class="el" href="a00192_source.html#l00448">448</a> of file <a class="el" href="a00192_source.html">model/actions.cpp</a>.</p> </div> </div> <a class="anchor" id="abf0db666049bdb7e458baee134665030"></a><!-- doxytag: member="frepple::CommandDeleteOperationPlan::~CommandDeleteOperationPlan" ref="abf0db666049bdb7e458baee134665030" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">frepple::CommandDeleteOperationPlan::~CommandDeleteOperationPlan </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="a00218_source.html#l05481">5481</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a9b07a36fc4ddeb28d7e58462a12314bf"></a><!-- doxytag: member="frepple::CommandDeleteOperationPlan::execute" ref="a9b07a36fc4ddeb28d7e58462a12314bf" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void frepple::CommandDeleteOperationPlan::execute </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td><code> [inline, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>This method is used to actually execute the action.<br/> A couple of notes on how this method should be implemented by the subclasses:</p> <ul> <li>Calling the method multiple times is harmless and results in the same state change as calling it only once. </li> </ul> <p>Implements <a class="el" href="a00025.html#acc6f6bc4f9a9ce8cfa2de41fd12f3024">frepple::utils::Command</a>.</p> <p>Definition at line <a class="el" href="a00218_source.html#l05478">5478</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p> </div> </div> <a class="anchor" id="acc2a278edbc705ac767a3d8a72681fe4"></a><!-- doxytag: member="frepple::CommandDeleteOperationPlan::undo" ref="acc2a278edbc705ac767a3d8a72681fe4" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void frepple::CommandDeleteOperationPlan::undo </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>This method is undoing the state change of the <a class="el" href="a00027.html#a9b07a36fc4ddeb28d7e58462a12314bf">execute()</a> method.<br/> Reversing the action is not possible for all commands. Command subclasses should override the <a class="el" href="a00027.html#acc2a278edbc705ac767a3d8a72681fe4">undo()</a> and <a class="el" href="a00027.html#a7a00a048a859c2608c71509e0f6e61f5">undoable()</a> method in case they are reversible.<br/> A couple of notes on how this method should be implemented by the subclasses:</p> <ul> <li>Calling the <a class="el" href="a00027.html#acc2a278edbc705ac767a3d8a72681fe4">undo()</a> method is harmless if the <a class="el" href="a00027.html#a9b07a36fc4ddeb28d7e58462a12314bf">execute()</a> hasn't been called yet.</li> <li>Calling the <a class="el" href="a00027.html#acc2a278edbc705ac767a3d8a72681fe4">undo()</a> method multiple times is harmless and results in the same state change as calling it only once. </li> </ul> <p>Reimplemented from <a class="el" href="a00025.html#a908c201250c653dad3c93f1df886b3fc">frepple::utils::Command</a>.</p> <p>Definition at line <a class="el" href="a00192_source.html#l00474">474</a> of file <a class="el" href="a00192_source.html">model/actions.cpp</a>.</p> </div> </div> <a class="anchor" id="a7a00a048a859c2608c71509e0f6e61f5"></a><!-- doxytag: member="frepple::CommandDeleteOperationPlan::undoable" ref="a7a00a048a859c2608c71509e0f6e61f5" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool frepple::CommandDeleteOperationPlan::undoable </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td> const<code> [inline, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns true if the execution of this command can be undone. </p> <p>Reimplemented from <a class="el" href="a00025.html#aebd560086e9d6e041a9d5d0fd3d38364">frepple::utils::Command</a>.</p> <p>Definition at line <a class="el" href="a00218_source.html#l05480">5480</a> of file <a class="el" href="a00218_source.html">model.h</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="a00218_source.html">model.h</a></li> <li><a class="el" href="a00192_source.html">model/actions.cpp</a></li> </ul> </div> <hr size="1"/><address style="align: right;"><small>Documentation generated for frePPLe by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"/></a></small></address> </div> </div> </body> </html>