Dear Milica,
Milica Milojevic wrote:
> I declared several variables of vector type in WaveShortMessage.msg.
> When I compile the message the cc and h files are created successfully.
> However I would like to use some vector functions such as clear() and
> push_back() and I cannot figure out how to use them. Can anybody advise
> me about this?
This might be a bit tricky. The OMNeT++ User Manual section 6.2
(Messages and Packets) [1] should have all the necessary information.
If you want to use OMNeT++ wrapper functions for accessing vectors,
you'll find that in sections 6.2.5 (Fixed-Size Arrays) and 6.2.6
(Variable-Size Arrays).
If you want to use STL classes, you'll find that in section 6.6 (Using
C++ Types). This seems to be what you want.
Best,
Christoph
[1]
http://www.omnetpp.org/doc/omnetpp/manual/usman.html#sec227
--
Dr. Christoph Sommer
Distributed Embedded Systems Group
University of Paderborn, Germany
http://www.ccs-labs.org/~sommer/