• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

sst/core/stopAction.h

00001 // Copyright 2009-2010 Sandia Corporation. Under the terms
00002 // of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S.
00003 // Government retains certain rights in this software.
00004 // 
00005 // Copyright (c) 2009-2010, Sandia Corporation
00006 // All rights reserved.
00007 // 
00008 // This file is part of the SST software package. For license
00009 // information, see the LICENSE file in the top level directory of the
00010 // distribution.
00011 
00012 
00013 #ifndef _SST_STOPACTION_H
00014 #define _SST_STOPACTION_H
00015 
00016 #include <sst/core/action.h>
00017 
00018 namespace SST {
00019 
00020 class StopAction : public Action
00021 {
00022 public:
00023     StopAction() {
00024         setPriority(1);
00025     }
00026 
00027     void execute() {
00028         endSimulation();
00029     }
00030     
00031     friend class boost::serialization::access;
00032     template<class Archive>
00033     void
00034     serialize(Archive & ar, const unsigned int version )
00035     {
00036         ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(Action);
00037     }
00038 };
00039 
00040 } // namespace SST
00041 
00042 #endif

Generated on Fri Oct 22 2010 11:02:13 for SST by  doxygen 1.7.1