Lines Matching defs:STRING
25 #include <string>
96 /// Append a string to the current line. No whitespace is prepended
99 /// @param str the string to be written
100 /// @param maybe_quote indicate if there's a possibility the string
103 /// this true, but that causes an additional scan of the string.
104 /// @param len The length of the string. If not specified, strlen
127 /// @param str the string to append
128 /// @param maybe_quote string might need quoting, as for Append
129 void AppendWord (std::string const &str, bool maybe_quote = false)
147 int Lex (std::vector<std::string> &words);
150 /// Append the most-recently lexxed line to a string. May be useful
155 /// @param l string to-which the lexxed line is appended.
156 void LexedLine (std::string &l);
238 enum Category { INTEGER, STRING, VECTOR};
245 std::string string; ///< String value
246 std::vector<std::string> vector; ///< Vector of string value
259 Packet (unsigned c, std::string &&s)
260 : string (std::move (s)), cat (STRING), code (c)
263 Packet (unsigned c, std::string const &s)
264 : string (s), cat (STRING), code (c)
267 Packet (unsigned c, std::vector<std::string> &&v)
331 /// Return (a reference to) a string payload. Undefined if the
332 /// category is not STRING
333 std::string const &GetString () const
335 return string;
337 std::string &GetString ()
339 return string;
344 std::vector<std::string> const &GetVector () const
351 std::vector<std::string> &GetVector ()
369 PC_ERROR, ///< Packet is error string
378 std::string corked; ///< Queued request tags
455 /// @param alen length of agent string, if known
456 /// @param ilen length of ident string, if known
461 /// std::string wrapper for connection
464 Packet Connect (std::string const &agent, std::string const &ident)
487 Packet ModuleExport (std::string const &s, Flags flags = Flags::None)
503 Packet ModuleImport (std::string const &s, Flags flags = Flags::None)
521 Packet ModuleCompiled (std::string const &s, Flags flags = Flags::None)
538 Packet IncludeTranslate (std::string const &s, Flags flags = Flags::None)
561 Packet ProcessResponse (std::vector<std::string> &, unsigned code,
583 virtual std::string GetCMIName (std::string const &module);
586 /// @result CMI suffix, a statically allocated string
600 virtual void ErrorResponse (Server *s, std::string &&msg);
613 std::string &agent, std::string &ident);
620 std::string &module);
622 std::string &module);
624 std::string &module);
626 std::string &include);
720 void ErrorResponse (std::string const &error)
735 void PathnameResponse (std::string const &path)
745 void ConnectResponse (std::string const &agent)