Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
4d8aa4f0
Commit
4d8aa4f0
authored
Dec 02, 2011
by
neverlord
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix
parent
754dbbe1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
1 deletion
+33
-1
cppa/detail/list_member.hpp
cppa/detail/list_member.hpp
+3
-0
src/string_serialization.cpp
src/string_serialization.cpp
+6
-0
src/uniform_type_info.cpp
src/uniform_type_info.cpp
+24
-1
No files found.
cppa/detail/list_member.hpp
View file @
4d8aa4f0
...
...
@@ -28,6 +28,7 @@ struct list_member_util
{
list
.
push_back
(
get
<
value_type
>
(
d
->
read_value
(
vptype
)));
}
d
->
end_sequence
();
}
};
...
...
@@ -49,6 +50,7 @@ struct list_member_util<List, false>
{
m_value_type
->
serialize
(
&
(
*
i
),
s
);
}
s
->
end_sequence
();
}
void
operator
()(
List
&
list
,
deserializer
*
d
)
const
...
...
@@ -61,6 +63,7 @@ struct list_member_util<List, false>
m_value_type
->
deserialize
(
&
tmp
,
d
);
list
.
push_back
(
tmp
);
}
d
->
end_sequence
();
}
};
...
...
src/string_serialization.cpp
View file @
4d8aa4f0
...
...
@@ -180,6 +180,11 @@ class string_deserializer : public deserializer
error
+=
"' found '"
;
error
+=
*
m_pos
;
error
+=
"'"
;
if
(
m_open_objects
.
empty
()
==
false
)
{
error
+=
"during deserialization an instance of "
;
error
+=
m_open_objects
.
top
();
}
throw_malformed
(
error
);
}
++
m_pos
;
...
...
@@ -306,6 +311,7 @@ class string_deserializer : public deserializer
void
end_sequence
()
{
integrity_check
();
consume
(
'}'
);
}
...
...
src/uniform_type_info.cpp
View file @
4d8aa4f0
...
...
@@ -124,6 +124,28 @@ void deserialize_nullptr(deserializer* source)
source
->
end_object
();
}
class
void_type_tinfo
:
public
util
::
abstract_uniform_type_info
<
void_type
>
{
protected:
void
serialize
(
const
void
*
,
serializer
*
sink
)
const
{
serialize_nullptr
(
sink
);
}
void
deserialize
(
void
*
,
deserializer
*
source
)
const
{
std
::
string
cname
=
source
->
seek_object
();
if
(
cname
!=
name
())
{
throw
std
::
logic_error
(
"wrong type name found"
);
}
deserialize_nullptr
(
source
);
}
};
class
actor_ptr_tinfo
:
public
util
::
abstract_uniform_type_info
<
actor_ptr
>
{
...
...
@@ -645,7 +667,8 @@ class uniform_type_info_map_helper
insert
(
d
,
new
channel_ptr_tinfo
,
{
raw_name
<
channel_ptr
>
()
});
//insert(d, new message_tinfo, { raw_name<any_tuple>() });
insert
(
d
,
new
atom_value_tinfo
,
{
raw_name
<
atom_value
>
()
});
insert
(
d
,
new
addr_msg_tinfo
,
{
raw_name
<
detail
::
addressed_message
>
()});
insert
(
d
,
new
addr_msg_tinfo
,
{
raw_name
<
detail
::
addressed_message
>
()
});
insert
(
d
,
new
void_type_tinfo
,
{
raw_name
<
void_type
>
()
});
insert
<
float
>
(
d
);
if
(
sizeof
(
double
)
==
sizeof
(
long
double
))
{
...
...
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