Modperl: read values from MCString #93

Example:
my $x = $self->GetNetwork->GetIRCSock->GetISupport;
$x->get("CHANMODES")

No iterating through all values though :(
This commit is contained in:
Alexey Sokolov
2012-07-28 20:31:57 +07:00
parent 5a3db7f91f
commit 538aa77399
+6
View File
@@ -79,6 +79,12 @@ namespace std {
%template(VIRCNetworks) std::vector<CIRCNetwork*>;
%template(VChannels) std::vector<CChan*>;
/*%template(MNicks) std::map<CString, CNick>;*/
/*%template(SModInfo) std::set<CModInfo>;
%template(SCString) std::set<CString>;
typedef std::set<CString> SCString;*/
%template(PerlMCString) std::map<CString, CString>;
class MCString : public std::map<CString, CString> {};
/*%template(PerlModulesVector) std::vector<CModule*>;*/
%typemap(out) std::map<CString, CNick> {
HV* myhv = newHV();