2 * $XConsortium: OutlineString.hh /main/3 1996/06/11 16:21:35 cde-hal $
4 * Copyright (c) 1992 HAL Computer Systems International, Ltd.
5 * All rights reserved. Unpublished -- rights reserved under
6 * the Copyright Laws of the United States. USE OF A COPYRIGHT
7 * NOTICE IS PRECAUTIONARY ONLY AND DOES NOT IMPLY PUBLICATION
10 * THIS SOFTWARE CONTAINS CONFIDENTIAL INFORMATION AND TRADE
11 * SECRETS OF HAL COMPUTER SYSTEMS INTERNATIONAL, LTD. USE,
12 * DISCLOSURE, OR REPRODUCTION IS PROHIBITED WITHOUT THE
13 * PRIOR EXPRESS WRITTEN PERMISSION OF HAL COMPUTER SYSTEMS
16 * RESTRICTED RIGHTS LEGEND
17 * Use, duplication, or disclosure by the Government is subject
18 * to the restrictions as set forth in subparagraph (c)(l)(ii)
19 * of the Rights in Technical Data and Computer Software clause
20 * at DFARS 252.227-7013.
22 * HAL COMPUTER SYSTEMS INTERNATIONAL, LTD.
30 class OutlineString : public OutlineElement
33 OutlineString (const char *string = NULL)
37 int len = strlen(string);
38 f_string = new char [len + 1];
39 *((char *) memcpy(f_string, string, len) + len) = '\0';
46 { delete [] f_string; }
48 const char *display_as()
49 { return (f_string); }
54 protected: // variables