astriffe
unread,Apr 22, 2013, 11:44:21 AM4/22/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to omn...@googlegroups.com
Hello
I wanted to replace an opp_string in my .msg-file with a std::string in order to avoid pointers (serialization). However, opp_msgc creates a compilation error in the .cc-file (method getFieldAsString).
Does anyone know how to fix this or how to include std::strings correctly? You can see the code of my .msg-file below.
What seems strange to me is that getContentName() returns a std::string&...
Any hints are very much appreciated!
TIA!
- Alex
-- DataPkt.msg
cplusplus {{
#include "Signature.h"
#include "SignedInfo.h"
#include "Content.h"
#include <string>
}}
class noncobject Signature;
class noncobject SignedInfo;
class noncobject Content;
class noncobject std::string;
packet DataPkt {
std::string contentName;
Signature sig; // class Signature tbd, string digestAlgorithm, witness, string signature etc.
SignedInfo siginfo; // class SignedInfo tbd, string PublisherID, keyLocator, int stale_time etc.
Content data; // class Content tbd, int chunk index (version, etc.), char data [], ...
}