This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
excersize:m_r:gnss_datalog [2011/12/20 13:29] 127.0.0.1 external edit |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== GNSS Datalog ====== | ||
- | Program for GNSS excersize | ||
- | |||
- | Trac may be a tool used to control the development. | ||
- | [[http:// | ||
- | |||
- | SVN from Martin is available. | ||
- | ===== Manual ===== | ||
- | |||
- | ===== Download ===== | ||
- | Executable jar file | ||
- | |||
- | Sourcecode with Doxygen configurationfile | ||
- | |||
- | |||
- | ===== API Documentation ===== | ||
- | The Sourcecode has been documented with Doxygen. The documentation can be found [[http:// | ||
- | |||
- | ===== Test ===== | ||
- | <code java> | ||
- | /** | ||
- | * The HelloWorldApp class implements an application that | ||
- | * simply displays "Hello World!" | ||
- | */ | ||
- | class HelloWorldApp { | ||
- | public static void main(String[] args) { | ||
- | System.out.println(" | ||
- | } | ||
- | } | ||
- | </ | ||
- | |||
- | ===== Test 2 ===== | ||
- | <sxh php; first-line: 70; highlight: [89,92]; title: New title attribute in action> | ||
- | public function render($mode, | ||
- | |||
- | if($mode != ' | ||
- | |||
- | if (count($data) == 3) { | ||
- | list($syntax, | ||
- | if ($syntax == ' | ||
- | // Check if there' | ||
- | if (preg_match("/ | ||
- | // Extract title(s) from attribute string. | ||
- | $attr_array = explode(";", | ||
- | $title_array = preg_grep("/ | ||
- | // Extract everything BUT title(s) from attribute string. | ||
- | $not_title_array = preg_grep("/ | ||
- | $attr = implode(";", | ||
- | // If there are several titles, use the last one. | ||
- | $title = array_pop($title_array); | ||
- | $title = preg_replace("/ | ||
- | // Add title as an attribute to the <pre /> tag. | ||
- | $renderer-> | ||
- | } else { | ||
- | // No title detected, pass all attributes as parameters to SyntaxHighlighter. | ||
- | $renderer-> | ||
- | } | ||
- | } else { | ||
- | $renderer-> | ||
- | } | ||
- | } | ||
- | |||
- | return true; | ||
- | } | ||
- | </ | ||