MPQC 2.3.1
MPQC_Physics_Units_Impl.hh
1//
2// File: MPQC_Physics_Units_Impl.hh
3// Symbol: MPQC.Physics_Units-v0.2
4// Symbol Type: class
5// Babel Version: 0.10.2
6// Description: Server-side implementation for MPQC.Physics_Units
7//
8// WARNING: Automatically generated; only changes within splicers preserved
9//
10// babel-version = 0.10.2
11//
12
13#ifndef included_MPQC_Physics_Units_Impl_hh
14#define included_MPQC_Physics_Units_Impl_hh
15
16#ifndef included_sidl_cxx_hh
17#include "sidl_cxx.hh"
18#endif
19#ifndef included_MPQC_Physics_Units_IOR_h
20#include "MPQC_Physics_Units_IOR.h"
21#endif
22//
23// Includes for all method dependencies.
24//
25#ifndef included_MPQC_Physics_Units_hh
26#include "MPQC_Physics_Units.hh"
27#endif
28#ifndef included_sidl_BaseInterface_hh
29#include "sidl_BaseInterface.hh"
30#endif
31#ifndef included_sidl_ClassInfo_hh
32#include "sidl_ClassInfo.hh"
33#endif
34
35
36// DO-NOT-DELETE splicer.begin(MPQC.Physics_Units._includes)
37#include <util/misc/units.h>
38// DO-NOT-DELETE splicer.end(MPQC.Physics_Units._includes)
39
40namespace MPQC {
41
46 // DO-NOT-DELETE splicer.begin(MPQC.Physics_Units._inherits)
47
57 // Put additional inheritance here...
58 // DO-NOT-DELETE splicer.end(MPQC.Physics_Units._inherits)
59 {
60
61 private:
62 // Pointer back to IOR.
63 // Use this to dispatch back through IOR vtable.
64 Physics_Units self;
65
66 // DO-NOT-DELETE splicer.begin(MPQC.Physics_Units._implementation)
68 public:
69 void set_units(const sc::Ref<sc::Units> &);
70 // DO-NOT-DELETE splicer.end(MPQC.Physics_Units._implementation)
71
72 private:
73 // private default constructor (required)
75 {}
76
77 public:
78 // sidl constructor (required)
79 // Note: alternate Skel constructor doesn't call addref()
80 // (fixes bug #275)
81 Physics_Units_impl( struct MPQC_Physics_Units__object * s ) : self(s,
82 true) { _ctor(); }
83
84 // user defined construction
85 void _ctor();
86
87 // virtual destructor (required)
88 virtual ~Physics_Units_impl() { _dtor(); }
89
90 // user defined destruction
91 void _dtor();
92
93 // static class initializer
94 static void _load();
95
96 public:
97
98
103 void
105 /* in */ const ::std::string& unitname
106 )
107 throw ()
108 ;
109
110
114 ::std::string
115 get_unit_name() throw ()
116 ;
117
121 double
123 /* in */ const ::std::string& unitname
124 )
125 throw ()
126 ;
127
128
132 double
134 /* in */ const ::std::string& unitname
135 )
136 throw ()
137 ;
138
139 }; // end class Physics_Units_impl
140
141} // end namespace MPQC
142
143// DO-NOT-DELETE splicer.begin(MPQC.Physics_Units._misc)
144// Put miscellaneous things here...
145// DO-NOT-DELETE splicer.end(MPQC.Physics_Units._misc)
146
147#endif
Symbol "MPQC.Physics_Units" (version 0.2)
Definition: MPQC_Physics_Units_Impl.hh:59
::std::string get_unit_name()
Returns the units as a human readable string.
double convert_to(const ::std::string &unitname)
Converts from self's units to the given unit name.
void initialize(const ::std::string &unitname)
Initializes the units as a human readable string options are "angstroms" or "bohr".
double convert_from(const ::std::string &unitname)
Converts to self's units from the given unit name.
A template class that maintains references counts.
Definition: ref.h:332

Generated at Wed Feb 28 2024 16:35:31 for MPQC 2.3.1 using the documentation package Doxygen 1.9.6.