File: ExecutiveLoad.h

package info (click to toggle)
pymol 2.5.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 42,288 kB
  • sloc: cpp: 476,472; python: 76,538; ansic: 29,510; javascript: 6,792; sh: 47; makefile: 24
file content (40 lines) | stat: -rw-r--r-- 1,039 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#pragma once

/**
 * Copyable arguments container for ExecutiveLoad
 */
struct ExecutiveLoadArgs {
  std::string fname;
  std::string content;
  cLoadType_t content_format;
  std::string object_name;
  int state;
  int zoom;
  int discrete;
  int finish;
  int multiplex;
  int quiet;
  std::string plugin;
  std::string object_props;
  std::string atom_props;
  bool mimic;
  int plugin_mask = 0;
};

/**
 * Prepare arguments for ExecutiveLoad
 */
pymol::Result<ExecutiveLoadArgs> ExecutiveLoadPrepareArgs(PyMOLGlobals* G,
    pymol::null_safe_zstring_view fname, const char* content,
    int content_length, cLoadType_t content_format,
    const char* object_name_proposed, int state, int zoom, int discrete,
    int finish, int multiplex, int quiet, const char* plugin_arg,
    const char* object_props, const char* atom_props, bool mimic = false);

/**
 * Implementation of ExecutiveLoad
 *
 * @param args Prepared arguments
 * @return true on success
 */
pymol::Result<> ExecutiveLoad(PyMOLGlobals* G, ExecutiveLoadArgs const& args);