"Fossies" - the Fresh Open Source Software Archive

Member "portfwd-0.29/src/entry.hpp" (28 Jan 2004, 667 Bytes) of package /linux/privat/old/portfwd-0.29.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 /*
    2   entry.hpp
    3 
    4   $Id: entry.hpp,v 1.2 2004/01/28 19:14:10 evertonm Exp $
    5  */
    6 
    7 #ifndef ENTRY_HPP
    8 #define ENTRY_HPP
    9 
   10 #include "solve.h"
   11 #include "proto_map.hpp"
   12 
   13 class entry 
   14 {
   15 private:
   16   proto_t            proto;
   17   vector<proto_map*> *proto_list;
   18 
   19   void spawn(const proto_map *map) const;
   20 
   21 public:
   22   entry(proto_t pro, vector<proto_map*> *pro_l, bool fragile) 
   23     {
   24       proto      = pro;
   25       proto_list = pro_l;
   26 
   27       iterator<vector<proto_map*>,proto_map*> it(*proto_list);
   28       for (it.start(); it.cont(); it.next())
   29         it.get()->set_fragile(fragile);
   30     }
   31 
   32   void show() const;
   33 
   34   void serve() const;
   35 };
   36 
   37 #endif /* ENTRY_HPP */
   38 
   39 /* Eof: entry.hpp */