IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 13, 2007, 12:33:39 PM (19 years ago)
Author:
jhoblitt
Message:

VERSION 1.1.5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippdb/tests/metadatafromobject.c

    r11733 r11780  
    16581658        psFree(object);
    16591659
    1660         if (!psMetadataLookupS32(&status, md, "p4a_id") == -32) {
     1660        if (!psMetadataLookupS32(&status, md, "p4_id") == -32) {
    16611661            psFree(md);
    16621662            exit(EXIT_FAILURE);
     
    16981698        psFree(object);
    16991699
    1700         if (!psMetadataLookupS32(&status, md, "p4a_id") == -32) {
     1700        if (!psMetadataLookupS32(&status, md, "p4_id") == -32) {
    17011701            psFree(md);
    17021702            exit(EXIT_FAILURE);
     
    17201720    {
    17211721        psMetadata      *md;
     1722        p4SkyCellMapRow *object;
     1723        bool            status;
     1724
     1725        object = p4SkyCellMapRowAlloc(-32, "a string", "a string", "a string", -32, "a string");
     1726        if (!object) {
     1727            exit(EXIT_FAILURE);
     1728        }
     1729
     1730        md = p4SkyCellMapMetadataFromObject(object);
     1731        if (!md) {
     1732            exit(EXIT_FAILURE);
     1733        }
     1734
     1735        psFree(object);
     1736
     1737        if (!psMetadataLookupS32(&status, md, "p4_id") == -32) {
     1738            psFree(md);
     1739            exit(EXIT_FAILURE);
     1740        }
     1741        if (strncmp(psMetadataLookupPtr(&status, md, "skycell_id"), "a string", MAX_STRING_LENGTH)) {
     1742            psFree(md);
     1743            exit(EXIT_FAILURE);
     1744        }
     1745        if (strncmp(psMetadataLookupPtr(&status, md, "tess_id"), "a string", MAX_STRING_LENGTH)) {
     1746            psFree(md);
     1747            exit(EXIT_FAILURE);
     1748        }
     1749        if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
     1750            psFree(md);
     1751            exit(EXIT_FAILURE);
     1752        }
     1753        if (!psMetadataLookupS32(&status, md, "p3_version") == -32) {
     1754            psFree(md);
     1755            exit(EXIT_FAILURE);
     1756        }
     1757        if (strncmp(psMetadataLookupPtr(&status, md, "class_id"), "a string", MAX_STRING_LENGTH)) {
     1758            psFree(md);
     1759            exit(EXIT_FAILURE);
     1760        }
     1761
     1762        psFree(md);
     1763    }
     1764
     1765    {
     1766        psMetadata      *md;
    17221767        p4ScfileRow     *object;
    17231768        bool            status;
     
    17351780        psFree(object);
    17361781
    1737         if (!psMetadataLookupS32(&status, md, "p4a_id") == -32) {
     1782        if (!psMetadataLookupS32(&status, md, "p4_id") == -32) {
    17381783            psFree(md);
    17391784            exit(EXIT_FAILURE);
     
    17641809        }
    17651810        if (!psMetadataLookupF64(&status, md, "bg_mean_stdev") == 64.64) {
    1766             psFree(md);
    1767             exit(EXIT_FAILURE);
    1768         }
    1769 
    1770         psFree(md);
    1771     }
    1772 
    1773     {
    1774         psMetadata      *md;
    1775         p4InputScfileRow *object;
    1776         bool            status;
    1777 
    1778         object = p4InputScfileRowAlloc(-32, "a string", "a string", "a string", -32, "a string");
    1779         if (!object) {
    1780             exit(EXIT_FAILURE);
    1781         }
    1782 
    1783         md = p4InputScfileMetadataFromObject(object);
    1784         if (!md) {
    1785             exit(EXIT_FAILURE);
    1786         }
    1787 
    1788         psFree(object);
    1789 
    1790         if (!psMetadataLookupS32(&status, md, "p4b_id") == -32) {
    1791             psFree(md);
    1792             exit(EXIT_FAILURE);
    1793         }
    1794         if (strncmp(psMetadataLookupPtr(&status, md, "skycell_id"), "a string", MAX_STRING_LENGTH)) {
    1795             psFree(md);
    1796             exit(EXIT_FAILURE);
    1797         }
    1798         if (strncmp(psMetadataLookupPtr(&status, md, "tess_id"), "a string", MAX_STRING_LENGTH)) {
    1799             psFree(md);
    1800             exit(EXIT_FAILURE);
    1801         }
    1802         if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
    1803             psFree(md);
    1804             exit(EXIT_FAILURE);
    1805         }
    1806         if (!psMetadataLookupS32(&status, md, "p3_version") == -32) {
    1807             psFree(md);
    1808             exit(EXIT_FAILURE);
    1809         }
    1810         if (strncmp(psMetadataLookupPtr(&status, md, "kind"), "a string", MAX_STRING_LENGTH)) {
    1811             psFree(md);
    1812             exit(EXIT_FAILURE);
    1813         }
    1814 
    1815         psFree(md);
    1816     }
    1817 
    1818     {
    1819         psMetadata      *md;
    1820         p4DiffScfileRow *object;
    1821         bool            status;
    1822 
    1823         object = p4DiffScfileRowAlloc(-32, "a string", "a string", "a string", -32, "a string", 64.64, 64.64);
    1824         if (!object) {
    1825             exit(EXIT_FAILURE);
    1826         }
    1827 
    1828         md = p4DiffScfileMetadataFromObject(object);
    1829         if (!md) {
    1830             exit(EXIT_FAILURE);
    1831         }
    1832 
    1833         psFree(object);
    1834 
    1835         if (!psMetadataLookupS32(&status, md, "p4b_id") == -32) {
    1836             psFree(md);
    1837             exit(EXIT_FAILURE);
    1838         }
    1839         if (strncmp(psMetadataLookupPtr(&status, md, "skycell_id"), "a string", MAX_STRING_LENGTH)) {
    1840             psFree(md);
    1841             exit(EXIT_FAILURE);
    1842         }
    1843         if (strncmp(psMetadataLookupPtr(&status, md, "tess_id"), "a string", MAX_STRING_LENGTH)) {
    1844             psFree(md);
    1845             exit(EXIT_FAILURE);
    1846         }
    1847         if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
    1848             psFree(md);
    1849             exit(EXIT_FAILURE);
    1850         }
    1851         if (!psMetadataLookupS32(&status, md, "p3_version") == -32) {
    1852             psFree(md);
    1853             exit(EXIT_FAILURE);
    1854         }
    1855         if (strncmp(psMetadataLookupPtr(&status, md, "uri"), "a string", MAX_STRING_LENGTH)) {
    1856             psFree(md);
    1857             exit(EXIT_FAILURE);
    1858         }
    1859         if (!psMetadataLookupF64(&status, md, "bg") == 64.64) {
    1860             psFree(md);
    1861             exit(EXIT_FAILURE);
    1862         }
    1863         if (!psMetadataLookupF64(&status, md, "bg_mean_stdev") == 64.64) {
    1864             psFree(md);
    1865             exit(EXIT_FAILURE);
    1866         }
    1867 
    1868         psFree(md);
    1869     }
    1870 
    1871     {
    1872         psMetadata      *md;
    1873         p4MagicMaskImfileRow *object;
    1874         bool            status;
    1875 
    1876         object = p4MagicMaskImfileRowAlloc(-32, "a string", -32, "a string", "a string");
    1877         if (!object) {
    1878             exit(EXIT_FAILURE);
    1879         }
    1880 
    1881         md = p4MagicMaskImfileMetadataFromObject(object);
    1882         if (!md) {
    1883             exit(EXIT_FAILURE);
    1884         }
    1885 
    1886         psFree(object);
    1887 
    1888         if (!psMetadataLookupS32(&status, md, "p4c_id") == -32) {
    1889             psFree(md);
    1890             exit(EXIT_FAILURE);
    1891         }
    1892         if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
    1893             psFree(md);
    1894             exit(EXIT_FAILURE);
    1895         }
    1896         if (!psMetadataLookupS32(&status, md, "p3_version") == -32) {
    1897             psFree(md);
    1898             exit(EXIT_FAILURE);
    1899         }
    1900         if (strncmp(psMetadataLookupPtr(&status, md, "class_id"), "a string", MAX_STRING_LENGTH)) {
    1901             psFree(md);
    1902             exit(EXIT_FAILURE);
    1903         }
    1904         if (strncmp(psMetadataLookupPtr(&status, md, "uri"), "a string", MAX_STRING_LENGTH)) {
    1905             psFree(md);
    1906             exit(EXIT_FAILURE);
    1907         }
    1908 
    1909         psFree(md);
    1910     }
    1911 
    1912     {
    1913         psMetadata      *md;
    1914         skyCellRow      *object;
    1915         bool            status;
    1916 
    1917         object = skyCellRowAlloc("a string", "a string", 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64, 64.64);
    1918         if (!object) {
    1919             exit(EXIT_FAILURE);
    1920         }
    1921 
    1922         md = skyCellMetadataFromObject(object);
    1923         if (!md) {
    1924             exit(EXIT_FAILURE);
    1925         }
    1926 
    1927         psFree(object);
    1928 
    1929         if (strncmp(psMetadataLookupPtr(&status, md, "skycell_id"), "a string", MAX_STRING_LENGTH)) {
    1930             psFree(md);
    1931             exit(EXIT_FAILURE);
    1932         }
    1933         if (strncmp(psMetadataLookupPtr(&status, md, "tess_id"), "a string", MAX_STRING_LENGTH)) {
    1934             psFree(md);
    1935             exit(EXIT_FAILURE);
    1936         }
    1937         if (!psMetadataLookupF64(&status, md, "ra1") == 64.64) {
    1938             psFree(md);
    1939             exit(EXIT_FAILURE);
    1940         }
    1941         if (!psMetadataLookupF64(&status, md, "decl1") == 64.64) {
    1942             psFree(md);
    1943             exit(EXIT_FAILURE);
    1944         }
    1945         if (!psMetadataLookupF64(&status, md, "ra2") == 64.64) {
    1946             psFree(md);
    1947             exit(EXIT_FAILURE);
    1948         }
    1949         if (!psMetadataLookupF64(&status, md, "decl2") == 64.64) {
    1950             psFree(md);
    1951             exit(EXIT_FAILURE);
    1952         }
    1953         if (!psMetadataLookupF64(&status, md, "ra3") == 64.64) {
    1954             psFree(md);
    1955             exit(EXIT_FAILURE);
    1956         }
    1957         if (!psMetadataLookupF64(&status, md, "decl3") == 64.64) {
    1958             psFree(md);
    1959             exit(EXIT_FAILURE);
    1960         }
    1961         if (!psMetadataLookupF64(&status, md, "ra4") == 64.64) {
    1962             psFree(md);
    1963             exit(EXIT_FAILURE);
    1964         }
    1965         if (!psMetadataLookupF64(&status, md, "decl4") == 64.64) {
    1966             psFree(md);
    1967             exit(EXIT_FAILURE);
    1968         }
    1969 
    1970         psFree(md);
    1971     }
    1972 
    1973     {
    1974         psMetadata      *md;
    1975         skyCellMapRow   *object;
    1976         bool            status;
    1977 
    1978         object = skyCellMapRowAlloc("a string", "a string", "a string", "a string");
    1979         if (!object) {
    1980             exit(EXIT_FAILURE);
    1981         }
    1982 
    1983         md = skyCellMapMetadataFromObject(object);
    1984         if (!md) {
    1985             exit(EXIT_FAILURE);
    1986         }
    1987 
    1988         psFree(object);
    1989 
    1990         if (strncmp(psMetadataLookupPtr(&status, md, "skycell_id"), "a string", MAX_STRING_LENGTH)) {
    1991             psFree(md);
    1992             exit(EXIT_FAILURE);
    1993         }
    1994         if (strncmp(psMetadataLookupPtr(&status, md, "tess_id"), "a string", MAX_STRING_LENGTH)) {
    1995             psFree(md);
    1996             exit(EXIT_FAILURE);
    1997         }
    1998         if (strncmp(psMetadataLookupPtr(&status, md, "exp_tag"), "a string", MAX_STRING_LENGTH)) {
    1999             psFree(md);
    2000             exit(EXIT_FAILURE);
    2001         }
    2002         if (strncmp(psMetadataLookupPtr(&status, md, "class_id"), "a string", MAX_STRING_LENGTH)) {
    20031811            psFree(md);
    20041812            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.