Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
60968dff
Commit
60968dff
authored
Sep 24, 2010
by
Peter Eastman
Browse files
Fixed compilation errors and warnings
parent
73f5921c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
serialization/src/SerializationProxy.cpp
serialization/src/SerializationProxy.cpp
+1
-1
serialization/src/SerializationProxyRegistration.cpp
serialization/src/SerializationProxyRegistration.cpp
+1
-1
serialization/src/SystemProxy.cpp
serialization/src/SystemProxy.cpp
+1
-1
No files found.
serialization/src/SerializationProxy.cpp
View file @
60968dff
...
...
@@ -52,7 +52,7 @@ void SerializationProxy::registerProxy(const type_info& type, const Serializatio
}
const
SerializationProxy
&
SerializationProxy
::
getProxy
(
const
string
&
typeName
)
{
map
<
string
,
const
SerializationProxy
*>::
const_iterator
iter
=
proxiesByName
.
find
(
typeName
);
map
<
const
string
,
const
SerializationProxy
*>::
const_iterator
iter
=
proxiesByName
.
find
(
typeName
);
if
(
iter
==
proxiesByName
.
end
())
throw
OpenMMException
(
"There is no serialization proxy registered for type '"
+
string
(
typeName
)
+
"'"
);
return
*
iter
->
second
;
...
...
serialization/src/SerializationProxyRegistration.cpp
View file @
60968dff
...
...
@@ -57,7 +57,7 @@
#if defined(WIN32)
#include <windows.h>
extern
"C"
void
initOpenMMPlugin
();
extern
"C"
void
registerSerializationProxies
();
BOOL
WINAPI
DllMain
(
HANDLE
hModule
,
DWORD
ul_reason_for_call
,
LPVOID
lpReserved
)
{
if
(
ul_reason_for_call
==
DLL_PROCESS_ATTACH
)
registerSerializationProxies
();
...
...
serialization/src/SystemProxy.cpp
View file @
60968dff
...
...
@@ -84,7 +84,7 @@ void* SystemProxy::deserialize(const SerializationNode& node) const {
const
SerializationNode
&
constraints
=
node
.
getChildNode
(
"Constraints"
);
for
(
int
i
=
0
;
i
<
(
int
)
constraints
.
getChildren
().
size
();
i
++
)
{
const
SerializationNode
&
constraint
=
constraints
.
getChildren
()[
i
];
system
->
addConstraint
(
constraint
.
get
Double
Property
(
"p1"
),
constraint
.
get
Double
Property
(
"p2"
),
constraint
.
get
Double
Property
(
"d"
));
system
->
addConstraint
(
constraint
.
get
Int
Property
(
"p1"
),
constraint
.
get
Int
Property
(
"p2"
),
constraint
.
get
Int
Property
(
"d"
));
}
const
SerializationNode
&
forces
=
node
.
getChildNode
(
"Forces"
);
for
(
int
i
=
0
;
i
<
(
int
)
forces
.
getChildren
().
size
();
i
++
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment