xref: /aoo42x/main/autodoc/source/ary/loc/loc_root.cxx (revision d291ea28)
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 #include <precomp.h>
23 #include <ary/loc/loc_root.hxx>
24 
25 
26 // NOT FULLY DEFINED SERVICES
27 
28 
29 namespace ary
30 {
31 namespace loc
32 {
33 
34 
Root(const csv::ploc::Path & i_path)35 Root::Root(const csv::ploc::Path & i_path)
36     :   aPath(i_path),
37         sPathAsString(),
38         aMyDirectory(0)
39 {
40     StreamLock
41         path_string(700);
42     path_string() << i_path;
43     sPathAsString = path_string().c_str();
44 }
45 
~Root()46 Root::~Root()
47 {
48 }
49 
50 void
do_Accept(csv::ProcessorIfc & io_processor) const51 Root::do_Accept(csv::ProcessorIfc & io_processor) const
52 {
53     csv::CheckedCall(io_processor,*this);
54 }
55 
56 ClassId
get_AryClass() const57 Root::get_AryClass() const
58 {
59     return class_id;
60 }
61 
62 const String &
inq_LocalName() const63 Root::inq_LocalName() const
64 {
65     return sPathAsString;
66 }
67 
68 Le_id
inq_ParentDirectory() const69 Root::inq_ParentDirectory() const
70 {
71     return Le_id::Null_();
72 }
73 
74 
75 
76 } // namespace loc
77 } // namespace ary
78