Skip to content

Commit

Permalink
Improvements to Readme, added function.
Browse files Browse the repository at this point in the history
  • Loading branch information
HeinrichHerbst committed Feb 25, 2020
1 parent 8c949a5 commit 06e71d5
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 12 deletions.
26 changes: 14 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# GDScpp

GDScpp is a C++ library that make GDS file manipulation easier. __Even though GDScpp can be compiled as a stand along program, it is intended to be used as a library.__
GDScpp is a C++ library that make GDS file manipulation easier. __Even though GDScpp can be compiled as a stand-alone program, it is intended to be used as a library.__

Version: 1.0

## Features

* GDS to ASCII.
* Easily create GDS file.
* Importing GDS files.
* Convert GDS data to ASCII.
* Easily create GDS files.
* Import GDS files.
* Extract the root GDS structures.
* Create a hierarchy diagram of all the GDS structure dependencies.
* Direct importing of GDS files with redundancy checking
Expand Down Expand Up @@ -36,7 +36,7 @@ make

## Usage

A few examples is provided in _example_ folder to show some of the capabilities of GDScpp.
A few examples are provided in the _examples_ folder to show some of GDScpp's functionality.

``` cpp

Expand Down Expand Up @@ -72,10 +72,11 @@ int main(int argc, char *argv[]){
### GDS Interpreter
Translates GDS file directly to ASCII.
Translate GDS file directly to ASCII.
``` bash
./gdscpp -i input.gds
or
./gdscpp -i input.gds >> outfile.txt
```

### GDS Read Write
Expand All @@ -102,16 +103,17 @@ generates a diagram of the hierarchical structure of the GDS file.
./gdscpp -r input.gds
```

## To Do
* Improve text handling
* When reading in GDS files into memory, check for redundancies
* aref has not been tested.
## Work in progress
* Improvement of text handling
* GDS read-in redundancy checking
* In-depth testing of array reference functionality
* rename "setSTR" to "push_back"?
* create a map to easily find the structures
* Allow GDScpp to be easier used as a library
* Refactoring of GDSCPP into a more standard library format

## Notes
* Text and nodes are not fully supported.
* Box is currently not supported.

## Change Log
2020-02-25 Updated Readme, added get_database_units_in_m function.
1 change: 1 addition & 0 deletions include/gdscpp/gdsCpp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ class gdscpp
int fetch_box_bounding_box(gdsBOX target_box, int *destination);
int write(const std::string &fileName);
double get_database_units();
double get_database_units_in_m();
void to_str();
void reset();
void importGDSfile(const std::string &fileName)
Expand Down
5 changes: 5 additions & 0 deletions src/gdsCpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,11 @@ double gdscpp::get_database_units()
return units[1];
}

double gdscpp::get_database_units_in_m()
{
return units[0];
}

/**
* [gdscpp::findRootSTR finds the root structures]
* @return [vector of the STR indexes of the root GDS STR]
Expand Down

0 comments on commit 06e71d5

Please sign in to comment.