Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TaskOperation.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 core/pack/task/operation/TaskOperation.cc
11 /// @brief An operation to perform on a packer task --
12 /// usually, by a PackerTaskFactory right after the task's construction
13 /// @author Andrew Leaver-Fay (leaverfa@email.unc.edu)
14 
15 // only generalized base classes go here. TaskOperations that actually do things do not belong here.
16 
17 // Unit Headers
19 
20 #include <basic/Tracer.hh>
21 
22 // Utility Headers
23 #include <utility/tag/Tag.hh>
24 
25 #include <utility/vector0.hh>
26 #include <utility/vector1.hh>
27 
28 
29 namespace core {
30 namespace pack {
31 namespace task {
32 namespace operation {
33 
34 #ifdef USELUA
35 void lregister_TaskOperation( lua_State * lstate ) {
36  luabind::module(lstate, "core")
37  [
38  luabind::namespace_("pack")
39  [
40  luabind::namespace_("task")
41  [
42  luabind::namespace_("operation")
43  [
44  luabind::class_<TaskOperation>("TaskOperation")
45  ]
46  ]
47  ]
48  ];
49 }
50 #endif
51 
52 static basic::Tracer TR("core.pack.task.operation.TaskOperation");
53 
55 
57 {
58  TR << "TaskOperation::parse_tag method called with no effect";
59  if ( tag.get() != NULL ) TR << " for Tag with type " << tag->getName();
60  TR << ". Probably due to (un/mis)implemented virtual method in derived class." << std::endl;
61 }
62 
63 void TaskOperation::parse_def( utility::lua::LuaObject const & /*def*/ ) {
64  utility_exit_with_message("This TaskOperation has not implemented parse_def()");
65 }
66 
67 } //namespace operation
68 } //namespace task
69 } //namespace pack
70 } //namespace core