execution_common_helper.h
1 // Copyright (C) 2013-2016 DNAnexus, Inc.
2 //
3 // This file is part of dx-toolkit (DNAnexus platform client libraries).
4 //
5 // Licensed under the Apache License, Version 2.0 (the "License"); you may
6 // not use this file except in compliance with the License. You may obtain a
7 // copy of the License at
8 //
9 // http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 // License for the specific language governing permissions and limitations
15 // under the License.
16 
17 #ifndef __EXECUTION_COMMON_HELPER_H__
18 #define __EXECUTION_COMMON_HELPER_H__
19 #include "dxjson/dxjson.h"
20 #include "../exceptions.h"
21 
22 namespace dx {
25  void appendDependsOnAndInstanceType(dx::JSON &input,
26  const std::vector<std::string> &depends_on=std::vector<std::string>(),
27  const std::string fn_name="main",
28  const dx::JSON &instance_type=dx::JSON(dx::JSON_NULL));
29 }
30 #endif
An executable object that can be published for others to discover.
Definition: api.cc:7