xref: /aoo41x/main/cosv/inc/cosv/comdline.hxx (revision ac3d0c65)
1*ac3d0c65SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*ac3d0c65SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*ac3d0c65SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*ac3d0c65SAndrew Rist  * distributed with this work for additional information
6*ac3d0c65SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*ac3d0c65SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*ac3d0c65SAndrew Rist  * "License"); you may not use this file except in compliance
9*ac3d0c65SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*ac3d0c65SAndrew Rist  *
11*ac3d0c65SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*ac3d0c65SAndrew Rist  *
13*ac3d0c65SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*ac3d0c65SAndrew Rist  * software distributed under the License is distributed on an
15*ac3d0c65SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*ac3d0c65SAndrew Rist  * KIND, either express or implied.  See the License for the
17*ac3d0c65SAndrew Rist  * specific language governing permissions and limitations
18*ac3d0c65SAndrew Rist  * under the License.
19*ac3d0c65SAndrew Rist  *
20*ac3d0c65SAndrew Rist  *************************************************************/
21*ac3d0c65SAndrew Rist 
22*ac3d0c65SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef CSV_COMDLINE_HXX
25cdf0e10cSrcweir #define CSV_COMDLINE_HXX
26cdf0e10cSrcweir //  KORR_DEPRECATED_3.0
27cdf0e10cSrcweir //      Replace by cosv/commandline.hxx.
28cdf0e10cSrcweir 
29cdf0e10cSrcweir 
30cdf0e10cSrcweir namespace csv
31cdf0e10cSrcweir {
32cdf0e10cSrcweir 
33cdf0e10cSrcweir class CommandLine_Ifc
34cdf0e10cSrcweir {
35cdf0e10cSrcweir   public:
~CommandLine_Ifc()36cdf0e10cSrcweir     virtual             ~CommandLine_Ifc() {}
37cdf0e10cSrcweir 
38cdf0e10cSrcweir     void                Init(
39cdf0e10cSrcweir                             int                 argc,
40cdf0e10cSrcweir                             char *              argv[] );
41cdf0e10cSrcweir     void                PrintUse() const;
42cdf0e10cSrcweir     bool                CheckParameters() const;
43cdf0e10cSrcweir 
44cdf0e10cSrcweir   private:
45cdf0e10cSrcweir     virtual void        do_Init(
46cdf0e10cSrcweir                             int                 argc,
47cdf0e10cSrcweir                             char *              argv[] ) = 0;
48cdf0e10cSrcweir 
49cdf0e10cSrcweir     virtual void        do_PrintUse() const = 0;
50cdf0e10cSrcweir     virtual bool        inq_CheckParameters() const = 0;
51cdf0e10cSrcweir };
52cdf0e10cSrcweir 
53cdf0e10cSrcweir inline void
Init(int argc,char * argv[])54cdf0e10cSrcweir CommandLine_Ifc::Init( int                 argc,
55cdf0e10cSrcweir                        char *              argv[] )
56cdf0e10cSrcweir     { do_Init( argc, argv ); }
57cdf0e10cSrcweir inline void
PrintUse() const58cdf0e10cSrcweir CommandLine_Ifc::PrintUse() const
59cdf0e10cSrcweir     { do_PrintUse(); }
60cdf0e10cSrcweir 
61cdf0e10cSrcweir }   // namespace csv
62cdf0e10cSrcweir 
63cdf0e10cSrcweir 
64cdf0e10cSrcweir 
65cdf0e10cSrcweir #endif
66cdf0e10cSrcweir 
67