1#ifndef VISTLE_AVAILABLEMODULE_H
2#define VISTLE_AVAILABLEMODULE_H
21 friend class ModuleBaseMessage;
25 Key(
int hub,
const std::string &name);
29 AvailableModuleBase(
int hub,
const std::string &name,
const std::string &path,
const std::string &description);
37 const std::string &name()
const;
38 const std::string &path()
const;
39 const std::string &description()
const;
40 void setHub(
int hubId);
41 std::string print()
const;
42 bool isCompound()
const;
47 template<
class Archive>
60 bool retval = other.
fromId < fromId;
61 if (other.
fromId == fromId)
62 retval = other.
toId < toId;
65 if (other.
toId == toId)
70 retval = other.
toPort < toPort;
74 template<
class Archive>
84 size_t addSubmodule(
const SubModule &sub);
85 void addConnection(
const Connection &conn);
86 const std::vector<SubModule> submodules()
const;
87 const std::set<Connection> connections()
const;
97 std::string m_description;
101 std::set<Connection> m_connections;
102 std::vector<SubModule> m_submodules;
106 mutable bool m_changed =
true;
107 std::unique_ptr<message::Message> cacheMsg(message::Type type)
const;
110 template<
class Archive>
#define ARCHIVE_ACCESS
Definition: archives_config.h:465
Definition: availablemodule.h:19
AvailableModuleBase()=default
virtual ~AvailableModuleBase()=default
AvailableModuleBase(const AvailableModuleBase &)=delete
AvailableModuleBase & operator=(AvailableModuleBase &&)=default
AvailableModuleBase(AvailableModuleBase &&)=default
AvailableModuleBase & operator=(const AvailableModuleBase &)=delete
Definition: availablemodule.h:120
Definition: availablemodule.h:131
Definition: message.h:157
Definition: shm_reference.h:15
#define V_COREEXPORT
Definition: export.h:9
void serialize(Archive &ar, vistle::Vector1 &v, const unsigned int version)
Definition: vector.h:105
bool send(socket_t &sock, const message::Message &msg, error_code &ec, const char *payload, size_t size)
Definition: tcpmessage.cpp:447
Definition: allobjects.cpp:30
std::function< bool(const message::Message &msg, const MessagePayload &payload)> sendShmMessageFunction
Definition: availablemodule.h:17
std::vector< char, allocator< char > > buffer
Definition: buffer.h:9
std::map< AvailableModule::Key, AvailableModule > AvailableMap
Definition: availablemodule.h:138
std::function< bool(const message::Message &msg, const buffer *payload)> sendMessageFunction
Definition: availablemodule.h:16
bool operator<(const ParameterVector< S > &v1, const ParameterVector< S > &v2)
Definition: paramvector_impl.h:243
const int ModuleNameLength
Definition: availablemodule.h:15
const std::string moduleCompoundSuffix
Definition: availablemodule.h:118
Definition: availablemodule.h:55
std::string fromPort
Definition: availablemodule.h:57
ARCHIVE_ACCESS void serialize(Archive &ar)
Definition: availablemodule.h:75
bool operator<(const Connection &other) const
Definition: availablemodule.h:58
std::string toPort
Definition: availablemodule.h:57
int toId
Definition: availablemodule.h:56
int fromId
Definition: availablemodule.h:56
Definition: availablemodule.h:22
std::string name
Definition: availablemodule.h:24
int hub
Definition: availablemodule.h:23
Definition: availablemodule.h:43
float x
Definition: availablemodule.h:45
ARCHIVE_ACCESS void serialize(Archive &ar)
Definition: availablemodule.h:48
std::string name
Definition: availablemodule.h:44