OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/python2.4 |
| 2 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. |
| 5 |
| 6 ''' Base class for preprocessing of RC files. |
| 7 ''' |
| 8 |
| 9 import sys |
| 10 |
| 11 class PreProcessor(object): |
| 12 ''' Base class for preprocessing of the RC file data before being |
| 13 output through the RC2GRD tool. You should implement this class if |
| 14 you have specific constructs in your RC files that GRIT cannot handle.''' |
| 15 |
| 16 |
| 17 def Process(self, rctext, rcpath): |
| 18 ''' Processes the data in rctext. |
| 19 Args: |
| 20 rctext: string containing the contents of the RC file being processed |
| 21 rcpath: the path used to access the file. |
| 22 |
| 23 Return: |
| 24 The processed text. |
| 25 ''' |
| 26 raise NotImplementedError() |
| 27 |
| 28 |
| 29 |
OLD | NEW |