Changeset 190 for vtcross/trunk/src/include
- Timestamp:
- 03/23/09 10:52:00 (15 years ago)
- Location:
- vtcross/trunk/src/include/vtcross
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
vtcross/trunk/src/include/vtcross/Makefile.am
r161 r190 1 1 include_HEADERS = error.h debug.h socketcomm.h cbr.h components.h \ 2 2 containers.h libvtcross.h common.h config.h 3 4 components_h_LDADD = ../lib/socketcomm/libsocketcomm.a -
vtcross/trunk/src/include/vtcross/components.h
r188 r190 23 23 24 24 #include "containers.h" 25 #include "socketcomm.h" 25 26 26 27 … … 33 34 public: 34 35 /* Asks the component at the passed socket FD for its component type 35 * string. 36 */ 37 virtual void GetRemoteComponentType() = 0; 36 * string. Note that this implementation is global for all component 37 * types, so is implemented here. Should a component need to override 38 * it, that is possible via dynamic binding or overloading. 39 */ 40 virtual std::string GetRemoteComponentType(int32_t componentSocketFD) 41 { 42 SendMessage(componentSocketFD, "request_component_type"); 43 44 char buffer[256]; 45 memset(buffer, 0, 256); 46 ReadMessage(componentSocketFD, buffer); 47 48 return std::string(buffer); 49 } 38 50 39 51