Rosetta
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
snugdock.cc
Go to the documentation of this file.
1 // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2 // vi: set ts=2 noet:
3 //
4 // (c) Copyright Rosetta Commons Member Institutions.
5 // (c) This file is part of the Rosetta software suite and is made available under license.
6 // (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
7 // (c) For more information, see http://www.rosettacommons.org. Questions about this can be
8 // (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
9 
10 /// @file src/apps/pilot/jianqing/snugdock.cc
11 /// @brief
12 /// @author Jianqing Xu (xubest@gmail.com)
13 /// @author Brian D. Weitzner (brian.weitzner@gmail.com)
14 
15 
16 #include <protocols/antibody/snugdock/SnugDockProtocol.hh>
17 #include <protocols/jd2/JobDistributor.hh>
18 #include <protocols/jd2/util.hh>
20 //#include <utility/exit.hh>
21 
22 #include <devel/init.hh>
23 
24 int
25 main( int argc, char * argv [] )
26 {
27  try {
28  using namespace protocols::antibody;
29  using namespace protocols::jd2;
30 
33 
34  // initialize core
35  devel::init(argc, argv);
36 
37  SnugDockProtocolOP snugdock( new SnugDockProtocol );
38  JobDistributor::get_instance()->go( snugdock );
39 
40  } catch ( utility::excn::EXCN_Base const & e ) {
41  std::cerr << "caught exception " << e.msg() << std::endl;
42  return -1;
43  }
44  return 0;
45 }
BooleanOptionKey const antibody
ocstream cerr(std::cerr)
Wrapper around std::cerr.
Definition: ocstream.hh:290
virtual std::string const msg() const
Definition: EXCN_Base.hh:70
void register_options()
void init(int argc, char *argv[])
Command line init() version.
Definition: init.cc:23
common derived classes for thrown exceptions
int main(int argc, char *argv[])
Definition: snugdock.cc:25
BooleanOptionKey const jd2