wvdbusserver: implement NameHasOwner request.
[wvstreams.git] / include / wvstdstring.h
blobd1e77db6c6134a7770f1ac512d4813655e6b0020
1 /* -*- Mode: C++ -*-
2 * Worldvisions Weaver Software:
3 * Copyright (C) 1997-2002 Net Integration Technologies, Inc.
5 * Some helper functions for WvString so it's more easily interchangeable
6 * with std::string. These functions are in a separate include file so we
7 * don't need a separate library *and* we don't need to #include <string> in
8 * wvstring.h.
9 */
10 #ifndef __WVSTDSTRING_H
11 #define __WVSTDSTRING_H
13 #include "wvstring.h"
15 inline WvFastString::WvFastString(const std::string &s)
17 construct(s.c_str());
21 inline WvString::WvString(const std::string &s)
23 construct(s.c_str());
26 #if 0
27 inline WvFastString::operator std::string() const
29 return cstr();
31 #endif
33 #endif // __WVSTDSTRING_H