Changeset 312 in pacpusframework for trunk/include
- Timestamp:
- Jul 28, 2014, 4:11:30 PM (10 years ago)
- Location:
- trunk/include/Pacpus
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/Pacpus/PacpusTools/SharedMemory.h
r300 r312 57 57 /// Dtor of shared memory class. 58 58 virtual ~SharedMemory(); 59 59 60 60 /// Returns pointer to shared memory 61 61 virtual void* read(); 62 62 /// Copies a chunk of shared memory to dst buffer 63 63 virtual void read(void* dst, int size); 64 64 65 65 /// Use this method to write data in shared memory. Offset is given in bytes 66 66 virtual void write(void* data, int size, unsigned long offset = 0); 67 67 68 68 /// Use this method to wait the incoming of new data 69 69 /// you can specify a timeout in ms to avoid infinite blocking or 0 (infinite) 70 70 /// @returns @b true if new data available before the timeout, @b false otherwise 71 71 virtual bool wait(unsigned long timeout = 0); 72 72 73 73 /// Function that locks access to the shared memory 74 74 virtual void lockMemory(); 75 75 /// Function that unlocks access to the shared memory 76 76 virtual void unlockMemory(); 77 77 78 78 /// Returns event handle on Windows and NULL on Unix. 79 79 virtual void* getEventIdentifier(); -
trunk/include/Pacpus/kernel/ComponentBase.h
r290 r312 139 139 /// Returns an object permitting to add component parameters. 140 140 boost::program_options::options_description_easy_init addParameters(); 141 141 void addParameter(const char* name, const char* description); 142 void addParameter(const char* name, const boost::program_options::value_semantic* s); 143 void addParameter(const char* name, const boost::program_options::value_semantic* s, const char* description); 144 142 145 protected: 143 146 typedef QMap<QString, InputSharedPointer> InputsMap;
Note:
See TracChangeset
for help on using the changeset viewer.