WvStreams
wvstdstring.h
00001 /* -*- Mode: C++ -*-
00002  * Worldvisions Weaver Software:
00003  *   Copyright (C) 1997-2002 Net Integration Technologies, Inc.
00004  *
00005  * Some helper functions for WvString so it's more easily interchangeable
00006  * with std::string.  These functions are in a separate include file so we
00007  * don't need a separate library *and* we don't need to #include <string> in
00008  * wvstring.h.
00009  */
00010 #ifndef __WVSTDSTRING_H
00011 #define __WVSTDSTRING_H
00012 
00013 #include "wvstring.h"
00014 
00015 inline WvFastString::WvFastString(const std::string &s)
00016 {
00017     construct(s.c_str());
00018 }
00019 
00020 
00021 inline WvString::WvString(const std::string &s)
00022 {
00023     construct(s.c_str());
00024 }
00025 
00026 #if 0
00027 inline WvFastString::operator std::string() const
00028 {
00029     return cstr();
00030 }
00031 #endif
00032 
00033 #endif // __WVSTDSTRING_H