source: nanovis/trunk/ParticleSystemFactory.h @ 6369

Last change on this file since 6369 was 3613, checked in by ldelgass, 11 years ago

Include namespace in header guard defines

  • Property svn:eol-style set to native
File size: 813 bytes
Line 
1/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2/*
3 * Copyright (c) 2004-2013  HUBzero Foundation, LLC
4 *
5 */
6#ifndef NV_PARTICLESYSTEMFACTORY_H
7#define NV_PARTICLESYSTEMFACTORY_H
8
9#include <string>
10
11#include <expat.h>
12
13namespace nv {
14
15class ParticleSystem;
16
17class ParticleSystemFactory
18{
19public:
20    ParticleSystemFactory();
21    ~ParticleSystemFactory();
22
23    ParticleSystem *create(const std::string& fileName);
24
25private:
26    void parseParticleSysInfo(const char **attrs);
27    void parseEmitterInfo(const char **attrs);
28
29    static void endElement(void *userData, const char *name);
30    static void startElement(void *userData, const char *elementName, const char **attrs);
31    static void text(void *data, const XML_Char *txt, int len);
32
33    ParticleSystem *_newParticleSystem;
34};
35
36}
37
38#endif
Note: See TracBrowser for help on using the repository browser.