Software and Services, Portable Libraries  2019.Mar.01
A library for managing digital certificates
text.hpp
Go to the documentation of this file.
1 //
2 // BEGIN_DOUGLAS_MARK_ROYER_COPYRIGHT
3 //
4 // Copyright (C) 1993-2012 Douglas Mark Royer, All Rights Reserved.
5 //
6 // NOTICE:
7 //
8 // THIS SOURCE CODE BELONGS TO DOUGLAS MARK ROYER THIS CODE IS CONSIDERED A
9 // TRADE SECRET AND IS NOT TO BE DIVULGED OR USED BY PARTIES WHO HAVE
10 // NOT RECEIVED WRITTEN AUTHORIZATION FROM THE OWNER.
11 //
12 //
13 // THIS SOFTWARE AND MANUAL ARE BOTH PROTECTED BY UNITED STATES
14 // COPYRIGHT LAW (TITLE 17 UNITED STATES CODE). UNAUTHORIZED REPRODUCTION
15 // AND/OR SALE MAY RESULT IN IMPRISONMENT OF UP TO ONE YEAR AND FINES
16 // OF UP TO $100,000 (17 USC 506). COPYRIGHT INFRINGERS MAY ALSO
17 // BE SUBJECT TO CIVIL LIABILITY.
18 //
19 // THIS NOTICE AND THE ABOVE COPYRIGHT NOTICE MUST REMAIN IN ALL
20 // COPIES AND ANY DERIVED WORK.
21 //
22 // ALL OF THIS CODE IS ORIGINAL WORK BY THE COPYRIGHT HOLDER.
23 //
24 // THIS DOCUMENT AND THE INFORMATION CONTAINED HEREIN IS
25 // PROVIDED ON AN "AS IS" BASIS AND INET-CONSULTING.COM, INC.
26 // DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
27 // NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
28 // HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
29 // WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR
30 // PURPOSE. ANY SERVICE CONTRACT WILL BE UNDER A SEPARATE
31 // LICENSE.
32 //
33 // END_DOUGLAS_MARK_ROYER_COPYRIGHT
34 //
35 
36 #ifndef __DOUGLAS_MARK_ROYER_LIBRARY_ICALENDAR_TEXT_HPP__
37 #define __DOUGLAS_MARK_ROYER_LIBRARY_ICALENDAR_TEXT_HPP__
38 
39 #ifndef EXPORT_ICALENDAR
40 #ifdef BUILDING_LIBRARY_ICALENDAR
41 #define EXPORT_ICALENDAR EXPORT_OUT
42 #else
43 #define EXPORT_ICALENDAR EXPORT_IN
44 #endif
45 #endif
46 
54 #ifdef BUILDING_LIBRARY_ICALENDAR
55 #include "iCalendar.hpp"
56 #include "BaseValueType.hpp"
57 #else
58 #include <SaS/iCalendar/iCalendar.hpp>
59 #include <SaS/iCalendar/BaseValueType.hpp>
60 #endif
61 
62 using namespace std;
63 
65 
66 namespace SoftwareAndServices
67 {
68  namespace Library
69  {
70  namespace iCalendar
71  {
76  class EXPORT_ICALENDAR text
77  : public BaseValueType
78  {
79 
80  public:
81 
85  text();
86 
92  text(const text * aValue);
93 
102  text(const char * aString, size_t Length = 0);
103 
109  text(String * aString);
110 
114  virtual ~text();
115 
122  const char * get() const;
123 
131  virtual bool sprint(String * Results) const;
132 
143  bool parse(Parse & in, component * errors);
144 
155  bool parse(const char * in, component * errors);
156 
163  text & operator=(const text & Other);
164 
172  bool operator==(const text & Other);
173 
181  bool operator<(const text & Other);
182 
190  bool operator<=(const text & Other);
191 
200  bool operator>=(const text & Other);
201 
209  bool operator>(const text & Other);
210 
211  private:
212 
216  const char * _str;
217  };
218 
222  typedef vector<text*> textVec;
223 
224  }
225  }
226 }
227 
228 
229 #endif /*__DOUGLAS_MARK_ROYER_LIBRARY_ICALENDAR_TEXT_HPP__*/
STL namespace.
This class represents any iCalendar TEXT value type.
Definition: text.hpp:76
Copyright Douglas Mark Royer DouglasRoyer@gmail.com.
Definition: Base.hpp:98
The base class for calendar objects.
Definition: iCalendar.hpp:434
All (almost all) values are derived from this base class.
Base class for all RFC-iCalendar components.
Definition: component.hpp:98