[4] | 1 | /******************************************************************************
|
---|
| 2 | * SAGE - Scalable Adaptive Graphics Environment
|
---|
| 3 | *
|
---|
| 4 | * Copyright (C) 2004 Electronic Visualization Laboratory,
|
---|
| 5 | * University of Illinois at Chicago
|
---|
| 6 | *
|
---|
| 7 | * All rights reserved.
|
---|
| 8 | *
|
---|
| 9 | * Redistribution and use in source and binary forms, with or without
|
---|
| 10 | * modification, are permitted provided that the following conditions are met:
|
---|
| 11 | *
|
---|
| 12 | * * Redistributions of source code must retain the above copyright
|
---|
| 13 | * notice, this list of conditions and the following disclaimer.
|
---|
| 14 | * * Redistributions in binary form must reproduce the above
|
---|
| 15 | * copyright notice, this list of conditions and the following disclaimer
|
---|
| 16 | * in the documentation and/or other materials provided with the distribution.
|
---|
| 17 | * * Neither the name of the University of Illinois at Chicago nor
|
---|
| 18 | * the names of its contributors may be used to endorse or promote
|
---|
| 19 | * products derived from this software without specific prior written permission.
|
---|
| 20 | *
|
---|
| 21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
---|
| 22 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
---|
| 23 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
---|
| 24 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
---|
| 25 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
---|
| 26 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
---|
| 27 | * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
---|
| 28 | * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
---|
| 29 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
---|
| 30 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
---|
| 31 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
---|
| 32 | *
|
---|
| 33 | * Direct questions, comments etc about SAGE to http://www.evl.uic.edu/cavern/forum/
|
---|
| 34 | *
|
---|
| 35 | *****************************************************************************/
|
---|
| 36 |
|
---|
| 37 | /*------------------------------------------------------------------------
|
---|
| 38 | - Author: Arun Rao
|
---|
| 39 | - Library: Tile Config
|
---|
| 40 | - Revision Date: 4/22/2004
|
---|
| 41 | - Module: file_parsers.h
|
---|
| 42 | - Purpose: Contains function prototypes for file i/o to load in
|
---|
| 43 | - and write out tiled display system descriptions
|
---|
| 44 | ---------------------------------------------------------------------------*/
|
---|
| 45 | #ifndef TILE_CONFIG_FILE_PARSERS_H
|
---|
| 46 | #define TILE_CONFIG_FILE_PARSERS_H
|
---|
| 47 |
|
---|
| 48 | #include "tile_config.h"
|
---|
| 49 |
|
---|
| 50 | //Standard File, I/O functions for tile_config library
|
---|
| 51 | //----------------------------------------------------
|
---|
| 52 | //Parameters
|
---|
| 53 | // [in] filename - name of the config file
|
---|
| 54 | // [in, out] pd - the returned physical display (send a pointer that isn't pointing to an actual physical display)
|
---|
| 55 | // [in, out] dc - the returned display cluster (send a pointer that isn't pointing to an actual display cluster)
|
---|
| 56 | // [in, out] vd - the returned virutal desktop (send a pointer that isn't pointing to an actual virtual desktop)
|
---|
| 57 |
|
---|
| 58 | #ifdef _cplusplus
|
---|
| 59 | extern "C" {
|
---|
| 60 | #endif
|
---|
| 61 |
|
---|
| 62 | int stdInputFileParser(char* filename,PhysicalDisplay*& pd,DisplayCluster*& dc,VirtualDesktop*& vd);
|
---|
| 63 | void stdOutputFileWriter(char* filename,PhysicalDisplay* pd,DisplayCluster* dc,VirtualDesktop* vd);
|
---|
| 64 | int corewallInputFileParser(char* filename, PhysicalDisplay*& pd, DisplayCluster*& dc, VirtualDesktop*& vd, int*& startPos);
|
---|
| 65 |
|
---|
| 66 | #ifdef _cplusplus
|
---|
| 67 | }
|
---|
| 68 | #endif
|
---|
| 69 |
|
---|
| 70 | #endif
|
---|