source: ThirdParty/mpqc_open/src/lib/util/psi3/libpsio/psio.h@ 00f983

Action_Thermostats Add_AtomRandomPerturbation Add_RotateAroundBondAction Add_SelectAtomByNameAction Adding_Graph_to_ChangeBondActions Adding_MD_integration_tests Adding_StructOpt_integration_tests AutomationFragmentation_failures Candidate_v1.6.0 Candidate_v1.6.1 ChangeBugEmailaddress ChangingTestPorts ChemicalSpaceEvaluator Combining_Subpackages Debian_Package_split Debian_package_split_molecuildergui_only Disabling_MemDebug Docu_Python_wait EmpiricalPotential_contain_HomologyGraph_documentation Enable_parallel_make_install Enhance_userguide Enhanced_StructuralOptimization Enhanced_StructuralOptimization_continued Example_ManyWaysToTranslateAtom Exclude_Hydrogens_annealWithBondGraph FitPartialCharges_GlobalError Fix_ChronosMutex Fix_StatusMsg Fix_StepWorldTime_single_argument Fix_Verbose_Codepatterns ForceAnnealing_goodresults ForceAnnealing_oldresults ForceAnnealing_tocheck ForceAnnealing_with_BondGraph ForceAnnealing_with_BondGraph_continued ForceAnnealing_with_BondGraph_continued_betteresults ForceAnnealing_with_BondGraph_contraction-expansion GeometryObjects Gui_displays_atomic_force_velocity IndependentFragmentGrids_IntegrationTest JobMarket_RobustOnKillsSegFaults JobMarket_StableWorkerPool JobMarket_unresolvable_hostname_fix ODR_violation_mpqc_open PartialCharges_OrthogonalSummation PythonUI_with_named_parameters QtGui_reactivate_TimeChanged_changes Recreated_GuiChecks RotateToPrincipalAxisSystem_UndoRedo StoppableMakroAction Subpackage_levmar Subpackage_vmg ThirdParty_MPQC_rebuilt_buildsystem TremoloParser_IncreasedPrecision TremoloParser_MultipleTimesteps Ubuntu_1604_changes stable
Last change on this file since 00f983 was 860145, checked in by Frederik Heber <heber@…>, 8 years ago

Merge commit '0b990dfaa8c6007a996d030163a25f7f5fc8a7e7' as 'ThirdParty/mpqc_open'

  • Property mode set to 100644
File size: 2.5 KB
Line 
1#ifndef util_class_psi3_libpsio_psio_h_
2#define util_class_psi3_libpsio_psio_h_
3
4#include <stdio.h>
5#include <util/psi3/libpsio/psio.gbl>
6
7namespace psi3 {
8namespace libpsio {
9
10/* A convenient address initialization struct */
11extern psio_address PSIO_ZERO;
12
13/* Library state variable */
14extern int _psi3_libpsio_state_;
15
16#ifdef PSIO_STATS
17extern ULI *psio_readlen;
18extern ULI *psio_writlen;
19#endif
20
21int psio_init(void);
22int psio_state(void);
23int psio_done(void);
24void psio_error(unsigned int unit, unsigned int errval);
25int psio_open(unsigned int unit, int status);
26int psio_close(unsigned int unit, int keep);
27
28unsigned int psio_get_numvols(unsigned int unit);
29unsigned int psio_get_numvols_default(void);
30int psio_get_volpath(unsigned int unit, unsigned int volume, char *path);
31int psio_get_volpath_default(unsigned int volume, char *path);
32int psio_get_filename(unsigned int unit, char *name);
33int psio_get_filename_default(char *name);
34psio_address psio_get_address(psio_address start, ULI shift);
35psio_address psio_get_global_address(psio_address entry_start,
36 psio_address rel_address);
37int psio_volseek(psio_vol *vol, ULI page, ULI offset, ULI numvols);
38ULI psio_get_length(psio_address sadd, psio_address eadd);
39psio_address psio_get_entry_end(unsigned int unit, char *key);
40
41int psio_tocwrite(unsigned int unit);
42int psio_tocread(unsigned int unit);
43void psio_tocprint(unsigned int unit, FILE *output);
44psio_tocentry *psio_tocscan(unsigned int unit, char *key);
45psio_tocentry *psio_toclast(unsigned int unit);
46unsigned int psio_toclen(unsigned int unit);
47int psio_tocdel(unsigned int unit, char *key);
48int psio_tocclean(unsigned int unit, char *key);
49void psio_tocrename(unsigned int unit, char *key, char *newkey);
50
51int psio_write(unsigned int unit, char *key, char *buffer, ULI size,
52 psio_address sadd, psio_address *eadd);
53int psio_read(unsigned int unit, char *key, char *buffer, ULI size,
54 psio_address sadd, psio_address *eadd);
55int psio_write_entry(unsigned int unit, char *key, char *buffer, ULI size);
56int psio_read_entry(unsigned int unit, char *key, char *buffer, ULI size);
57int psio_write_block(unsigned int unit, char *key, char *buffer, ULI blksiz,
58 ULI start_blk, ULI end_blk);
59int psio_read_block(unsigned int unit, char *key, char *buffer, ULI blksiz,
60 ULI start_blk, ULI end_blk);
61int psio_rw(unsigned int unit, char *buffer, psio_address address, ULI size, int wrt);
62
63int psio_open_check(unsigned int unit);
64
65}
66}
67
68#endif /* #ifndef PSIO_H */
Note: See TracBrowser for help on using the repository browser.