Changeset 312 in pacpusframework for trunk/include


Ignore:
Timestamp:
07/28/14 16:11:30 (10 years ago)
Author:
Marek Kurdej
Message:

ComponentBase: added addParameter.

Location:
trunk/include/Pacpus
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/Pacpus/PacpusTools/SharedMemory.h

    r300 r312  
    5757    /// Dtor of shared memory class.
    5858    virtual ~SharedMemory();
    59    
     59
    6060    /// Returns pointer to shared memory
    6161    virtual void* read();
    6262    /// Copies a chunk of shared memory to dst buffer
    6363    virtual void read(void* dst, int size);
    64    
     64
    6565    /// Use this method to write data in shared memory. Offset is given in bytes
    6666    virtual void write(void* data, int size, unsigned long offset = 0);
    67    
     67
    6868    /// Use this method to wait the incoming of new data
    6969    /// you can specify a timeout in ms to avoid infinite blocking or 0 (infinite)
    7070    /// @returns @b true if new data available before the timeout, @b false otherwise
    7171    virtual bool wait(unsigned long timeout = 0);
    72    
     72
    7373    /// Function that locks access to the shared memory
    7474    virtual void lockMemory();
    7575    /// Function that unlocks access to the shared memory
    7676    virtual void unlockMemory();
    77    
     77
    7878    /// Returns event handle on Windows and NULL on Unix.
    7979    virtual void* getEventIdentifier();
  • trunk/include/Pacpus/kernel/ComponentBase.h

    r290 r312  
    139139    /// Returns an object permitting to add component parameters.
    140140    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
    142145protected:
    143146    typedef QMap<QString, InputSharedPointer> InputsMap;
Note: See TracChangeset for help on using the changeset viewer.