Commit 1bd98d28 authored by Dominik Charousset's avatar Dominik Charousset

Use lowercase strings for atom constants

parent 60c07ea1
...@@ -70,77 +70,74 @@ std::string to_string(const atom_constant<V>&) { ...@@ -70,77 +70,74 @@ std::string to_string(const atom_constant<V>&) {
template <atom_value V> template <atom_value V>
const atom_constant<V> atom_constant<V>::value = atom_constant<V>{}; const atom_constant<V> atom_constant<V>::value = atom_constant<V>{};
/// Generic 'ADD' atom for request operations. /// Used for request operations.
using add_atom = atom_constant<atom("ADD")>; using add_atom = atom_constant<atom("add")>;
/// Generic 'GET' atom for request operations. /// Used for request operations.
using get_atom = atom_constant<atom("GET")>; using get_atom = atom_constant<atom("get")>;
/// Generic 'PUT' atom for request operations. /// Used for request operations.
using put_atom = atom_constant<atom("PUT")>; using put_atom = atom_constant<atom("put")>;
/// Generic 'UPDATE' atom, e.g., or signalizing updates in a key-value store. /// Used for signalizing updates, e.g., in a key-value store.
using update_atom = atom_constant<atom("UPDATE")>; using update_atom = atom_constant<atom("update")>;
/// Generic 'DELETE' atom for request operations. /// Used for request operations.
using delete_atom = atom_constant<atom("DELETE")>; using delete_atom = atom_constant<atom("delete")>;
/// Generic 'OK' atom for response messages. /// Used for response messages.
using ok_atom = atom_constant<atom("OK")>; using ok_atom = atom_constant<atom("ok")>;
/// Marker 'SYS' atom for prefixing messages to a forwarding chain /// Used for triggering system-level message handling.
/// to address an otherwise transparent actor. using sys_atom = atom_constant<atom("sys")>;
using sys_atom = atom_constant<atom("SYS")>;
/// Generic 'JOIN' atom, e.g., for signaling group subscriptions. /// Used for signaling group subscriptions.
using join_atom = atom_constant<atom("JOIN")>; using join_atom = atom_constant<atom("join")>;
/// Generic 'LEAVE' atom, e.g., for signaling group unsubscriptions. /// Used for signaling group unsubscriptions.
using leave_atom = atom_constant<atom("LEAVE")>; using leave_atom = atom_constant<atom("leave")>;
/// Generic 'FORWARD' atom, e.g., for signaling an actor that it /// Used for signaling forwarding paths.
/// should drop the first element and forward the remainder to using forward_atom = atom_constant<atom("forward")>;
/// a list of predefined receivers.
using forward_atom = atom_constant<atom("FORWARD")>;
/// Generic 'FLUSH' atom, e.g., used by `aout`. /// Used for buffer management.
using flush_atom = atom_constant<atom("FLUSH")>; using flush_atom = atom_constant<atom("flush")>;
/// Generic 'REDIRECT' atom, e.g., used by `aout`. /// Used for I/O redirection.
using redirect_atom = atom_constant<atom("REDIRECT")>; using redirect_atom = atom_constant<atom("redirect")>;
/// Generic 'LINK' atom for link requests over network. /// Used for link requests over network.
using link_atom = atom_constant<atom("LINK")>; using link_atom = atom_constant<atom("link")>;
/// Generic 'UNLINK' atom for removing networked links. /// Used for removing networked links.
using unlink_atom = atom_constant<atom("UNLINK")>; using unlink_atom = atom_constant<atom("unlink")>;
/// Generic 'PUBLISH' atom, e.g., for publishing actors at a given port. /// Used for publishing actors at a given port.
using publish_atom = atom_constant<atom("PUBLISH")>; using publish_atom = atom_constant<atom("publish")>;
/// Generic 'UNPUBLISH' atom, e.g., for removing an actor/port mapping. /// Used for removing an actor/port mapping.
using unpublish_atom = atom_constant<atom("UNPUBLISH")>; using unpublish_atom = atom_constant<atom("unpublish")>;
/// Generic 'PUBLISH' atom, e.g., for publishing actors at a given port. /// Used for signalizing group membership.
using subscribe_atom = atom_constant<atom("SUBSCRIBE")>; using subscribe_atom = atom_constant<atom("subscribe")>;
/// Generic 'UNPUBLISH' atom, e.g., for removing an actor/port mapping. /// Used for withdrawing group membership.
using unsubscribe_atom = atom_constant<atom("UNSUBSCRIB")>; using unsubscribe_atom = atom_constant<atom("unsubscrib")>;
/// Generic 'CONNECT' atom, e.g., for connecting to remote CAF instances. /// Used for establishing network connections.
using connect_atom = atom_constant<atom("CONNECT")>; using connect_atom = atom_constant<atom("connect")>;
/// Generic 'OPEN' atom, e.g., for opening a port or file. /// Used for opening ports or files.
using open_atom = atom_constant<atom("OPEN")>; using open_atom = atom_constant<atom("open")>;
/// Generic 'CLOSE' atom, e.g., for closing a port or file. /// Used for closing ports or files.
using close_atom = atom_constant<atom("CLOSE")>; using close_atom = atom_constant<atom("close")>;
/// Generic 'SPAWN' atom, e.g., for spawning remote actors. /// Used for spawning remote actors.
using spawn_atom = atom_constant<atom("SPAWN")>; using spawn_atom = atom_constant<atom("spawn")>;
/// Atom to signalize an actor to migrate its state to another actor. /// Used for migrating actors to other nodes.
using migrate_atom = atom_constant<atom("MIGRATE")>; using migrate_atom = atom_constant<atom("migrate")>;
} // namespace caf } // namespace caf
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment