]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/other/smux/value2os.h
Use separate etst files for subsystems.
[stg.git] / projects / stargazer / plugins / other / smux / value2os.h
index 20e624059c99d0cc38611b2a91d5e59c3bbbd4c9..c069affdd328b9585103cbc4996f14b385e29ea8 100644 (file)
@@ -50,4 +50,15 @@ asn_long2INTEGER(&simpleSyntax->choice.number, value);
 return true;
 }
 
+template <>
+inline
+bool ValueToOS<std::string>(const std::string & value, ObjectSyntax * objectSyntax)
+{
+objectSyntax->present = ObjectSyntax_PR_simple;
+SimpleSyntax_t * simpleSyntax = &objectSyntax->choice.simple;
+simpleSyntax->present = SimpleSyntax_PR_string;
+OCTET_STRING_fromBuf(&simpleSyntax->choice.string, value.c_str(), static_cast<int>(value.length()));
+return true;
+}
+
 #endif