| 1 | 
  | 
/* | 
| 2 | 
< | 
 * Copyright (c) 2005 The University of Notre Dame. All Rights Reserved. | 
| 2 | 
> | 
 * Copyright (c) 2009 The University of Notre Dame. All Rights Reserved. | 
| 3 | 
  | 
 * | 
| 4 | 
  | 
 * The University of Notre Dame grants you ("Licensee") a | 
| 5 | 
  | 
 * non-exclusive, royalty free, license to use, modify and | 
| 50 | 
  | 
#include <iostream> | 
| 51 | 
  | 
#include <fstream> | 
| 52 | 
  | 
#include <string> | 
| 53 | 
– | 
#include <string.h> | 
| 54 | 
– | 
#include <stdio.h> | 
| 55 | 
– | 
#include <stdlib.h> | 
| 56 | 
– | 
#include <unistd.h> | 
| 57 | 
– | 
#include <sys/types.h> | 
| 58 | 
– | 
#include <sys/stat.h> | 
| 59 | 
– | 
#include <algorithm> | 
| 60 | 
– | 
#include <vector> | 
| 53 | 
  | 
#include <map> | 
| 54 | 
+ | 
#include <vector> | 
| 55 | 
  | 
 | 
| 63 | 
– | 
#include "primitives/Atom.hpp" | 
| 56 | 
  | 
#include "brains/SimInfo.hpp" | 
| 57 | 
< | 
#include "brains/Thermo.hpp" | 
| 66 | 
< | 
#include "primitives/StuntDouble.hpp" | 
| 57 | 
> | 
#include "restraints/Restraint.hpp" | 
| 58 | 
  | 
 | 
| 59 | 
  | 
namespace oopse { | 
| 60 | 
  | 
 | 
| 61 | 
  | 
  class RestWriter{ | 
| 62 | 
  | 
     | 
| 63 | 
  | 
  public: | 
| 64 | 
< | 
    RestWriter( SimInfo* info ); | 
| 64 | 
> | 
    RestWriter(SimInfo* info, const std::string& filename, std::vector<Restraint*> restraints); | 
| 65 | 
  | 
    ~RestWriter(); | 
| 75 | 
– | 
     | 
| 76 | 
– | 
    void writeZAngFile(); | 
| 77 | 
– | 
     | 
| 78 | 
– | 
  private: | 
| 79 | 
– | 
    void writeZangle(std::ostream& finalOut); | 
| 66 | 
  | 
 | 
| 67 | 
+ | 
    void writeRest(std::vector<std::map<int, Restraint::RealPair> > restInfo); | 
| 68 | 
+ | 
     | 
| 69 | 
+ | 
  private:     | 
| 70 | 
  | 
    SimInfo* info_; | 
| 71 | 
< | 
    std::string outName_; | 
| 71 | 
> | 
    std::ofstream output_; | 
| 72 | 
  | 
  }; | 
| 73 | 
  | 
 | 
| 74 | 
  | 
} |