xref: /aoo4110/main/cosv/inc/cosv/comdline.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_COMDLINE_HXX
25 #define CSV_COMDLINE_HXX
26 //  KORR_DEPRECATED_3.0
27 //      Replace by cosv/commandline.hxx.
28 
29 
30 namespace csv
31 {
32 
33 class CommandLine_Ifc
34 {
35   public:
~CommandLine_Ifc()36     virtual             ~CommandLine_Ifc() {}
37 
38     void                Init(
39                             int                 argc,
40                             char *              argv[] );
41     void                PrintUse() const;
42     bool                CheckParameters() const;
43 
44   private:
45     virtual void        do_Init(
46                             int                 argc,
47                             char *              argv[] ) = 0;
48 
49     virtual void        do_PrintUse() const = 0;
50     virtual bool        inq_CheckParameters() const = 0;
51 };
52 
53 inline void
Init(int argc,char * argv[])54 CommandLine_Ifc::Init( int                 argc,
55                        char *              argv[] )
56     { do_Init( argc, argv ); }
57 inline void
PrintUse() const58 CommandLine_Ifc::PrintUse() const
59     { do_PrintUse(); }
60 
61 }   // namespace csv
62 
63 
64 
65 #endif
66 
67