xref: /aoo4110/main/cosv/inc/cosv/plocroot.hxx (revision b1cdbd2c)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef CSV_PLOCROOT_HXX
25 #define CSV_PLOCROOT_HXX
26 
27 
28 // USED SERVICES
29 	// BASE CLASSES
30 	// COMPONENTS
31 #include <cosv/string.hxx>
32 	// PARAMETERS
33 #include <cosv/csv_ostream.hxx>
34 #include <cosv/persist.hxx>
35 
36 
37 namespace csv
38 {
39 
40 class bostream;
41 
42 
43 namespace ploc
44 {
45 
46 
47 class Root
48 {
49   public:
50     virtual             ~Root();
51 
52     static DYN Root *   Create_(
53                             const char * &      o_sPathAfterRoot,
54                             const char *        i_sPath,
55                             const char *        i_sDelimiter = Delimiter() );
56 
57     virtual void        Get(                    /// Does not add a '\0' at the end,
58                             ostream &           o_rPath ) const = 0;
59     virtual void        Get(                    /// Does not add a '\0' at the end.
60                             bostream &          so_rPath ) const = 0;
61     virtual DYN Root *  CreateCopy() const = 0;
62     virtual const char *
63                         OwnDelimiter() const = 0;
64 };
65 
66 
67 
68 }   // namespace ploc
69 }   // namespace csv
70 
71 
72 
73 #endif
74 
75 
76 
77